Reverse Line Print Failure Handler

I want to install SIGSEGV and a friends handler in C ++ to print a stack trace and crash.

The backtrace_symbols_fd of glibc is almost what I want, but it does not symbolize calls in anonymous namespaces. However, gdb deals with this just fine (I have characters compiled into, DWARF, etc.).

What library would you recommend for my situation?

+4
source share
1 answer

You looked at abi::__cxa_demangle - this should correctly display the output from backtrace_symbols .

+2
source

All Articles