GDB (the debugger) is a 3rd party / gnu tool.
It is called by the IDE.
Unfortunately gdb itself has some bugs too. The error you are getting means you encountered one of them.
Are you on windows? (exact OS?)
On our sourceforge site under windows (both 32 and 64 bit) as a folder "Alternative gdb".
It has newer versions of gdb.
You may try such a newer version (for the correct 32/64 bitness).
If you are not on windows, check your OS' software repository for a newer gdb.
----------------
Also this could be:
Interference by your Anti virus
The path name of your exe/project (any none latin chars in path or name?)
If you did not save the project before, it is in a temp folder under your username (any none latin chars in your username?)