Re: how can I get a backtrace from inside my program?



Garth's KidStuff wrote:

I have a large Gtk app running on Ubuntu and I'd love to be able to log
stack trace information when unusual events occur.  Any ideas on where to
look for this?

If you don't mind that it only works on Linux, with glibc and gcc, take a look at backtrace() and backtrace_symbols() (or backtrace_symbols_fd()). I've never used it myself, but that might be what you're looking for.

        -brian




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]