Hi Rose – good that you have posted and sorry to hear about your situation. The first thing is you need to stop gambling NOW. If you can bar yourself from gambling sites or premises. Depending on which country you are in you maybe able to stop using your credit cards for gambling purposes and in any event if you can you should cut them up so you can’t use them. Then get good impartial financial advice / debt counseling. There may well be alternatives to bankruptcy, you will only know by exploring this.
Above all, it sounds like you are really isolated with your problem. Does anyone know? Is there anyone near to you that can listen and support you? Check if there is a GA or similar group nearby, the Samaritans may be able to help and are always there if you are feeling suicidal. Keep posting here and try to join a group or 1-2-1 session. You’ve taken a big first step by posting here. Open yourself to getting the help you need, there’s no shame in that. You are in crisis – get help. I wish you well.