Boost logo

Boost :

From: Dave Steffen (dgsteffen_at_[hidden])
Date: 2007-04-20 14:06:48


Martin Wille writes:
> Neal Becker wrote:
> > We discussed a couple of years back code to do tracebacks that did not
> > require instrumenting, which IMO is much more interesting.
> >
> > On linux/glibc, there is a function 'backtrace' that can help (libc manual,
> > sec 33.1). We did talk about some code. Discussion bogged down on
> > demangling symbols. At the time, the demangling code was not free (IIRC),
> > but I think that is no longer a problem.
>
>
> A stacktrace is helpful even without the demangling. In the worst case,
> one would have to run c++filt manually, which isn't that bad in a
> debugging scenario.

 FWIW, GCC provides an API call that demangles names: something like
 "abi::__cxa_demangle", I don't remember the details.

----------------------------------------------------------------------
Dave Steffen, Ph.D. Fools ignore complexity.
Software Engineer IV Pragmatists suffer it.
Numerica Corporation Some can avoid it.
ph (970) 461-2000 x227 Geniuses remove it.
dgsteffen_at_[hidden] -- Alan Perlis


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