I am coding in Windows 98(DOS mode) and my program is crashing badly. I can reproduce the crash just fine, but my normal debugging tricks(stack trace, printf the whole thing to isolate the crash) are failing, because the combination of graphics mode(VBE), DOS mode and interrupt handling is apparently not what GDB was made for.
I've tried commenting parts of my code to isolate the problem but I can not trace the code location of the crash exactly.
So all I can get is a bunch of registers. Is there any way to retrieve a line of code from registers(like EIP)? I am coding in C.
After some googling, I found some GDB documentation with this:
info symbol addr
Using this command seems to be the closest thing I could find to get a function name from an address. It won't give the exact line of code, but it's better than nothing.