From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9282 invoked by alias); 16 Apr 2009 17:52:08 -0000 Received: (qmail 9273 invoked by uid 22791); 16 Apr 2009 17:52:07 -0000 X-SWARE-Spam-Status: No, hits=-0.4 required=5.0 tests=AWL,BAYES_20,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Received: from mtaout3.012.net.il (HELO mtaout3.012.net.il) (84.95.2.7) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 16 Apr 2009 17:52:02 +0000 Received: from conversion-daemon.i_mtaout3.012.net.il by i_mtaout3.012.net.il (HyperSendmail v2004.12) id <0KI700L00G9PWU00@i_mtaout3.012.net.il> for gdb-patches@sourceware.org; Thu, 16 Apr 2009 20:52:00 +0300 (IDT) Received: from HOME-C4E4A596F7 ([84.229.34.97]) by i_mtaout3.012.net.il (HyperSendmail v2004.12) with ESMTPA id <0KI700LA3GANUK00@i_mtaout3.012.net.il>; Thu, 16 Apr 2009 20:52:00 +0300 (IDT) Date: Thu, 16 Apr 2009 17:52:00 -0000 From: Eli Zaretskii Subject: Re: [RFA] print error message if (auto) disassembly failed In-reply-to: <20090416173918.GP7557@adacore.com> To: Joel Brobecker Cc: gdb-patches@sourceware.org Reply-to: Eli Zaretskii Message-id: <834owolc51.fsf@gnu.org> References: <20090416173918.GP7557@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/msg00374.txt.bz2 > Date: Thu, 16 Apr 2009 10:39:18 -0700 > From: Joel Brobecker > > I propose to change the behavior to print the error message: > > (gdb) core core > warning: core file may not match specified executable file. > Core was generated by `./crash'. > Program terminated with signal 6, Aborted. > #0 0x00007f8befcc8307 in ?? () > 0x00007f8befcc8307: Cannot access memory at address 0x7f8befcc8307 > (gdb) 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.