This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 0/5] Return error code in get_number
- From: Tom Tromey <tromey at redhat dot com>
- To: Yao Qi <yao at codesourcery dot com>
- Cc: <gdb-patches at sourceware dot org>
- Date: Thu, 13 Mar 2014 09:14:42 -0600
- Subject: Re: [PATCH 0/5] Return error code in get_number
- Authentication-results: sourceware.org; auth=none
- References: <1394677950-4054-1-git-send-email-yao at codesourcery dot com>
>>>>> "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