|
Boost : |
From: Schalk_Cronje_at_[hidden]
Date: 2002-06-12 08:49:15
> I'd like to have assertions that include a stack traceback. Is it
> possible to do this portably? Does such a lib already exist?
One has to do a per platform implementation. Linux uses backtrace() and
backtrace_symbols(). Solaris uses getcontext() and dladdr(). I think for
Win32 one has to use StackWalk, but since I have never done a Win32
stacktrace implementation I know no more.
----------------------------------[ .signature ]---
Schalk W. Cronjé,
Codernaut, Webshield Engineering,
Network Associates.
++C or C++ ?
Boost list run by bdawes at acm.org, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk