This is the mail archive of the
mailing list for the GDB project.
using gdb as runtime library
- To: gdb at sources dot redhat dot com
- Subject: using gdb as runtime library
- From: Edward Peschko <edwardp at excitehome dot net>
- Date: Mon, 5 Mar 2001 17:39:52 -0800
hey all -
I'd like to be able to use the gdb interactive commands inside of a c++
program, especially 'print' with 'set print pretty on' (I'd like to define a
dump method in terms of the 'print' method which produces the same output
as the gdb program without need for gdb).
Is this possible? Is there a 'libgdb.a'? Alternatively, how do you set a
'trigger' on a certain line of an application, so that a gdb command is run at
a certain point in a file, without stopping execution of the program?