gdb on automatic pilot?

Jan Kratochvil
Thu Aug 25 00:27:00 GMT 2011

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".
(gdb) set pagination off 
(gdb) run

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


More information about the Gdb mailing list