This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [2/2] RFC: let "commands" affect multiple breakpoints
- From: Eli Zaretskii <eliz at gnu dot org>
- To: tromey at redhat dot com
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 10 Mar 2010 19:37:21 +0200
- Subject: Re: [2/2] RFC: let "commands" affect multiple breakpoints
- References: <m31vfsltl7.fsf@fleche.redhat.com>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> From: Tom Tromey <tromey@redhat.com>
> Date: Tue, 09 Mar 2010 20:54:28 -0700
>
> *** Changes since GDB 7.1
>
> +* The `commands' command now accepts a range of breakpoints to modify.
> + A plain `commands' following an `rbreak' will affect all the
> + breakpoints set by `rbreak'.
This is okay, but maybe it will need a slight modification, see
below.
> -@item commands @r{[}@var{bnum}@r{]}
> +@item commands @r{[}@var{range}@dots{}@r{]}
> @itemx @dots{} @var{command-list} @dots{}
> @itemx end
> -Specify a list of commands for breakpoint number @var{bnum}. The commands
> +Specify a list of commands for the given breakpoints. The commands
> themselves appear on the following lines. Type a line containing just
> @code{end} to terminate the commands.
You never say what is the valid syntax of RANGE. Do I understand
correctly that RANGE could be "12-34"? Can it also be "1 2 3 4",
i.e. a list of numbers? What about mixing those ("1-10 25 35")?
Depending on the answers, the NEWS entry might need some clarification
or maybe just an example.
Thanks.