Boost logo

Boost :

Subject: Re: [boost] Request for Interest in several Modules
From: Nathan Ridge (zeratul976_at_[hidden])
Date: 2012-01-10 16:48:17


> >> Boost.StackTrace
> >>
> >> Collecting stack trace automatically from exception and printing it.
>
> > How does this work?
> >
>
> Very simple:
>
> http://cppcms.svn.sourceforge.net/viewvc/cppcms/framework/trunk/booster/lib/backtrace/src/backtrace.cpp?revision=2052&view=markup
>
>
> 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
                                               


Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk