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 0/5] Return error code in get_number


>>>>> "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


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