Using gdb with MacOS X

substrate

2003-03-27 23:46:00

This isn't really a compile problem per se. I've been working on porting Berkeley's spice3f5 software to MacOS X. It now compiles, but it also stops with a bus error.

In the past I've used gdb to help me debug stuff and it's been very helpful. How do I enable gdb to trace through code and display which line of source code it's aborting at?

Normally in other unix I'd pass the -g option, but it doesn't see the source code (or it's been so long since I've used it that I've forgotten some important step)