
10 Jan
2012
10 Jan
'12
9:48 p.m.
Boost.StackTrace
Collecting stack trace automatically from exception and printing it.
How does this work?
Very simple:
In short.
Linux, Solaris, Mac OS X:
- execinfo.h backtrace+backtrace_symbols/dladdr
Windows
- RtlCaptureStackBackTrace
- SymFromAddr (for MSVC)
So where does the symbol information come from? From the debug information compiled into the program? If so, what happens if I compile the program without debug info? What happens if I use an optimized build? Thanks, Nate