Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
utils: fix --demangle=full to only demangle mangled C++ symbols
Currently, uftrace demangles all symbols, regardless of whether they are mangled C++ symbols or unmangled C symbols. But when setting --demangle=full, uftrace calls __cxa_demangle(), which translates unmangled symbols confusingly; e.g., "f" is translated to "float". To address this, now we only call __cxa_demangle() if a symbol is mangled (starts with "_Z"). Fixed: #1778 Signed-off-by: Yufeng Jin <[email protected]>
- Loading branch information