From 11dced61197b04a2a9653e6718dd939ebd63b077 Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Wed, 9 Feb 2005 21:56:12 +0000 Subject: [PATCH] 2005-02-09 Andrew Cagney * NEWS: Mention removed commands. * m68hc11-tdep.c (show_regs): Delete, unused. (_initialize_m68hc11_tdep): Delete deprecated "regs" command. * gdb-events.sh: Delete deprecated "set eventdebug" and "show eventdebug" commands. * gdb-events.c: Regenerate. * gdbarch.sh: Delete deprecated "set archdebug" and "show archdebug" commands. * gdbarch.c: Regenerate. * cli/cli-cmds.c (init_cli_cmds): Delete deprecated "set remotedebug" and "show remotedebug". * arm-tdep.c (_initialize_arm_tdep): Delete deprecated "set arm disassembly-flavor", "show arm disassembly-flavor", and "othernames" commands. (arm_othernames): Delete unused function. --- gdb/ChangeLog | 16 ++++++++++++++++ gdb/NEWS | 13 +++++++++++++ gdb/arm-tdep.c | 32 -------------------------------- gdb/cli/cli-cmds.c | 9 --------- gdb/gdb-events.c | 13 ++----------- gdb/gdb-events.sh | 14 +++++--------- gdb/gdbarch.c | 9 --------- gdb/gdbarch.sh | 9 --------- gdb/m68hc11-tdep.c | 12 ------------ 9 files changed, 36 insertions(+), 91 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 05064f2442..846f9977f5 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,21 @@ 2005-02-09 Andrew Cagney + * NEWS: Mention removed commands. + * m68hc11-tdep.c (show_regs): Delete, unused. + (_initialize_m68hc11_tdep): Delete deprecated "regs" command. + * gdb-events.sh: Delete deprecated "set eventdebug" and "show + eventdebug" commands. + * gdb-events.c: Regenerate. + * gdbarch.sh: Delete deprecated "set archdebug" and "show + archdebug" commands. + * gdbarch.c: Regenerate. + * cli/cli-cmds.c (init_cli_cmds): Delete deprecated "set + remotedebug" and "show remotedebug". + * arm-tdep.c (_initialize_arm_tdep): Delete deprecated "set arm + disassembly-flavor", "show arm disassembly-flavor", and + "othernames" commands. + (arm_othernames): Delete unused function. + * ppc-sysv-tdep.c (ppc64_sysv_abi_push_dummy_call) (convert_code_addr_to_desc_addr): Convert any function code address to the corresponding function's descriptor. diff --git a/gdb/NEWS b/gdb/NEWS index 57c6eacfc9..788c02231c 100644 --- a/gdb/NEWS +++ b/gdb/NEWS @@ -3,6 +3,19 @@ *** Changes since GDB 6.3 +* Deprecated commands removed + +The following commands, that were deprecated in 2000, have been +removed: + + Command Replacement + set|show arm disassembly-flavor set|show arm disassembler + othernames set arm disassembler + set|show remotedebug set|show debug remote + set|show archdebug set|show debug arch + set|show eventdebug set|show debug event + regs info registers + * New BSD user-level threads support It is now possible to debug programs using the user-level threads diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c index b016b7072b..6c6664f9a1 100644 --- a/gdb/arm-tdep.c +++ b/gdb/arm-tdep.c @@ -2461,19 +2461,6 @@ set_disassembly_style (void) set_arm_regname_option (current); } -/* arm_othernames implements the "othernames" command. This is deprecated - by the "set arm disassembly" command. */ - -static void -arm_othernames (char *names, int n) -{ - /* Circle through the various flavors. */ - current_option = (current_option + 1) % num_disassembly_options; - - disassembly_style = valid_disassembly_styles[current_option]; - set_disassembly_style (); -} - /* Test whether the coff symbol specific value corresponds to a Thumb function. */ @@ -2892,20 +2879,6 @@ _initialize_arm_tdep (void) helptext = ui_file_xstrdup (stb, &length); ui_file_delete (stb); - /* Add the deprecated disassembly-flavor command. */ - add_setshow_enum_cmd("disassembly-flavor", no_class, - valid_disassembly_styles, - &disassembly_style, - _("Set the disassembly style."), - _("Show the disassembly style."), - helptext, - _("The disassembly style is \"%s\"."), - set_disassembly_style_sfunc, NULL, - &setlist, &showlist, &new_set, &new_show); - deprecate_cmd (new_set, "set arm disassembly"); - deprecate_cmd (new_show, "show arm disassembly"); - - /* And now add the new interface. */ add_setshow_enum_cmd("disassembler", no_class, valid_disassembly_styles, &disassembly_style, _("Set the disassembly style."), @@ -2936,11 +2909,6 @@ vfp - VFP co-processor."), set_fp_model_sfunc, show_fp_model, &setarmcmdlist, &showarmcmdlist, NULL, NULL); - /* Add the deprecated "othernames" command. */ - deprecate_cmd (add_com ("othernames", class_obscure, arm_othernames, - _("Switch to the next set of register names.")), - "set arm disassembly"); - /* Debugging flag. */ add_setshow_boolean_cmd ("arm", class_maintenance, &arm_debug, _("Set ARM debugging."), diff --git a/gdb/cli/cli-cmds.c b/gdb/cli/cli-cmds.c index fbe93c9020..60ede57878 100644 --- a/gdb/cli/cli-cmds.c +++ b/gdb/cli/cli-cmds.c @@ -1182,15 +1182,6 @@ This value is used to set the speed of the serial port when debugging\n\ using remote targets.", &setlist), &showlist); - c = add_set_cmd ("remotedebug", no_class, var_zinteger, - (char *) &remote_debug, - "Set debugging of remote protocol.\n\ -When enabled, each packet sent or received with the remote target\n\ -is displayed.", &setlist); - deprecate_cmd (c, "set debug remote"); - deprecate_cmd (deprecated_add_show_from_set (c, &showlist), - "show debug remote"); - deprecated_add_show_from_set (add_set_cmd ("remote", no_class, var_zinteger, (char *) &remote_debug, diff --git a/gdb/gdb-events.c b/gdb/gdb-events.c index 13ca9a9462..5bd5255adb 100644 --- a/gdb/gdb-events.c +++ b/gdb/gdb-events.c @@ -18,8 +18,7 @@ You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software - Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, - USA. */ + Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* Work in progress */ @@ -332,19 +331,11 @@ _initialize_gdb_events (void) queue_event_hooks.tracepoint_modify = queue_tracepoint_modify; queue_event_hooks.architecture_changed = queue_architecture_changed; - c = add_set_cmd ("eventdebug", class_maintenance, var_zinteger, - (char *) (&gdb_events_debug), "Set event debugging.\n\ -When non-zero, event/notify debugging is enabled.", &setlist); - deprecate_cmd (c, "set debug event"); - deprecate_cmd (deprecated_add_show_from_set (c, &showlist), - "show debug event"); - deprecated_add_show_from_set (add_set_cmd ("event", class_maintenance, var_zinteger, (char *) (&gdb_events_debug), "Set event debugging.\n\ -When non-zero, event/notify debugging is enabled.", - &setdebuglist), +When non-zero, event/notify debugging is enabled.", &setdebuglist), &showdebuglist); } diff --git a/gdb/gdb-events.sh b/gdb/gdb-events.sh index b56b184163..84a6e4c509 100755 --- a/gdb/gdb-events.sh +++ b/gdb/gdb-events.sh @@ -1,7 +1,9 @@ #!/bin/sh # User Interface Events. -# Copyright 1999, 2000, 2001, 2002, 2004 Free Software Foundation, Inc. +# +# Copyright 1999, 2000, 2001, 2002, 2004, 2005 Free Software +# Foundation, Inc. # # Contributed by Cygnus Solutions. # @@ -57,7 +59,8 @@ copyright () cat <