| Thread overview | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
June 14, 2015 [Issue 14698] Un-mangle symbols in disassembly? | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=14698 Rainer Schuetze <r.sagitario@gmx.de> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |r.sagitario@gmx.de --- Comment #1 from Rainer Schuetze <r.sagitario@gmx.de> --- Actually, you can get that already by piping the assembly output through ddemangle. Set the disassembly command to something like: "$(VCINSTALLDIR)\bin\dumpbin" /disasm:nobytes "$(InputPath)" | ddemangle >"$(TargetPath)" Maybe this should even be the default, though I'm unsure ddemangle is distributed with LDC or GDC. -- | ||||
June 14, 2015 [Issue 14698] Un-mangle symbols in disassembly? | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=14698 weaselcat <r9shackleford@gmail.com> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |r9shackleford@gmail.com --- Comment #2 from weaselcat <r9shackleford@gmail.com> --- @Rainer GDC is generally bundled with binutils which includes D symbol demangling in the relevant tools(e.g, c++filt, objdump, etc) -- | ||||
June 16, 2015 [Issue 14698] Un-mangle symbols in disassembly? | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=14698 --- Comment #3 from Rainer Schuetze <r.sagitario@gmx.de> --- > GDC is generally bundled with binutils which includes D symbol demangling in the relevant tools(e.g, c++filt, objdump, etc) I don't see any D demangling support in objdump/c++filt in the latest GDC build I could find at http://gdcproject.org/downloads. Any hidden option I should use? -- | ||||
June 16, 2015 [Issue 14698] Un-mangle symbols in disassembly? | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=14698 Iain Buclaw <ibuclaw@gdcproject.org> changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |ibuclaw@gdcproject.org --- Comment #4 from Iain Buclaw <ibuclaw@gdcproject.org> --- (In reply to Rainer Schuetze from comment #3) > > GDC is generally bundled with binutils which includes D symbol demangling in the relevant tools(e.g, c++filt, objdump, etc) > > I don't see any D demangling support in objdump/c++filt in the latest GDC build I could find at http://gdcproject.org/downloads. Any hidden option I should use? -s dlang or --format=dlang -- | ||||
June 16, 2015 [Issue 14698] Un-mangle symbols in disassembly? | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=14698 --- Comment #5 from Rainer Schuetze <r.sagitario@gmx.de> --- Maybe the Windows versions don't have it? I tried >"c:\l\GDC-2.066\bin\c++filt.exe" --version GNU c++filt (crosstool-NG 1.20.0 - 20150413-2.066.1-f378f9ab41) 2.23.1 >"c:\l\GDC-2.066\bin\c++filt.exe" --format=dlang c:\l\GDC-2.066\bin\c++filt.exe: unknown demangling style `dlang' -- | ||||
June 17, 2015 [Issue 14698] Un-mangle symbols in disassembly? | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=14698 --- Comment #6 from Iain Buclaw <ibuclaw@gdcproject.org> --- (In reply to Rainer Schuetze from comment #5) > Maybe the Windows versions don't have it? > > I tried > > >"c:\l\GDC-2.066\bin\c++filt.exe" --version > GNU c++filt (crosstool-NG 1.20.0 - 20150413-2.066.1-f378f9ab41) 2.23.1 > > >"c:\l\GDC-2.066\bin\c++filt.exe" --format=dlang > c:\l\GDC-2.066\bin\c++filt.exe: unknown demangling style `dlang' Support was added in binutils 2.25 -- | ||||
June 22, 2015 [Issue 14698] Un-mangle symbols in disassembly? | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=14698 --- Comment #7 from Manu <turkeyman@gmail.com> --- What will happen for binaries with both D and C++ symbols? -- | ||||
June 22, 2015 [Issue 14698] Un-mangle symbols in disassembly? | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=14698 --- Comment #8 from Rainer Schuetze <r.sagitario@gmx.de> --- > What will happen for binaries with both D and C++ symbols? Good question. I was just about to adapt the demangling of linker messages to fit this use case aswell, but C++ symbols are not supported (nor by ddemangle which also doesn't support compressed symbols on Win32). Having two different C++ manglings is not so great, too. For gdc builds you could chain two calls to c++filt if a binary is available. -- | ||||
June 26, 2015 [Issue 14698] Un-mangle symbols in disassembly? | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=14698 --- Comment #9 from Rainer Schuetze <r.sagitario@gmx.de> --- > Support was added in binutils 2.25 I've build this version, but noticed that it doesn't demangle full text files, just the arguments given on the command line. Instead, it reports "Internal error: no symbol alphabet for current style". That has an easy fix, though. As cxxfilt will very likely never support compressed symbols aswell as MS mangled symbols, I've compiled my own version supporting all 3 manglings (D/gcc/cl) including compression. Disassembly with demangled symbols is now enabled if the global option "Demangle symbols in linker messages/disassembly" is checked. Try it in https://github.com/D-Programming-Language/visuald/releases/tag/v0.3.42-beta2 -- | ||||
June 28, 2015 [Issue 14698] Un-mangle symbols in disassembly? | ||||
|---|---|---|---|---|
| ||||
https://issues.dlang.org/show_bug.cgi?id=14698 --- Comment #10 from Manu <turkeyman@gmail.com> --- Seems to be working great now! -- | ||||
Copyright © 1999-2021 by the D Language Foundation
Permalink
Reply