title: Handling POSIX signals: how to get stack trace without using backtrace_symbols?
body: <p>I'm trying to add simple crash logging to my C++ application for Mac OS and Linux. I'm not happy with <code>backtrace_symbols</code> output. I'd like to take whatever <code>backtrace()</code> 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 <code>backtrace()</code> returns.</p>
  
  <p>Upd: found <a href="http://opensource.apple.com/source/X11libs/X11libs-40.2/cairo/cairo-1.8.6/util/backtrace-symbols.c?txt" rel="nofollow">this</a> code snippet, but it doesn't compile on OS X.</p>