From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12881 invoked by alias); 10 Aug 2012 09:22:41 -0000 Received: (qmail 12867 invoked by uid 22791); 10 Aug 2012 09:22:40 -0000 X-SWARE-Spam-Status: No, hits=-7.7 required=5.0 tests=AWL,BAYES_00,KHOP_PGP_SIGNED,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL,TW_FD 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; Fri, 10 Aug 2012 09:22:26 +0000 Received: from svr-orw-exc-10.mgc.mentorg.com ([147.34.98.58]) by relay1.mentorg.com with esmtp id 1SzlQH-0000bf-Uo from Thomas_Schwinge@mentor.com for gdb-patches@sourceware.org; Fri, 10 Aug 2012 02:22:25 -0700 Received: from SVR-IES-FEM-01.mgc.mentorg.com ([137.202.0.104]) by SVR-ORW-EXC-10.mgc.mentorg.com with Microsoft SMTPSVC(6.0.3790.4675); Fri, 10 Aug 2012 02:22:25 -0700 Received: from feldtkeller.schwinge.homeip.net (137.202.0.76) by SVR-IES-FEM-01.mgc.mentorg.com (137.202.0.104) with Microsoft SMTP Server id 14.1.289.1; Fri, 10 Aug 2012 10:22:24 +0100 From: Thomas Schwinge To: Subject: Re: [SH] regs command In-Reply-To: <87wr3kl3b9.fsf@schwinge.name> References: <87ehqkrzzw.fsf@schwinge.name> <20120516142633.GV10253@adacore.com> <87zk98qe8t.fsf@schwinge.name> <87wr3kl3b9.fsf@schwinge.name> User-Agent: Notmuch/0.9-101-g81dad07 (http://notmuchmail.org) Emacs/23.3.1 (x86_64-pc-linux-gnu) Date: Fri, 10 Aug 2012 09:22:00 -0000 Message-ID: <87lihnrtj2.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-08/txt/msg00311.txt.bz2 --=-=-= Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Content-length: 3805 Hi! On Wed, 06 Jun 2012 20:10:02 +0200, I wrote: > On Wed, 16 May 2012 18:31:30 +0200, I wrote: > > On Wed, 16 May 2012 07:26:33 -0700, Joel Brobecker wrote: > > > > I therefore propose to remove sh_show_regs_command et al. from sh-t= dep.c. > > > > If nobody objects, can it just go silently, or should invoking it t= hen > > > > cause an error message, like =C2=BBPlease use the =C2=BBinfo all-re= gisters=C2=AB command > > > > instead of =C2=BBregs=C2=AB.=C2=AB? > > >=20 > > > Make it an alias of "info reg" or "info all-registers", and make > > > the alias deprecated, so that users get a warning when they use it? >=20 > Below is the patch that I finally committed. >=20 > > > We can make that command deprecated for 7.5, and then remove it > > > from HEAD after 7.5 is branched, in a few weeks. >=20 > I'll prepare a patch for that. ... and here it is. OK to commit? gdb/ * NEWS: Document the removal of SH's 'regs' command. * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs' command. gdb/doc/ * gdb.texinfo: Document the removal of SH's 'regs' command. Index: NEWS =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /cvs/src/src/gdb/NEWS,v retrieving revision 1.538 diff -u -p -r1.538 NEWS --- NEWS 6 Aug 2012 17:13:26 -0000 1.538 +++ NEWS 10 Aug 2012 09:15:04 -0000 @@ -20,6 +20,12 @@ maint info bfds List the BFDs known to GDB. =20 +* Removed commands + + ** For the Renesas Super-H architecture, the "regs" command has been rem= oved + (has been deprecated in GDB 7.5), and "info all-registers" should be = used + instead. + *** Changes in GDB 7.5 =20 * GDB now supports x32 ABI. Visit Index: sh-tdep.c =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /cvs/src/src/gdb/sh-tdep.c,v retrieving revision 1.246 diff -u -p -r1.246 sh-tdep.c --- sh-tdep.c 22 Jul 2012 16:52:41 -0000 1.246 +++ sh-tdep.c 10 Aug 2012 09:15:04 -0000 @@ -2416,16 +2418,8 @@ extern initialize_file_ftype _initialize void _initialize_sh_tdep (void) { - struct cmd_list_element *c; - gdbarch_register (bfd_arch_sh, sh_gdbarch_init, NULL); =20 - /* We can't use an alias here because 'info registers' has not yet been - registered. */ - c =3D add_com ("regs", class_vars, all_registers_info, - _("Print all registers")); - deprecate_cmd (c, "info all-registers"); - add_prefix_cmd ("sh", no_class, set_sh_command, "SH specific commands.", &setshcmdlist, "set sh ", 0, &setlist); add_prefix_cmd ("sh", no_class, show_sh_command, "SH specific commands.", Index: doc/gdb.texinfo =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /cvs/src/src/gdb/doc/gdb.texinfo,v retrieving revision 1.994 diff -u -p -r1.994 gdb.texinfo --- doc/gdb.texinfo 2 Aug 2012 09:27:15 -0000 1.994 +++ doc/gdb.texinfo 10 Aug 2012 09:15:05 -0000 @@ -20471,13 +20471,6 @@ For the Renesas Super-H processor, @valu commands: =20 @table @code -@item regs -@kindex regs@r{, Super-H} -This command is deprecated, and @code{info all-registers} should be -used instead. - -Show the values of all Super-H registers. - @item set sh calling-convention @var{convention} @kindex set sh calling-convention Set the calling-convention used when calling functions from @value{GDBN}. Gr=C3=BC=C3=9Fe, Thomas --=-=-= Content-Type: application/pgp-signature Content-length: 489 -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.11 (GNU/Linux) iQEcBAEBAgAGBQJQJNLBAAoJENuKOtuXzphJ3y0IAMJqMJcqDpJSREaxQAGL2G/Z nEhfqqG5G5yPhYUAOrGCCYynM1KHLFFbaiM+NLwoiR+7mYxG94Z6/nkLZjuK8O8+ ew60uiT6B845GoSDKjXoIgCraPJ2KEvr97izHeM1RqRquuMsdY5PvSKzrOSGz/pJ vZfAR6wJhuD8JlLLUMKj7wE9MMS6u2odg73j6W+5/riDxhjc/Yk+7zMQkrxyEAR0 y0lkHXe2MlAetqfEcFipl+uRq3PsuanhIJSB24TCPRDTfKoOj7DxuOQFApD4C/1B d//QNb/nrNn3RG3Hv8amm5BYva5kYZJwVjiGX4umm7tH6KeRVosByZQp0bgwnec= =BneE -----END PGP SIGNATURE----- --=-=-=--