[patch] delete a range of display numbers

Guillaume Leconte guillaume.leconte@gmail.com
Fri Feb 18 11:48:00 GMT 2011


Thank you for this suggestion.  I added the modification you asked for
in the attached file.

Guillaume.

On Fri, Feb 18, 2011 at 11:30 AM, Eli Zaretskii <eliz@gnu.org> wrote:
>> 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?
>



-- 
"A fellow of infinite jest, of most excellent fancy."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: delete-display-range.patch
Type: text/x-patch
Size: 3478 bytes
Desc: not available
URL: <http://sourceware.org/pipermail/gdb-patches/attachments/20110218/bcc800ca/attachment.bin>


More information about the Gdb-patches mailing list