How to debug with dwarf output?

1 post / 0 new
walkero
walkero's picture
Offline
Last seen: 3 months 3 weeks ago
Joined: 2009-05-03 16:54
How to debug with dwarf output?

Lately, I am experimenting with a 68k application, trying to compile it for OS4. It uses vbcc to compile, so I am using the same and for now, I am not thinking to switch to GCC.

I managed to compile the application, but unfortunately, it crashes at some point and I thought to use crashlogs to figure out where exactly that happens. I found the awesome guide by Hans at https://hdrlab.org.nz/articles/amiga-os-articles/using-crash-logs/ but unfortunately, this relies on having stabs debug output, which doesn't happen with vbcc.

vbcc debug output is in dwarf2 format and is enabled with -g argument when you compile the source code. Does anyone know if there is a way to figure out the crashing code line based on the crashlog information? Is there any good guide out there about it?

Thank you for your help.