This is the mail archive of the gdb@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]