Skip to content

Commit

Permalink
Merge pull request #2 from Doliman100/patch
Browse files Browse the repository at this point in the history
Patch with fix for demangle flag and output new line.
  • Loading branch information
colinsenner authored Jun 28, 2024
2 parents 593066a + d78513c commit 37adf63
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions rtti-plugin-x64dbg/Lib/RTTI.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,10 @@ using namespace std;
string Demangle(char* sz_name)
{
char tmp[MAX_CLASS_NAME] = { 0 };
if (UnDecorateSymbolName(sz_name, tmp, MAX_CLASS_NAME, UNDNAME_NAME_ONLY) == 0)
if (UnDecorateSymbolName(sz_name, tmp, MAX_CLASS_NAME, UNDNAME_NO_ARGUMENTS) == 0)
return false;

// Remove 'AV' from the name
char* n = tmp + 2;

return string(n);
return string(tmp);
}

duint GetBaseAddress(duint addr)
Expand Down
2 changes: 1 addition & 1 deletion rtti-plugin-x64dbg/plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ static bool cbRttiCommand(int argc, char* argv[])
AutoLabel(rtti);
string rttiInfo = rtti.ToString();

dprintf(rttiInfo.c_str());
dprintf("%s\n", rttiInfo.c_str());
}
else
dprintf("No RTTI information found for address %p\n", addr);
Expand Down

0 comments on commit 37adf63

Please sign in to comment.