dmd demangle

ketmar via Digitalmars-d digitalmars-d at puremagic.com
Wed Aug 30 19:34:49 PDT 2017


Arun Chandrasekaran wrote:

> Just a thought. Can dmd demangle the symbols before spitting the output 
> of ld to stderr?

no need to ;-) just add this to DFLAGS in dmd.conf, "Envirnment" section:

-L--demangle=dlang

so, it should look something like this:

..
[Environment]
DFLAGS=<your flags here> -L--demangle=dlang
..

due to hard work of Iain Buclaw, gdb and binutils (ld, objdump, etc.) are 
able to demangle DMD names.

note that new DMD version *may* include slightly changed mangling scheme, so 
the latest betas *may* produce "undecipherable" names.


More information about the Digitalmars-d mailing list