1
0
Fork 0

DBG: undecorated symbol names

This commit is contained in:
mr.exodia 2014-02-16 22:42:14 +01:00
parent 2af781caa9
commit 3a741e9df8
1 changed files with 3 additions and 1 deletions

View File

@ -117,7 +117,9 @@ extern "C" DLL_EXPORT bool _dbg_addrinfoget(duint addr, SEGMENTREG segment, ADDR
pSymbol->MaxNameLen = MAX_LABEL_SIZE;
if(SymFromAddr(fdProcessInfo->hProcess, (DWORD64)addr, &displacement, pSymbol) and !displacement)
{
strcpy(addrinfo->label, pSymbol->Name);
//TODO: user preference
if(!UnDecorateSymbolName(pSymbol->Name, addrinfo->label, MAX_LABEL_SIZE, UNDNAME_COMPLETE))
strcpy(addrinfo->label, pSymbol->Name);
retval=true;
}
}