Re: dmd demangle

2017-08-30 Thread Arun Chandrasekaran via Digitalmars-d
On Thursday, 31 August 2017 at 03:58:14 UTC, Michael V. Franklin wrote: Just getting unresolved symbols? Yeah, I was just wondering what if the output can be readable, given that dmd is the one that invokes ld. Would be much more human readable without piping through ddemangle. Thanks.

Re: dmd demangle

2017-08-30 Thread Michael V. Franklin via Digitalmars-d
On Thursday, 31 August 2017 at 02:51:25 UTC, Arun Chandrasekaran wrote: I was looking at src/ddmd/link.d, has the below that reads the output of ld. Ah, right you are. My apologies. It'd probably be simple enough to have that demangling on by default. Maybe I'll give it a go later today.

Re: dmd demangle

2017-08-30 Thread Arun Chandrasekaran via Digitalmars-d
On Thursday, 31 August 2017 at 02:31:24 UTC, Michael V. Franklin wrote: On Thursday, 31 August 2017 at 02:20:00 UTC, Arun Chandrasekaran wrote: Just a thought. Can dmd demangle the symbols before spitting the output of ld to stderr? dmd doesn't print the output of ld to stderr, ld doe

Re: dmd demangle

2017-08-30 Thread ketmar via Digitalmars-d
Arun Chandrasekaran wrote: Just a thought. Can dmd demangle the symbols before spitting the output of ld to stderr? p.s.: redirecting output to ddemangle may work too, as ddemange will try to detect mangled DMD names, and won't modify other text. this way you can, for example, dem

Re: dmd demangle

2017-08-30 Thread ketmar via Digitalmars-d
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= -L

Re: dmd demangle

2017-08-30 Thread Michael V. Franklin via Digitalmars-d
On Thursday, 31 August 2017 at 02:20:00 UTC, Arun Chandrasekaran wrote: Just a thought. Can dmd demangle the symbols before spitting the output of ld to stderr? dmd doesn't print the output of ld to stderr, ld does. I believe binutils has some support for D symbol demangling thanks t

dmd demangle

2017-08-30 Thread Arun Chandrasekaran via Digitalmars-d
Just a thought. Can dmd demangle the symbols before spitting the output of ld to stderr?