gdb on automatic pilot?

Aurelian Melinte
Thu Aug 25 01:13:00 GMT 2011

On 24/08/2011 8:41 PM, Sergio Durigan Junior wrote:
> Aurelian Melinte<>  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?

Eaxctly what I was looking for :)

Thanks Sergio and Jan!

More information about the Gdb mailing list