This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] delete a range of display numbers


> 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?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]