Questions tagged [demangler]
38 questions
3
votes
1 answer
c++ : convert symbols to code line numbers programmatically
I'm developing under Linux/gcc
I currently use the following to get a stack trace on custom thrown exceptions. Demangled functions names and line numbers are as expected, but I would like to avoid the use of addr2line to have a full control on the…

Gauthier Boaglio
- 10,054
- 5
- 48
- 85
2
votes
2 answers
How reliable is the format of demangled names?
I am working on a pretty dynamic C++ program which allows the user to define their own data structures which are then serialized in an output HDF5 data file. Instead of requiring the user to define a new HDF5 data type, I am "splitting" their data…

Tom Eichlersmith
- 58
- 5
2
votes
2 answers
Does LLVM have a tool for demangling Microsoft C++ mangling?
I use LLVM on windows and I wonder if there is a command line tool to demangle MSVC C++ mangling. I am talking about command line tool like llvm-cxxfilt.
I see some commits in LLVM, but not sure if those are exposed as some tool or it is just C++…

NoSenseEtAl
- 28,205
- 28
- 128
- 277
2
votes
0 answers
Demangling with c++filt on windows - gnu-v3
I am trying to properly demangle some symbols taken from a DWARF output.
On Linux, when i do c++filt --format gnu-v3. I can convert _ZZNV9SomeClass5afuncEiE1x to SomeClass::afunc(int) volatile::x
On Windows, I have installed Mingw32 which includes…

Pier-Yves Lessard
- 582
- 5
- 20
2
votes
1 answer
Unresolved external symbol in Boost filesystem library (error LNK2019)
I was trying to debug a linking error LNK2019: unresolved external symbol.
In order to so, I tried to list all the symbols in the library that is supposed to contain that symbol. However, I have two questions:
1) First, I am confused about how to…

Ben N.
- 1,217
- 2
- 9
- 9
2
votes
1 answer
boost::core::demangle on visual studio typeid().name
i'm trying to get a string reporting a class type without decoration on windows (visual studio 2010) with no success at all.
Since UnDecorateName does not work i'm using boost libraries.
#include
#include
class…

mrgiov
- 21
- 3
2
votes
1 answer
Seeking STL-aware c++filt
In my development environment, I'm compiling a code base using GNU C++ 3.4.6. Code is under development, and unfortunately crashes now and then. It's nice to be able to run the traceback through a demangler, and I use c++filt 3.4. The problem comes…

Don Wakefield
- 8,693
- 3
- 36
- 54
2
votes
1 answer
Debugging DMD Generate Program through GDB
I'm trying to debug my first program in D compiled using
dmd -debug hello.d
but when I run the executable through GDB-7.6 it doesn't seem to know where to find the source code and decode the format of the stack trace (and its name-demangling).
Is…

Nordlöw
- 11,838
- 10
- 52
- 99
1
vote
0 answers
Prevent Perf Name Demangling
I use Perf to extract callgraphs for an evince benchmark (which is written in C++). By default, Perf demangles function names in the callgraph. But this is not what is prefered. Because I feed function names to GDB which requires mangled names. Is…

TheAhmad
- 810
- 1
- 9
- 21
1
vote
1 answer
C equivalent for __cxa_demangle for gcc?
I have used the following function in the past to demangle c++ symbols it has proved very useful:
char* __cxa_demangle(const char* __mangled_name, char* __output_buffer, size_t* __length, int* __status);
Now I work on a C application that uses gcc,…

ericcurtin
- 1,499
- 17
- 20
1
vote
0 answers
Unable to demangle while trying to remote debug C++ with vscode
I am trying to debug remote application with vscode insiders and ssh remote. If I set
"externalConsole": true
in launch.json it doesn't work at all. If I set it to false it works, but breakpoints are impossible. If I set
"stopAtEntry": true
it…

Dims
- 47,675
- 117
- 331
- 600
1
vote
0 answers
Demangling and results in "ambiguous reference to __gnu_gxx namespace"
When I need to print type info at runtime, I always apply demangling to std::type_info::name() result. This is the implementation for GCC, which uses abi::__cxa_demangle():
#include
GCC demangling implementation
std::string demangle( …

Manu343726
- 13,969
- 4
- 40
- 75
0
votes
0 answers
Where is the implementation of abi::__cxa_demangle in libstdc++
GNU's libstdc++ provides the function abi::__cxa_demangle. The declaration of this function can be found in gcc / libstdc++-v3 / libsupc++ / cxxabi.h (code repository here)
I am interested in reviewing the implementation of this function but I am…

ChrisG
- 1
- 1
0
votes
0 answers
How can you demangle QStringList in Qt6, so it does not convert to "QList"?
I have been using this function for quite some time in Qt5:
static QString demangle( const QString &name )
{
int status;
std::unique_ptr< char, void(*)( void* ) > res (
abi::__cxa_demangle( name.toLatin1(), nullptr, nullptr, &status…

Anon
- 2,267
- 3
- 34
- 51
0
votes
1 answer
C++ filt not working. C++ name demangling
a symbol in linkmap file
0x10AEB7A48 0x00000034 [14199]…

Learing
- 559
- 4
- 13