Skip to content

Commit

Permalink
fix: c++ demangling in backtraces
Browse files Browse the repository at this point in the history
  • Loading branch information
ndrewh committed Dec 17, 2024
1 parent b54543b commit 230f881
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/pyda/process.py
Original file line number Diff line number Diff line change
Expand Up @@ -241,7 +241,7 @@ def backtrace_to_str(bt, demangle=False, short=False):
if demangle and f[3].startswith("_Z"):
sym = cxx_demangle(f[3])
if short and len(sym) > 100:
sym = "..." + sym[-100:]
sym = sym[:50] + "..." + sym[-50:]

s += f"[{f[1]}+{hex(f[2])}] {sym}\n"
elif f[2] != 0:
Expand Down

0 comments on commit 230f881

Please sign in to comment.