summaryrefslogtreecommitdiff
path: root/gdb/gnu-nat.c
diff options
context:
space:
mode:
authorPedro Alves <pedro@codesourcery.com>2009-05-12 16:51:12 +0000
committerPedro Alves <pedro@codesourcery.com>2009-05-12 16:51:12 +0000
commit99a559205ff95b6b18a762ac12e683489f4e919f (patch)
tree5fd440971fbcd664fd957975cd4b679ea01ba87d /gdb/gnu-nat.c
parentba50bf1ce8e8dab7e296dcd878394a09114282e1 (diff)
downloadgdb-99a559205ff95b6b18a762ac12e683489f4e919f.tar.gz
gdb/
2009-05-12 Pedro Alves <pedro@codesourcery.com> * cli/cli-decode.c (deprecated_add_set_cmd): Delete. * command.h (deprecated_add_set_cmd): Delete declaration. * gnu-nat.c (_initialize_gnu_nat): Replace 'maint gnu-debug' with 'set debug gnu-nat' and 'show debug gnu-nat'. * i386-nat.c (_initialize_i386_nat): Replace 'maint show-debug-registers' with 'maint set show-debug-registers' and 'maint show show-debug-registers'. * mips-linux-nat.c (_initialize_mips_linux_nat): Replace 'maint show-debug-registers' with 'maint set show-debug-registers' and 'maint show show-debug-registers'. gdb/doc/ 2009-05-12 Pedro Alves <pedro@codesourcery.com> * gdb.texinfo: Document 'set/show debug gnu-nat'. Replace 'maint show-debug-regs' docs by 'maint set show-debug-regs' and 'maint show show-debug-regs' docs.
Diffstat (limited to 'gdb/gnu-nat.c')
-rw-r--r--gdb/gnu-nat.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/gdb/gnu-nat.c b/gdb/gnu-nat.c
index 157c95061ec..b3b89a40a63 100644
--- a/gdb/gnu-nat.c
+++ b/gdb/gnu-nat.c
@@ -3410,10 +3410,15 @@ _initialize_gnu_nat (void)
add_task_commands ();
add_thread_commands ();
- deprecated_add_set_cmd ("gnu-debug", class_maintenance,
- var_boolean, (char *) &gnu_debug_flag,
- "Set debugging output for the gnu backend.",
- &maintenancelist);
+ add_setshow_boolean_cmd ("gnu-nat", class_maintenance,
+ &gnu_debug_flag,
+ _("Set debugging output for the gnu backend."),
+ _("Show debugging output for the gnu backend."),
+ NULL,
+ NULL,
+ NULL,
+ &setdebuglist,
+ &showdebuglist);
}
#ifdef FLUSH_INFERIOR_CACHE