This is the mail archive of the
mailing list for the GDB project.
Re: D Symbol Demangling
On Fri, Apr 08, 2005 at 12:47:51PM -0400, John Demme wrote:
> I finally had time to play firefighter, and I found the fire as well.
> If you compile a D application without DWARF2 information, my gdb
> patches work just fine... how do ya like that?
> Now I REALLY have an excuse to yell at the compiler programmer.
> I don't really understand why bad DWARF2 information would screw up GDB
> like that, considering that I call my function at the point where GDB
> tries to demangle a symbol, but I don't really understand how GDB works.
> Thanks for your help... Expect to hear more from me in the future
> concerning this.
Presumably because you don't have a DWARF language code for D. What's
it labelling the language as in the DW_TAG_compile_unit DIE?
You can define one temporarily for now, but you'll need to request from
the DWARF working group eventually.
> BTW... assuming I can get a decent patch together to bring D support to
> GDB, would it stand a good chance of being put in the main GDB tree?
Perhaps. Are there multiple implementations of D? How inconsistent
are they in ways that would affect GDB?
If you want to do this, you will eventually need a GDB copyright
assignment with the FSF.