Winapi gets malformed name from function address
In my C ++ application I have virtual addresses of functions and I want to get their mangled names. right now I can only get the unnamed name using the winapi function SymFromAddr
. is there a way to get mangled names as well?
+3
max
source
to share
1 answer
Use SymSetOptions () . You want to disable the setting SYMOPT_UNDNAME
to see the changed name.
So roughly:
DWORD options = SymGetOptions();
SymSetOptions(options & ~SYMOPT_UNDNAME);
if (SymFromAddr(hProcess, dwAddress, &dwDisplacement, pSymbol))
{
// etc...
}
SymSetOptions(options);
+5
Hans Passant
source
to share