there's a thing called therapy to cure or lessen the addiction, killing yourself or dying isn't a solution to any problem, it will definitely stop you from gambling but it will also stop you from living, obviously seeking a professional help will be a good way if addiction is worse.
Hahaha taking your life isn't a best solution it will only makes it worst because your gonna go to the pits of hell by doing that, and yes seeking medical attention, rehab for instance or maybe seek the lord so you will change your mind and you will not think of anything stupid just because you want to quit gambling.