From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22812 invoked by alias); 16 May 2012 13:56:51 -0000 Received: (qmail 22802 invoked by uid 22791); 16 May 2012 13:56:49 -0000 X-SWARE-Spam-Status: No, hits=-6.3 required=5.0 tests=AWL,BAYES_00,FROM_12LTRDOM,KHOP_PGP_SIGNED,KHOP_RCVD_UNTRUST,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL,TW_VB X-Spam-Check-By: sourceware.org Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 16 May 2012 13:56:31 +0000 Received: from nat-dem.mentorg.com ([195.212.93.2] helo=eu2-mail.mgc.mentorg.com) by relay1.mentorg.com with esmtp id 1SUeiM-0004p7-9C from Thomas_Schwinge@mentor.com ; Wed, 16 May 2012 06:56:30 -0700 Received: from feldtkeller.schwinge.homeip.net ([172.30.64.32]) by eu2-mail.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Wed, 16 May 2012 15:56:28 +0200 From: Thomas Schwinge To: gdb-patches@sourceware.org Cc: Kevin Buettner , Maciej W. Rozycki Subject: [SH] regs command User-Agent: Notmuch/0.9-101-g81dad07 (http://notmuchmail.org) Emacs/23.3.1 (x86_64-pc-linux-gnu) Date: Wed, 16 May 2012 13:56:00 -0000 Message-ID: <87ehqkrzzw.fsf@schwinge.name> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha1; protocol="application/pgp-signature" 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: 2012-05/txt/msg00600.txt.bz2 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-length: 1379 Hi! There are issues with sh-tdep's regs command (=C2=BBPrint all registers=C2= =AB): (gdb) regs PC 295568c0 SR 00008000 PR 00000000 MACH 00000000 Register 19 is not available (After PC, SR, PR, MACH, this should print the values of the GBR, VBR (this is register 19), MACL, then R0..R15.) Evidently this code is not prepared to cope with frame_unwind_register raising NOT_AVAILABLE_ERROR. Now, the question is, why does the regs command exist at all? It's been present since the very first revision of sh-tdep.c, but as far as I can tell, =C2=BBinfo registers=C2=AB/=C2=BBinfo all-registers=C2=AB can display= all the register information just fine, for example: (gdb) info all-registers r0 0x0 0 [...] r15 0x7bab5c60 2074827872 pc 0x295568c0 693463232 pr 0x0 0 gbr 0x29690678 694748792 vbr *value not available* mach 0x0 0 macl 0x0 0 sr 0x8000 32768 I therefore propose to remove sh_show_regs_command et al. from sh-tdep.c. If nobody objects, can it just go silently, or should invoking it then cause an error message, like =C2=BBPlease use the =C2=BBinfo all-registers= =C2=AB command instead of =C2=BBregs=C2=AB.=C2=AB? Gr=C3=BC=C3=9Fe, Thomas --=-=-= Content-Type: application/pgp-signature Content-length: 489 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQEcBAEBAgAGBQJPs7IEAAoJENuKOtuXzphJJUIIALjZ9Zl46uCrdaa1NtV8kMYW FJbpapLpLrHAjKgLQ1Ec9gUGHynwG4HXaW7tHmGBjhF6kFZgNLosuBmBCYmtq98A 1RGIN1nj3XRBG3+AE4AKjQa7xrZY99l17OyZE4UQRJ9NuA2dui3+Q20OeXjdza03 89+9SI9nJlZ4kOhnyl10fTO94EyWwqPYhokMOvvDsSk31pX5Hw23NJz/bGI/gimj TkeYIdZ8P/yLH509zduEGV0oynGHXtQvWrOT0D0K47q+nyVh5xYXbqau45B9RPmW W1F1JKAfejJLWvn2n2i2gGEPiw6iYwRz7aGz+XKC36cLliKf/Ukb/4XHBmJxNoc= =TyOH -----END PGP SIGNATURE----- --=-=-=--