Skip to content

Commit

Permalink
Merge pull request iovisor#1653 from iovisor/yhs_dev
Browse files Browse the repository at this point in the history
avoid symbol demangling if the symbol is not a mangled symbol
  • Loading branch information
4ast committed Mar 26, 2018
2 parents 581052a + 2f07051 commit 955b55e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cc/bcc_syms.cc
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ bool ProcSyms::resolve_addr(uint64_t addr, struct bcc_symbol *sym,
if (mod.contains(addr, offset)) {
if (mod.find_addr(offset, sym)) {
if (demangle) {
if (sym->name)
if (sym->name && (!strncmp(sym->name, "_Z", 2) || !strncmp(sym->name, "___Z", 4)))
sym->demangle_name =
abi::__cxa_demangle(sym->name, nullptr, nullptr, nullptr);
if (!sym->demangle_name)
Expand Down

0 comments on commit 955b55e

Please sign in to comment.