[PATCH 0/5] Return error code in get_number

Tom Tromey tromey@redhat.com
Thu Mar 13 15:14:00 GMT 2014


>>>>> "Yao" == Yao Qi <yao@codesourcery.com> writes:

Yao> Patch #5 tries to teach GDB to accept convenience variable in MI
Yao> commands, in which we use get_number to parse string and get number.
Yao> However, get_number returns zero for any kinds of error, and callers
Yao> can't tell from it.  Patch #4 changes get_number's interface to
Yao> return parsing status and parsed number.  This patch also moves
Yao> some printing messages out of get_number, and let the callers to
Yao> print messages according to returned status.

Could you say what you want this for?
I don't understand why an MI client would ever use it.

Tom



More information about the Gdb-patches mailing list