GDB + ddemangle

Iain Buclaw ibuclaw at gdcproject.org
Fri Apr 20 17:55:12 UTC 2018


On 20 April 2018 at 17:40, drug via Digitalmars-d-announce
<digitalmars-d-announce at puremagic.com> wrote:
> 20.04.2018 16:49, Iain Buclaw пишет:
>>
>>
>> GDB auto-detects the language based on DW_LANG tag in the debug info.
>>
>> If you are starting up gdb without a program to debug, you can
>> explicitly switch with: set lang d
>> Then try something like: demangle _D3fooFiZv
>>
>> Or if you want it to start up in D mode: gdb -ex 'set lang d'
>>
> it works, thank you. But not in all cases. For example when gdb stops on
> breakpoint it demangle, but if I do `bt` - backtrace isn't demangled.

Using a compiler that implements 2.077 or later (IIRC) probably won't,
due to gdb being too old.  They broke ABI by introducing back
referencing, no release of gdb supports that yet.



More information about the Digitalmars-d-announce mailing list