diff options
author | Steve Chamberlain <sac@cygnus> | 1994-02-05 00:22:08 +0000 |
---|---|---|
committer | Steve Chamberlain <sac@cygnus> | 1994-02-05 00:22:08 +0000 |
commit | edd01519b93e333f1d383783599f31de0e41b4fb (patch) | |
tree | a7aed2f0715081e666d8fddf065b551c3c6f44ad /gdb/sh-tdep.c | |
parent | 9e0f78c8d753476070e1da261f4bcbb52ff22d6c (diff) | |
download | gdb-edd01519b93e333f1d383783599f31de0e41b4fb.zip gdb-edd01519b93e333f1d383783599f31de0e41b4fb.tar.gz gdb-edd01519b93e333f1d383783599f31de0e41b4fb.tar.bz2 |
Fri Feb 4 15:53:18 1994 Steve Chamberlain (sac@cygnus.com)
* h8500-tdep.c (saved_pc_after_call): The size of the
pc is memory model dependent. (segmented_command,
unsegmented_command, _initialize_h8500_tdep): New commands to
change memory model.
* remote-7000.c (initialize_remote_e7000): Change name of snoop
command.
* remote-hms.c (hms_load): Remove breakpoints when loaded.
(hms_wait): Use new status structure
(hms_open): Push the target here. (hms_before_main_loop): Not
here. (supply_val, hms_fetch_register, hms_store_register): Cope
with H8/500 names too.
* sh-tdep.c (show_regs, initialize_sh_tdep): New command to print
all registers in a compact way.
Diffstat (limited to 'gdb/sh-tdep.c')
-rw-r--r-- | gdb/sh-tdep.c | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/gdb/sh-tdep.c b/gdb/sh-tdep.c index 81cd752..c965926 100644 --- a/gdb/sh-tdep.c +++ b/gdb/sh-tdep.c @@ -241,6 +241,39 @@ pop_frame () set_current_frame (create_new_frame (read_register (FP_REGNUM), read_pc ())); } + +/* Print the registers in a form similar to the E7000 */ +static void +show_regs (args, from_tty) +char *args; +int from_tty; +{ + printf_filtered("PC=%08x SR=%08x PR=%08x MACH=%08x MACHL=%08x\n", + read_register(PC_REGNUM), + read_register(SR_REGNUM), + read_register(PR_REGNUM), + read_register(MACH_REGNUM), + read_register(MACL_REGNUM)); + + printf_filtered("R0-R7 %08x %08x %08x %08x %08x %08x %08x %08x\n", + read_register(0), + read_register(1), + read_register(2), + read_register(3), + read_register(4), + read_register(5), + read_register(6), + read_register(7)); + printf_filtered("R8-R15 %08x %08x %08x %08x %08x %08x %08x %08x\n", + read_register(8), + read_register(9), + read_register(10), + read_register(11), + read_register(12), + read_register(13), + read_register(14), + read_register(15)); +} void @@ -253,4 +286,6 @@ _initialize_sh_tdep () (char *) &sim_memory_size, "Set simulated memory size of simulator target.", &setlist), &showlist); + + add_com("regs", class_vars, show_regs, "Print all registers"); } |