summaryrefslogtreecommitdiff
path: root/gdb/sh-tdep.c
diff options
context:
space:
mode:
authorStan Shebs <shebs@apple.com>1999-04-26 18:23:13 +0000
committerStan Shebs <shebs@apple.com>1999-04-26 18:23:13 +0000
commit9f89d263d1c0db98f6807281138f97f197f82bce (patch)
tree7f9b131d895f0b5f3d54b6348e12c7c35be93e93 /gdb/sh-tdep.c
parent33573d8115710d3d6f407968b4420282e0422bbc (diff)
downloadgdb-9f89d263d1c0db98f6807281138f97f197f82bce.tar.gz
import gdb-19990422 snapshot
Diffstat (limited to 'gdb/sh-tdep.c')
-rw-r--r--gdb/sh-tdep.c21
1 files changed, 5 insertions, 16 deletions
diff --git a/gdb/sh-tdep.c b/gdb/sh-tdep.c
index dd94506ab44..2b25f0d505e 100644
--- a/gdb/sh-tdep.c
+++ b/gdb/sh-tdep.c
@@ -96,6 +96,7 @@ struct {
{ sh_reg_names, bfd_mach_sh },
{ sh3_reg_names, bfd_mach_sh3 },
{ sh3e_reg_names, bfd_mach_sh3e },
+ { sh3e_reg_names, bfd_mach_sh4 },
{ NULL, 0 }
};
@@ -578,22 +579,6 @@ sh_fix_call_dummy (dummy, pc, fun, nargs, args, type, gcc_p)
}
#endif
-/* Function: get_saved_register
- Just call the generic_get_saved_register function. */
-
-void
-get_saved_register (raw_buffer, optimized, addrp, frame, regnum, lval)
- char *raw_buffer;
- int *optimized;
- CORE_ADDR *addrp;
- struct frame_info *frame;
- int regnum;
- enum lval_type *lval;
-{
- generic_get_saved_register (raw_buffer, optimized, addrp,
- frame, regnum, lval);
-}
-
/* Modify the actual processor type. */
@@ -631,6 +616,10 @@ sh_show_regs (args, from_tty)
else
cpu = 0;
+ /* FIXME: sh4 has more registers */
+ if (cpu == bfd_mach_sh4)
+ cpu = bfd_mach_sh3;
+
printf_filtered ("PC=%08x SR=%08x PR=%08x MACH=%08x MACHL=%08x\n",
read_register (PC_REGNUM),
read_register (SR_REGNUM),