This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
RE: basic debugging functions
- From: Dan Kegel <dkegel at ixiacom dot com>
- To: 'trohed ' <trohed at yahoo dot com>, "'gdb at sources dot redhat dot com '" <gdb at sources dot redhat dot com>
- Date: Fri, 2 Aug 2002 11:53:23 -0700
- Subject: RE: basic debugging functions
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