D Symbol Demangling

Thomas Kuehne thomas@kuehne.cn
Wed Apr 19 11:18:00 GMT 2006


Attached is a patch against GDB-6.4 that enables demangling of symbols
generated by DMD[1] and GDC[2].

The infrastructure part (c-lang.c, defs.h, d-lang.h, dwarf2read.c,
language.c, Makefile.in, symfile, syntab.c, dwarf2.h) is based on John
Demme's work[3][4].

The pluggable demangler (gdb/demangle_d/*) was written completely form
scratch and isn't based on John's work and supports templates and - to a
certain extend - nested functions and types.

Thomas

[1] http://digitalmars.com/d/dcompiler.html
[2] http://home.earthlink.net/~dvdfrdmn/d/
[3] http://www.dsource.org/forums/viewforum.php?f=58
[4] http://sourceware.org/ml/gdb-patches/2005-04/msg00039.html
-------------- next part --------------
An embedded and charset-unspecified text was scrubbed...
Name: gdb-6.4-demangle_d.diff
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20060419/ddee7764/attachment.ksh>


More information about the Gdb-patches mailing list