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 2/4] Error on bad count number


On 03/06/2014 08:21 PM, Pedro Alves wrote:
> AFAICS, get_number handles negative numbers.  E.g.,
> 

Yes, get_number handles negative, but is it expected for get_number
to handle negative?

>  (top-gdb) ignore -6 1
>  Will ignore next crossing of breakpoint -6.

Shouldn't GDB emit an error on the negative input?  Do we have any
case that negative is valid?  Note that get_number_or_range errors on
negative.

  (gdb) thread apply -2-1 bt
  negative value

-- 
Yao (éå)


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