summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFederico G. Schwindt <fgsch@cvs.openbsd.org>2002-04-03 10:43:15 +0000
committerFederico G. Schwindt <fgsch@cvs.openbsd.org>2002-04-03 10:43:15 +0000
commit4e525087c87d722ebdbfc12faa74efe9ec3f5b73 (patch)
tree89e38c6deb6e9c5f3f505c61e42d58a097405e42
parentb3cb38ecb9c4c4e93bb70f2eec1d63dd3802e498 (diff)
more sparc64 specific code.
-rw-r--r--gnu/usr.bin/binutils/gdb/sparc-tdep.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/gnu/usr.bin/binutils/gdb/sparc-tdep.c b/gnu/usr.bin/binutils/gdb/sparc-tdep.c
index 9502886aaaf..3f8f707bc9c 100644
--- a/gnu/usr.bin/binutils/gdb/sparc-tdep.c
+++ b/gnu/usr.bin/binutils/gdb/sparc-tdep.c
@@ -800,6 +800,12 @@ sparc_push_dummy_frame ()
old_sp = sp = read_register (SP_REGNUM);
#ifdef GDB_TARGET_IS_SPARC64
+ /* PC, NPC, CCR, FSR, FPRS, Y, ASI */
+ read_register_bytes (REGISTER_BYTE (PC_REGNUM), &register_temp[0],
+ REGISTER_RAW_SIZE (PC_REGNUM) * 7);
+ read_register_bytes (REGISTER_BYTE (PSTATE_REGNUM),
+ &register_temp[7 * SPARC_INTREG_SIZE],
+ REGISTER_RAW_SIZE (PSTATE_REGNUM));
/* FIXME: not sure what needs to be saved here. */
#else
/* Y, PS, WIM, TBR, PC, NPC, FPS, CPS regs */