Gambling debts are dischargeable in bankruptcy just like any other unsecured debt. There is clearly a heightened sense of how much debt was incurred and how recently it was created, but fundamentally, there is no distinction between regular credit card debt and gambling debts.
Bankruptcy may be an appropriate way to get out of gambling debt and many people have successfully done this.