This is the mail archive of the gdb@sourceware.org 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: gdb on automatic pilot?


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

Eaxctly what I was looking for :)


Thanks Sergio and Jan!



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