summaryrefslogtreecommitdiff
path: root/gdb/gdbarch.c
diff options
context:
space:
mode:
authorDaniel Berlin <dberlin@dberlin.org>2000-03-28 02:25:14 +0000
committerDaniel Berlin <dberlin@dberlin.org>2000-03-28 02:25:14 +0000
commita10d2010372654fc265f87788c9cd0832753b86e (patch)
tree2d56da1e60395c5a12fd18428b1d785278505783 /gdb/gdbarch.c
parent0005814c34dcbc271fa9eefdb2a9694d9f2c67a0 (diff)
downloadgdb-a10d2010372654fc265f87788c9cd0832753b86e.tar.gz
The set debug changes
Diffstat (limited to 'gdb/gdbarch.c')
-rw-r--r--gdb/gdbarch.c18
1 files changed, 15 insertions, 3 deletions
diff --git a/gdb/gdbarch.c b/gdb/gdbarch.c
index b23ec915dc5..798eae378c0 100644
--- a/gdb/gdbarch.c
+++ b/gdb/gdbarch.c
@@ -3262,6 +3262,8 @@ extern void _initialize_gdbarch (void);
void
_initialize_gdbarch ()
{
+ struct cmd_list_element *c;
+
add_prefix_cmd ("endian", class_support, set_endian,
"Set endianness of target.",
&endianlist, "set endian ", 0, &setlist);
@@ -3288,11 +3290,21 @@ _initialize_gdbarch ()
tm_print_insn_info.memory_error_func = dis_asm_memory_error;
tm_print_insn_info.print_address_func = dis_asm_print_address;
- add_show_from_set (add_set_cmd ("archdebug",
+ add_show_from_set (add_set_cmd ("arch",
class_maintenance,
var_zinteger,
(char *)&gdbarch_debug,
"Set architecture debugging.\n\
-When non-zero, architecture debugging is enabled.", &setlist),
- &showlist);
+When non-zero, architecture debugging is enabled.", &setdebuglist),
+ &showdebuglist);
+ c=add_set_cmd("archdebug",
+ class_maintenance,
+ var_zinteger,
+ (char *)&gdbarch_debug,
+ "Set architecture debugging.\n\
+When non-zero, architecture debugging is enabled.", &setlist);
+
+ deprecate_cmd(c,"set debug arch");
+ deprecate_cmd(add_show_from_set(c,&showlist),"show debug arch");
+
}