From 4e525087c87d722ebdbfc12faa74efe9ec3f5b73 Mon Sep 17 00:00:00 2001 From: "Federico G. Schwindt" Date: Wed, 3 Apr 2002 10:43:15 +0000 Subject: more sparc64 specific code. --- gnu/usr.bin/binutils/gdb/sparc-tdep.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gnu/usr.bin') 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), ®ister_temp[0], + REGISTER_RAW_SIZE (PC_REGNUM) * 7); + read_register_bytes (REGISTER_BYTE (PSTATE_REGNUM), + ®ister_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 */ -- cgit v1.2.3