www.digitalmars.com         C & C++   DMDScript  

digitalmars.D - D Linux Support


Is GDB supposed to be able to debug D programs?  I understand that GDB 
won't recognize some of the data structures, and doesn't have tha name 
mangling down, but those are small beans.

You've stated that DWARF2 debugging information is generated with the -g 
option, and it appears to work in that some debug info gets into the 
executable.  However, the line numbers appear to be waaaaay off, making 
anything other than printing stack traces on segfaults unusable.  Of 
course, since nothing works, I'm not sure if this is the only issue, or 
if this is the real root of the issue.  I've mentioned this before on 
d.D.bugs, and have received no responses.  So my question stands, is GDB 
supposed to have any functionality on D programs?

With out this basic debugging support, developing anything too far past 
trivial on Linux is painful.

I would greatly appreciate it if you would work on getting Linux support 
up to par.  (Shared Objects would also be nice, but aren't a big deal... 
yet)  I know that you're not as familiar with the Linux stuff, but it's 
important that if DMD is going to claim Linux support, that it be up to 
snuff with the Windows DMD version.

David Friedman,
Does any of this work on GDC?  Debugging support, and/or ability to use 

Thank you for your time, and I would appreciate a response on this one,
John Demme

PS.  I don't mean to sound unappreciative.  Thanks for D...  I'm just a 
D addict who needs more.
Feb 26 2005