X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Fsh-tdep.c;h=5b322ea2d5af3a6364c625e80a6645ef9da7b4b8;hb=b4991d292edd84c16bd2050bd071198ceae764fe;hp=48a388b2d8f3042f6839e80b0399f4c479bda644;hpb=405feb71d4733a36cdc0629e9e4ccecd1a40dc39;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/sh-tdep.c b/gdb/sh-tdep.c index 48a388b2d8..5b322ea2d5 100644 --- a/gdb/sh-tdep.c +++ b/gdb/sh-tdep.c @@ -1,6 +1,6 @@ /* Target-dependent code for Renesas Super-H, for GDB. - Copyright (C) 1993-2019 Free Software Foundation, Inc. + Copyright (C) 1993-2020 Free Software Foundation, Inc. This file is part of GDB. @@ -24,7 +24,7 @@ #include "frame.h" #include "frame-base.h" #include "frame-unwind.h" -#include "dwarf2-frame.h" +#include "dwarf2/frame.h" #include "symtab.h" #include "gdbtypes.h" #include "gdbcmd.h" @@ -2408,29 +2408,16 @@ sh_gdbarch_init (struct gdbarch_info info, struct gdbarch_list *arches) return gdbarch; } -static void -show_sh_command (const char *args, int from_tty) -{ - help_list (showshcmdlist, "show sh ", all_commands, gdb_stdout); -} - -static void -set_sh_command (const char *args, int from_tty) -{ - printf_unfiltered - ("\"set sh\" must be followed by an appropriate subcommand.\n"); - help_list (setshcmdlist, "set sh ", all_commands, gdb_stdout); -} - +void _initialize_sh_tdep (); void -_initialize_sh_tdep (void) +_initialize_sh_tdep () { gdbarch_register (bfd_arch_sh, sh_gdbarch_init, NULL); - add_prefix_cmd ("sh", no_class, set_sh_command, "SH specific commands.", - &setshcmdlist, "set sh ", 0, &setlist); - add_prefix_cmd ("sh", no_class, show_sh_command, "SH specific commands.", - &showshcmdlist, "show sh ", 0, &showlist); + add_basic_prefix_cmd ("sh", no_class, "SH specific commands.", + &setshcmdlist, "set sh ", 0, &setlist); + add_show_prefix_cmd ("sh", no_class, "SH specific commands.", + &showshcmdlist, "show sh ", 0, &showlist); add_setshow_enum_cmd ("calling-convention", class_vars, sh_cc_enum, &sh_active_calling_convention,