This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: commands on tbreak breakpoints, should they work?
- From: Daniel Jacobowitz <drow at false dot org>
- To: Doug Evans <dje at transmeta dot com>
- Cc: gdb at sources dot redhat dot com
- Date: Fri, 26 Mar 2004 12:30:38 -0500
- Subject: Re: commands on tbreak breakpoints, should they work?
- References: <200403261727.i2QHRZU29384@claire.transmeta.com>
On Fri, Mar 26, 2004 at 09:27:35AM -0800, Doug Evans wrote:
> gdb = 5.2.1
>
> I'm unable to add commands to tbreak breakpoints because gdb first
> deletes the breakpoint and then it looks for any breakpoints
> with commands to run.
>
> The docs say
> "You can give any breakpoint (or watchpoint or catchpoint) a series of
> commands to execute when your program stops due to that breakpoint."
>
> Is this a gdb bug or doc bug?
I'd say gdb bug. Could you try something newer?
>
> ---
> bash$ gcc -g hello.c
> bash$ gdb-5.2.1 ./a.out
> (gdb) tbreak main
> (gdb) commands
> echo foo\n
> end
> (gdb) run
>
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer