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/05/2014 11:58 PM, Pedro Alves wrote:
> I had the same thought.  I wondered whether 0 was meant to
> remove the enable count, but the docs don't say anything
> about it.  Is there another way to disable the count, and
> bring back the disposition to enabled?  If not, I wonder
> whether using 0 for that would be a good idea?

If 0 is potentially acceptable, I am fine to keep it.  I'll back
to change get_number to return negative for invalid input, to
differentiate valid number zero and invalid input.

-- 
Yao (éå)


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