Thanks for the info.
Compiling with -fomit-frame-pointer will prevent the debugger from being able to get any useful information, so when you compile the debug version of FSO you'll need to remove that compile option.
You can pass options to gbd when you run FSO. Here's an example:
$ gdb ./fs2_open_3.7.1_DEBUG_10611
...
(gdb) run -res 1024x768
...
Lastly, this error you received:
ERROR: " Web cursor bitmap not found. This is most likely due to one of three reasons: 1) You're running FreeSpace Open from somewhere other than your FreeSpace 2 folder; 2) You've somehow corrupted your FreeSpace 2 installation, e.g. by modifying or removing the retail VP files; 3) You haven't installed FreeSpace 2 at all. (Note that installing FreeSpace Open does NOT remove the need for a FreeSpace 2 installation.) Number 1 can be fixed by simply moving the FreeSpace Open executable file to the FreeSpace 2 folder. Numbers 2 and 3 can be fixed by installing or reinstalling FreeSpace 2." at graphics/2d.cpp:705
It's usually because you are running FSO from outside the assets directory. When FSO starts it expects the current working directory to contain all the VP files. Or (for Linux only) it also looks in ~/.fs2_open. Anyway, so solve that problem simply "cd" to your assets directory before running gdb. (I'm guessing it'll be ~/fs2/)