diff options
author | Daniel Berlin <dberlin@dberlin.org> | 2000-03-28 02:25:14 +0000 |
---|---|---|
committer | Daniel Berlin <dberlin@dberlin.org> | 2000-03-28 02:25:14 +0000 |
commit | a10d2010372654fc265f87788c9cd0832753b86e (patch) | |
tree | 2d56da1e60395c5a12fd18428b1d785278505783 /gdb/gdbarch.c | |
parent | 0005814c34dcbc271fa9eefdb2a9694d9f2c67a0 (diff) | |
download | gdb-a10d2010372654fc265f87788c9cd0832753b86e.tar.gz |
The set debug changes
Diffstat (limited to 'gdb/gdbarch.c')
-rw-r--r-- | gdb/gdbarch.c | 18 |
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"); + } |