This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: gdb on automatic pilot?
- From: Jan Kratochvil <jan dot kratochvil at redhat dot com>
- To: Aurelian Melinte <ame01 at gmx dot net>
- Cc: gdb at sourceware dot org
- Date: Thu, 25 Aug 2011 02:27:21 +0200
- Subject: Re: gdb on automatic pilot?
- References: <4E559477.1060306@gmx.net>
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