Jennifer T. hit the nail on the head. Bankrupcy shouldn't be your first resort. Consider selling this house you can't afford for something you can or perhaps rent out the house you live in and live in an apartment or rental home for a time. See if the rental income in your market will cover the cost of the mortage and other house related expenses while your income would be used for your personal expenses outside of the house.
Find a roommate or another single mom to share the expenses and space of this house with you. This will also add extra income and help with your expenses. Take an honest look at how you earn, spend and save money. Are there other means of earning income? Stop using your credit cards. Start only using your cash on hand. Stop tapping into your savings.
It sounds to me like there are many things you may need to consider before taking this big step and there are many ways to get to where you want to be but most of it requires you to take an honest, eyes wide open approach.
Please talk to a financial planner, an attorney.and a certified public accountant about your finances to come up with an informed decision.
Try not to make a permanent solution to a temporary problem. You need more information and wise advice before turning to bankruptcy as a solution to your financial problems.
My house was in foreclosure for over 5 years but the matter has been settled and all parties are in agreement. In the between time I paid off my credit cards (3) so each of them has a zero balance. I considered selling the house but had no buyers so I took it off the market. You definitely have options, discover them all.