www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - Debugging with GDB on Mac

reply Sean Kelly <sean invisibleduck.org> writes:
Has anyone gotten this to work?  I was looking into a bug today and gdb can't
find a symbol table at all.
Apr 28 2010
parent Robert Clipsham <robert octarineparrot.com> writes:
On 28/04/10 19:55, Sean Kelly wrote:
 Has anyone gotten this to work?  I was looking into a bug today and
 gdb can't find a symbol table at all.
It worked for me when I used OS X aaagees ago (before dmd got support for it), using ldc. I can't comment on dmd here. I'd suggest if gdb can't find the symbol table when you compile with -gc then OS X does debugging info slightly differently to linux, causing it not to be found. If you could compile a couple of small test cases, one in D and one in C or C++, both with debug info, then use objdump --dwarf you may be able to see what's going on so this can be fixed. I'd definitely
Apr 28 2010