[PATCH 2/4] Error on bad count number

Yao Qi yao@codesourcery.com
Thu Mar 6 09:56:00 GMT 2014


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 (齐尧)



More information about the Gdb-patches mailing list