gdb on automatic pilot?
Sergio Durigan Junior
sergiodj@redhat.com
Thu Aug 25 00:42:00 GMT 2011
Aurelian Melinte <ame01@gmx.net> writes:
> I am looking to use gdb to print the stack each time a certain
> function is called , then resume execution. And this without manual
> intervention.
Sorry, I'm not sure I understood your question. Will you be already
runnning GDB? If so, you can put a breakpoint at the function and use
`commands' to specify what you want to do when the breakpoint is hit.
Something like:
(gdb) break f
(gdb) commands
> bt
> cont
> end
(gdb) run
Is that what you want?
More information about the Gdb
mailing list