It would be necessary to see in which studies you can do your thesis on gambling. Mathematics or sociology come to mind, maybe economics too. And you have to find a thesis supervisor who is interested in directing you in that subject.
In my case I wouldn't do it, but I understand that there may be lines of research in these disciplines that could be interesting for a doctoral thesis.