aboutsummaryrefslogtreecommitdiff
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
commit5d161b24198e362be0f768e76e6f76bd110d8acb (patch)
tree7a7095d7ec3ec96b13ce4a232db0a0d2fa8121e5 /gdb/gdbarch.c
parent107b56f053504c0864319ccb6c0f3fef03186fe6 (diff)
downloadgdb-5d161b24198e362be0f768e76e6f76bd110d8acb.zip
gdb-5d161b24198e362be0f768e76e6f76bd110d8acb.tar.gz
gdb-5d161b24198e362be0f768e76e6f76bd110d8acb.tar.bz2
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 b23ec91..798eae3 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");
+
}