From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 5468 invoked by alias); 14 Mar 2014 00:59:01 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 5457 invoked by uid 89); 14 Mar 2014 00:59:00 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.6 required=5.0 tests=AWL,BAYES_00 autolearn=ham version=3.3.2 X-HELO: relay1.mentorg.com Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 14 Mar 2014 00:58:59 +0000 Received: from svr-orw-exc-10.mgc.mentorg.com ([147.34.98.58]) by relay1.mentorg.com with esmtp id 1WOGSc-00073T-Fm from Yao_Qi@mentor.com ; Thu, 13 Mar 2014 17:58:54 -0700 Received: from SVR-ORW-FEM-04.mgc.mentorg.com ([147.34.97.41]) by SVR-ORW-EXC-10.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Thu, 13 Mar 2014 17:58:54 -0700 Received: from qiyao.dyndns.org (147.34.91.1) by svr-orw-fem-04.mgc.mentorg.com (147.34.97.41) with Microsoft SMTP Server id 14.2.247.3; Thu, 13 Mar 2014 17:58:53 -0700 Message-ID: <532253C8.7050507@codesourcery.com> Date: Fri, 14 Mar 2014 00:59:00 -0000 From: Yao Qi User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20130110 Thunderbird/17.0.2 MIME-Version: 1.0 To: Tom Tromey CC: Subject: Re: [PATCH 0/5] Return error code in get_number References: <1394677950-4054-1-git-send-email-yao@codesourcery.com> <87d2hqku59.fsf@fleche.redhat.com> In-Reply-To: <87d2hqku59.fsf@fleche.redhat.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2014-03/txt/msg00323.txt.bz2 On 03/13/2014 11:14 PM, Tom Tromey wrote: > Could you say what you want this for? > I don't understand why an MI client would ever use it. I'd like to teach mi_cmd_break_commands to accept convenience variable, so get_number is suggested to use (https://sourceware.org/ml/gdb-patches/2014-02/msg00595.html). mi_cmd_break_commands may throw two errors when it parses a number, and I'd like to keep its behaviour after I change to get_number. I want get_number returns the error code and mi_cmd_break_commands can throws errors accordingly. -- Yao (齐尧)