From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 121642 invoked by alias); 18 Jan 2017 14:54:35 -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 121632 invoked by uid 89); 18 Jan 2017 14:54:34 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.5 required=5.0 tests=AWL,BAYES_00,FREEMAIL_FROM,RCVD_IN_DNSWL_NONE,RCVD_IN_SORBS_SPAM,SPF_PASS autolearn=no version=3.3.2 spammy=H*f:sk:f1c19cc, H*i:sk:f1c19cc, H*MI:sk:f1c19cc, H*r:AES128-SHA X-HELO: mail-lf0-f65.google.com Received: from mail-lf0-f65.google.com (HELO mail-lf0-f65.google.com) (209.85.215.65) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Wed, 18 Jan 2017 14:54:33 +0000 Received: by mail-lf0-f65.google.com with SMTP id x1so2106249lff.0 for ; Wed, 18 Jan 2017 06:54:33 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:content-transfer-encoding :in-reply-to:user-agent; bh=vEok4jp9HsRljvM1eg8TlQEaW2rOeGgpjzvH3Sft38U=; b=iuxlEfbmjYtUpTD/ILZeTlbDQiFY+6yL7Xl4nFekHJFcBdbJn0itAZtUZ8LogJmw6v fF111956PYlYyiiQfM4Ao1xeoocewK8Ksj+5D9+POdAE8vQMiXnCm1WZnqi9SqOS51dp ++SKFn/g65RRRr5cZcFzcU2olxxG4n5KlkEH8ugd17ZaHzkb09ZE2R5RNQMsD6sky1Ir L35HimQiAEtFtMmiQX3dFGTej5rASOYDcmxKL5cScJFc5rtoCABNahKKvxF9o9+Kth7K 1ZnVQMGgplvMOEfRo4tlIpv4dFCC+dR77/fr63mgNXKGWLevLBfU+u4u5t3scjonEKBY Ol+A== X-Gm-Message-State: AIkVDXJmSFVjlNGGFDZ8PfDTT1aQkqvZlw3fTBMa2oHsYzUlNWS952MXXNujlk6pTv+tMA== X-Received: by 10.25.68.1 with SMTP id r1mr528454lfa.86.1484751271309; Wed, 18 Jan 2017 06:54:31 -0800 (PST) Received: from E107787-LIN (gcc1-power7.osuosl.org. [140.211.15.137]) by smtp.gmail.com with ESMTPSA id y131sm300712lfd.49.2017.01.18.06.54.29 (version=TLS1_2 cipher=AES128-SHA bits=128/128); Wed, 18 Jan 2017 06:54:30 -0800 (PST) Date: Wed, 18 Jan 2017 14:54:00 -0000 From: Yao Qi To: Luis Machado Cc: gdb-patches@sourceware.org Subject: Re: [PATCH 6/6] Don't throw exception in dis_asm_memory_error Message-ID: <20170118145415.GN28060@E107787-LIN> References: <1484051178-16013-1-git-send-email-yao.qi@linaro.org> <1484560977-8693-1-git-send-email-yao.qi@linaro.org> <1484560977-8693-7-git-send-email-yao.qi@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-IsSubscribed: yes X-SW-Source: 2017-01/txt/msg00343.txt.bz2 On 17-01-17 08:42:24, Luis Machado wrote: > >+ gdb_test_internal "disassemble 0x0,+4" \ > >+ "Cannot access memory at address 0x0" > > I think you missed the comment you had proposed? > Sorry. > # GDB can't access any memory because there is no live inferior. > > I take it we have no loaded executable as well? Otherwise we could > eventually read data from the executable file, which wouldn't yield > an error. How about this? # GDB can't access memory because there is no loaded executable # nor live inferior. -- Yao (齐尧)