druntime icon indicating copy to clipboard operation
druntime copied to clipboard

[WIP] [DONT MERGE] Enable demangling of C++ symbols in the stacktrace

Open Nobody143745 opened this issue 5 years ago • 3 comments

This allows you to view demangled and pretty printed C++ symbols in the stacktrace. Is especially useful considering that D is getting more and more support for C++.

Now the C++ symbols in the stacktrace will be printed like this:

        test.d:7 [C++] Test<int>::SomeName(int, long, int) [0x55711efee36f]
        test.d:18 [C++] testcpp() [0x557228e17978]

This need the PR #3002

Nobody143745 avatar Mar 24 '20 18:03 Nobody143745

FYI we now have https://github.com/dlang/dmd/pull/10964 in DMD. We might be interested in having it here, too.

Geod24 avatar Mar 27 '20 04:03 Geod24

FYI there was a similar PR: https://github.com/dlang/druntime/pull/2083

I think this one has better separation. For Windows, the VC mangling should be supported via UnDecorateSymbolName. Please also add a test case.

rainers avatar Mar 27 '20 07:03 rainers

@ErnyTech What's the status on this?

RazvanN7 avatar Jan 21 '22 08:01 RazvanN7