I have a patch to let lldb demangle D symbols ; help welcome to improve it

Luís Marques luis at luismarques.eu
Mon Mar 12 14:19:03 UTC 2018


On Tuesday, 27 February 2018 at 05:28:41 UTC, Timothee Cour wrote:
> https://github.com/llvm-mirror/lldb/pull/3
> +
> https://github.com/timotheecour/dtools/blob/master/dtools/lldbdplugin.d

I put a writeln in lldbd_demangle and I see it's demangling about 
two pagefuls of symbols, but the backtrace still shows mangled 
names. The mangled names lack the initial underscore, maybe 
that's related?

* thread #1, queue = 'com.apple.main-thread', stop reason = 
breakpoint 2.1
   * frame #0: 0x0000000100000a74 test`D4test3fooFZv at test.d:8
     frame #1: 0x0000000100000a49 test`_Dmain at test.d:5
     frame #2: 0x000000010001f0d4 
test`D2rt6dmain211_d_run_mainUiPPaPUAAaZiZ6runAllMFZ9__lambda1MFZv + 40
     frame #3: 0x000000010001ef64 
test`D2rt6dmain211_d_run_mainUiPPaPUAAaZiZ7tryExecMFMDFZvZv + 32
     frame #4: 0x000000010001f03f 
test`D2rt6dmain211_d_run_mainUiPPaPUAAaZiZ6runAllMFZv + 139
     frame #5: 0x000000010001ef64 
test`D2rt6dmain211_d_run_mainUiPPaPUAAaZiZ7tryExecMFMDFZvZv + 32
     frame #6: 0x000000010001eed2 test`_d_run_main + 486
     frame #7: 0x0000000100000a72 test`main + 34
     frame #8: 0x00007fff58733115 libdyld.dylib`start + 1



More information about the Digitalmars-d mailing list