diff options
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/mips-tdep.c | 29 |
2 files changed, 19 insertions, 15 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 9e65a69..436c8bb 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,8 @@ 2004-10-30 Andrew Cagney <cagney@gnu.org> + * mips-tdep.c (_initialize_mips_tdep): Use + add_setshow_zinteger_cmd. + * mips-tdep.c (mips_eabi_extract_return_value) (mips_o64_extract_return_value, mips_o64_store_return_value) (return_value_location, mips_eabi_reg_struct_has_addr) @@ -11,8 +14,6 @@ extract_return_value, store_return_value, use_struct_convention and reg_struct_has_addr, add return_value. -2004-10-30 Andrew Cagney <cagney@gnu.org> - * mips-tdep.c (read_signed_register): Use regcache_cooked_read_signed. diff --git a/gdb/mips-tdep.c b/gdb/mips-tdep.c index a6324aa..9642fcc 100644 --- a/gdb/mips-tdep.c +++ b/gdb/mips-tdep.c @@ -6097,16 +6097,16 @@ This option can be set to one of:\n\ /* We really would like to have both "0" and "unlimited" work, but command.c doesn't deal with that. So make it a var_zinteger because the user can always use "999999" or some such for unlimited. */ - c = add_set_cmd ("heuristic-fence-post", class_support, var_zinteger, - (char *) &heuristic_fence_post, "\ -Set the distance searched for the start of a function.\n\ + add_setshow_zinteger_cmd ("heuristic-fence-post", class_support, + &heuristic_fence_post, "\ +Set the distance searched for the start of a function.\n", "\ +Show the distance searched for the start of a function.\n", "\ If you are debugging a stripped executable, GDB needs to search through the\n\ program for the start of a function. This command sets the distance of the\n\ -search. The only need to set it is when debugging a stripped executable.", &setlist); - /* We need to throw away the frame cache when we set this, since it - might change our ability to get backtraces. */ - set_cmd_sfunc (c, reinit_frame_cache_sfunc); - deprecated_add_show_from_set (c, &showlist); +search. The only need to set it is when debugging a stripped executable.", "\ +The distance searched for the start of a function is %s.\n", + reinit_frame_cache_sfunc, NULL, + &setlist, &showlist); /* Allow the user to control whether the upper bits of 64-bit addresses should be zeroed. */ @@ -6131,9 +6131,12 @@ Compatibility with 64-bit MIPS target that transfers 32-bit quantities is %s.", set_mips64_transfers_32bit_regs, NULL, &setlist, &showlist); /* Debug this files internals. */ - deprecated_add_show_from_set - (add_set_cmd ("mips", class_maintenance, var_zinteger, - &mips_debug, "Set mips debugging.\n\ -When non-zero, mips specific debugging is enabled.", &setdebuglist), - &showdebuglist); + add_setshow_zinteger_cmd ("mips", class_maintenance, + &mips_debug, "\ +Set mips debugging.\n", "\ +Show mips debugging.\n", "\ +When non-zero, mips specific debugging is enabled.\n", "\ +Mips debugging is currently %s.\n", + NULL, NULL, + &setdebuglist, &showdebuglist); } |