I'm trying to add simple crash logging to my C++ application for Mac OS and Linux. I'm not happy with backtrace_symbols
output. I'd like to take whatever backtrace()
returns and build stack trace (with symbolic names) manually. How to do it? I couldn't find a single example, or even explanation of what exactly it is that backtrace()
returns.
Upd: found this code snippet, but it doesn't compile on OS X.