From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3028 invoked by alias); 16 Apr 2009 18:16:37 -0000 Received: (qmail 3011 invoked by uid 22791); 16 Apr 2009 18:16:36 -0000 X-SWARE-Spam-Status: No, hits=-0.6 required=5.0 tests=AWL,BAYES_05,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Received: from mtaout7.012.net.il (HELO mtaout7.012.net.il) (84.95.2.19) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 16 Apr 2009 18:16:31 +0000 Received: from conversion-daemon.i-mtaout7.012.net.il by i-mtaout7.012.net.il (HyperSendmail v2007.08) id <0KI700100HBB5L00@i-mtaout7.012.net.il> for gdb-patches@sourceware.org; Thu, 16 Apr 2009 21:16:23 +0300 (IDT) Received: from HOME-C4E4A596F7 ([84.229.34.97]) by i-mtaout7.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0KI700D2OHF9Y430@i-mtaout7.012.net.il>; Thu, 16 Apr 2009 21:16:22 +0300 (IDT) Date: Thu, 16 Apr 2009 18:16:00 -0000 From: Eli Zaretskii Subject: Re: [RFA] print error message if (auto) disassembly failed In-reply-to: <20090416180146.GH7585@adacore.com> To: Joel Brobecker Cc: gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: <831vrslb0f.fsf@gnu.org> References: <20090416173918.GP7557@adacore.com> <834owolc51.fsf@gnu.org> <20090416180146.GH7585@adacore.com> X-IsSubscribed: yes 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 X-SW-Source: 2009-04/txt/msg00377.txt.bz2 > Date: Thu, 16 Apr 2009 11:01:46 -0700 > From: Joel Brobecker > Cc: gdb-patches@sourceware.org > > > How about > > > > #0 0x00007f8befcc8307 in ?? () > > 0x00007f8befcc8307: (bad) > > > > instead? This is consistent with what "display/i $pc" displays if $pc > > has a bad value, such as if you somehow land in the middle of an > > instruction. > > The problem is that this is not actually a "bad" instruction in this case, > but an invalid address. But an invalid address can sometimes (accidentally) be readable, right? What will we print then?