diff options
author | Thomas Schwinge <tschwinge@gnu.org> | 2012-06-06 18:03:54 +0000 |
---|---|---|
committer | Thomas Schwinge <tschwinge@gnu.org> | 2012-06-06 18:03:54 +0000 |
commit | 2d4c29c5e6d43e8a6dfec443d25f42b371bb4f0b (patch) | |
tree | f6b74f48933e66892a80b0ddaec184dcd7b2cb04 /gdb/sh64-tdep.c | |
parent | f5f1cdb6126eb45082554ab0d8801f57d4f2516e (diff) | |
download | gdb-2d4c29c5e6d43e8a6dfec443d25f42b371bb4f0b.zip gdb-2d4c29c5e6d43e8a6dfec443d25f42b371bb4f0b.tar.gz gdb-2d4c29c5e6d43e8a6dfec443d25f42b371bb4f0b.tar.bz2 |
gdb/
* NEWS: Document the deprecation of SH's 'regs' command.
* inferior.h (all_registers_info): Add function declaration.
* sh-tdep.c (sh_show_regs): Remove variable.
(sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
(sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
(sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
(sh_show_regs_command): Remove functions.
(sh_gdbarch_init): Don't set sh_show_regs.
(_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
'info all-registers'.
* sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
(sh64_show_regs): Remove functions.
* sh64-tdep.h (sh64_show_regs): Remove function declaration.
gdb/doc/
* gdb.texinfo: Document the deprecation of SH's 'regs' command.
Diffstat (limited to 'gdb/sh64-tdep.c')
-rw-r--r-- | gdb/sh64-tdep.c | 119 |
1 files changed, 0 insertions, 119 deletions
diff --git a/gdb/sh64-tdep.c b/gdb/sh64-tdep.c index c8b1c04..4e6f262 100644 --- a/gdb/sh64-tdep.c +++ b/gdb/sh64-tdep.c @@ -1339,125 +1339,6 @@ sh64_return_value (struct gdbarch *gdbarch, struct value *function, return RETURN_VALUE_REGISTER_CONVENTION; } -static void -sh64_show_media_regs (struct frame_info *frame) -{ - struct gdbarch *gdbarch = get_frame_arch (frame); - int i; - - printf_filtered - ("PC=%s SR=%s\n", - phex (get_frame_register_unsigned (frame, - gdbarch_pc_regnum (gdbarch)), 8), - phex (get_frame_register_unsigned (frame, SR_REGNUM), 8)); - - printf_filtered - ("SSR=%s SPC=%s\n", - phex (get_frame_register_unsigned (frame, SSR_REGNUM), 8), - phex (get_frame_register_unsigned (frame, SPC_REGNUM), 8)); - printf_filtered - ("FPSCR=%s\n ", - phex (get_frame_register_unsigned (frame, FPSCR_REGNUM), 8)); - - for (i = 0; i < 64; i = i + 4) - printf_filtered - ("\nR%d-R%d %s %s %s %s\n", - i, i + 3, - phex (get_frame_register_unsigned (frame, i + 0), 8), - phex (get_frame_register_unsigned (frame, i + 1), 8), - phex (get_frame_register_unsigned (frame, i + 2), 8), - phex (get_frame_register_unsigned (frame, i + 3), 8)); - - printf_filtered ("\n"); - - for (i = 0; i < 64; i = i + 8) - printf_filtered - ("FR%d-FR%d %08lx %08lx %08lx %08lx %08lx %08lx %08lx %08lx\n", - i, i + 7, - (long) get_frame_register_unsigned - (frame, gdbarch_fp0_regnum (gdbarch) + i + 0), - (long) get_frame_register_unsigned - (frame, gdbarch_fp0_regnum (gdbarch) + i + 1), - (long) get_frame_register_unsigned - (frame, gdbarch_fp0_regnum (gdbarch) + i + 2), - (long) get_frame_register_unsigned - (frame, gdbarch_fp0_regnum (gdbarch) + i + 3), - (long) get_frame_register_unsigned - (frame, gdbarch_fp0_regnum (gdbarch) + i + 4), - (long) get_frame_register_unsigned - (frame, gdbarch_fp0_regnum (gdbarch) + i + 5), - (long) get_frame_register_unsigned - (frame, gdbarch_fp0_regnum (gdbarch) + i + 6), - (long) get_frame_register_unsigned - (frame, gdbarch_fp0_regnum (gdbarch) + i + 7)); -} - -static void -sh64_show_compact_regs (struct frame_info *frame) -{ - struct gdbarch *gdbarch = get_frame_arch (frame); - int i; - - printf_filtered - ("PC=%s\n", - phex (get_frame_register_unsigned (frame, PC_C_REGNUM), 8)); - - printf_filtered - ("GBR=%08lx MACH=%08lx MACL=%08lx PR=%08lx T=%08lx\n", - (long) get_frame_register_unsigned (frame, GBR_C_REGNUM), - (long) get_frame_register_unsigned (frame, MACH_C_REGNUM), - (long) get_frame_register_unsigned (frame, MACL_C_REGNUM), - (long) get_frame_register_unsigned (frame, PR_C_REGNUM), - (long) get_frame_register_unsigned (frame, T_C_REGNUM)); - printf_filtered - ("FPSCR=%08lx FPUL=%08lx\n", - (long) get_frame_register_unsigned (frame, FPSCR_C_REGNUM), - (long) get_frame_register_unsigned (frame, FPUL_C_REGNUM)); - - for (i = 0; i < 16; i = i + 4) - printf_filtered - ("\nR%d-R%d %08lx %08lx %08lx %08lx\n", - i, i + 3, - (long) get_frame_register_unsigned (frame, i + 0), - (long) get_frame_register_unsigned (frame, i + 1), - (long) get_frame_register_unsigned (frame, i + 2), - (long) get_frame_register_unsigned (frame, i + 3)); - - printf_filtered ("\n"); - - for (i = 0; i < 16; i = i + 8) - printf_filtered - ("FR%d-FR%d %08lx %08lx %08lx %08lx %08lx %08lx %08lx %08lx\n", - i, i + 7, - (long) get_frame_register_unsigned - (frame, gdbarch_fp0_regnum (gdbarch) + i + 0), - (long) get_frame_register_unsigned - (frame, gdbarch_fp0_regnum (gdbarch) + i + 1), - (long) get_frame_register_unsigned - (frame, gdbarch_fp0_regnum (gdbarch) + i + 2), - (long) get_frame_register_unsigned - (frame, gdbarch_fp0_regnum (gdbarch) + i + 3), - (long) get_frame_register_unsigned - (frame, gdbarch_fp0_regnum (gdbarch) + i + 4), - (long) get_frame_register_unsigned - (frame, gdbarch_fp0_regnum (gdbarch) + i + 5), - (long) get_frame_register_unsigned - (frame, gdbarch_fp0_regnum (gdbarch) + i + 6), - (long) get_frame_register_unsigned - (frame, gdbarch_fp0_regnum (gdbarch) + i + 7)); -} - -/* FIXME!!! This only shows the registers for shmedia, excluding the - pseudo registers. */ -void -sh64_show_regs (struct frame_info *frame) -{ - if (pc_is_isa32 (get_frame_pc (frame))) - sh64_show_media_regs (frame); - else - sh64_show_compact_regs (frame); -} - /* *INDENT-OFF* */ /* SH MEDIA MODE (ISA 32) |