Skip to content

Commit

Permalink
bug fix demangler returning string change
Browse files Browse the repository at this point in the history
* delete from beginning (not end) to rightmost ':' in name
  • Loading branch information
kupsch committed Oct 20, 2020
1 parent 1befaad commit 0bf4147
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion symtabAPI/src/dwarfWalker.C
Original file line number Diff line number Diff line change
Expand Up @@ -1568,7 +1568,7 @@ bool DwarfWalker::addFuncToContainer(boost::shared_ptr<Type> returnType) {
// rfind finds the last occurrence of ':'; add 1 to get past it.
size_t offset = demangledName.rfind(':');
if (offset != demangledName.npos) {
demangledName.erase(offset+1);
demangledName.erase(0, offset+1);
}

curEnclosure()->asFieldListType().addField( demangledName, Type::make_shared<typeFunction>(
Expand Down

0 comments on commit 0bf4147

Please sign in to comment.