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 Thu, 25 Aug 2011 02:16:55 +0200, Aurelian Melinte wrote:
> 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.

(gdb) break malloc
Breakpoint 1 at 0x483940
(gdb) commands 
Type commands for breakpoint(s) 1, one per line.
End with a line saying just "end".
>backtrace 
>continue 
>end
(gdb) set pagination off 
(gdb) run


See also:
$ info '(gdb)Break Commands'


Regards,
Jan


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