From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16747 invoked by alias); 7 Mar 2014 09:40:45 -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 16727 invoked by uid 89); 7 Mar 2014 09:40:44 -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, 07 Mar 2014 09:40:43 +0000 Received: from svr-orw-exc-10.mgc.mentorg.com ([147.34.98.58]) by relay1.mentorg.com with esmtp id 1WLrGg-0006cM-TO from Yao_Qi@mentor.com ; Fri, 07 Mar 2014 01:40:38 -0800 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); Fri, 7 Mar 2014 01:40:38 -0800 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; Fri, 7 Mar 2014 01:40:37 -0800 Message-ID: <5319938B.60402@codesourcery.com> Date: Fri, 07 Mar 2014 09:40: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: Pedro Alves CC: Joel Brobecker , Subject: Re: [PATCH 2/4] Error on bad count number References: <1394023608-10761-1-git-send-email-yao@codesourcery.com> <1394023608-10761-3-git-send-email-yao@codesourcery.com> <20140305142939.GB16858@adacore.com> <531749BA.8050806@redhat.com> <5318456D.3010709@codesourcery.com> <53186842.9030704@redhat.com> In-Reply-To: <53186842.9030704@redhat.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 8bit X-IsSubscribed: yes X-SW-Source: 2014-03/txt/msg00180.txt.bz2 On 03/06/2014 08:21 PM, Pedro Alves wrote: > AFAICS, get_number handles negative numbers. E.g., > Yes, get_number handles negative, but is it expected for get_number to handle negative? > (top-gdb) ignore -6 1 > Will ignore next crossing of breakpoint -6. Shouldn't GDB emit an error on the negative input? Do we have any case that negative is valid? Note that get_number_or_range errors on negative. (gdb) thread apply -2-1 bt negative value -- Yao (齐尧)