basic debugging functions
Dan Kegel
dkegel@ixiacom.com
Fri Aug 2 11:55:00 GMT 2002
trohed wrote:
> I was wondering if there is a library or some part of
> GDB that I could reuse (portabily) in my code. For
> example, I would like to be able to dump a stack trace
> on demand.
You can always invoke gdb or gdbserver from within your program.
I do this, and it works well enough.
Code for a simple stack traceback isn't too hard to do standalone,
though. If you're not able to exec gdb, ask again, and I can
post some.
- Dan
More information about the Gdb
mailing list