This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [patch] delete a range of display numbers
- From: Eli Zaretskii <eliz at gnu dot org>
- To: Guillaume Leconte <guillaume dot leconte at gmail dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Fri, 18 Feb 2011 12:30:55 +0200
- Subject: Re: [patch] delete a range of display numbers
- References: <AANLkTikgj9Pxw15Ryx=E=tkGqALaK+WOzrGykfrOggTY@mail.gmail.com>
- Reply-to: Eli Zaretskii <eliz at gnu dot org>
> Date: Fri, 18 Feb 2011 10:36:18 +0100
> From: Guillaume Leconte <guillaume.leconte@gmail.com>
>
> Notice that I've change the prototype of delete_display() in order
> to have a silent return in case of unknown number. If you have set
> the display numbers 1, 2, 3 and 5, you can remove 2-5 without any
> error messages (number 4 is missing in the list). As a consequence,
> you can also remove out of bound numbers, as in 'delete display 5-42'
> without having gdb complaining.
I think it's a convenient feature, but doing this silently may not be
a good idea. How about displaying a note about this? Something like
(Ignored some display numbers.)
WDYT?