From 1d6afd7fc112d25b4cecfd434c0422fddd3225f8 Mon Sep 17 00:00:00 2001 From: Stu Grossman Date: Sun, 18 Feb 1996 17:34:09 +0000 Subject: [PATCH] * config/sparc/tm-sparc.h: Define PS_FLAG_CARRY. Define RETURN_VALUE_ON_STACK to return long doubles on the stack. --- gdb/ChangeLog | 5 +++++ gdb/config/sparc/tm-sparc.h | 6 ++++++ 2 files changed, 11 insertions(+) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 4f28e79ee6f..5339553ac4b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +Sun Feb 18 09:27:10 1996 Stu Grossman (grossman@cygnus.com) + + * config/sparc/tm-sparc.h: Define PS_FLAG_CARRY. Define + RETURN_VALUE_ON_STACK to return long doubles on the stack. + Sat Feb 17 16:33:11 1996 Fred Fish * Makefile.in (ch-exp.o): Add dependencies. diff --git a/gdb/config/sparc/tm-sparc.h b/gdb/config/sparc/tm-sparc.h index ef2f21826a2..a106f0c7cc9 100644 --- a/gdb/config/sparc/tm-sparc.h +++ b/gdb/config/sparc/tm-sparc.h @@ -177,6 +177,7 @@ extern CORE_ADDR sparc_pc_adjust PARAMS ((CORE_ADDR)); #define FP0_REGNUM 32 /* Floating point register 0 */ #define Y_REGNUM 64 /* Temp register for multiplication, etc. */ #define PS_REGNUM 65 /* Contains processor status */ +#define PS_FLAG_CARRY 0x100000 /* Carry bit in PS */ #define WIM_REGNUM 66 /* Window Invalid Mask (not really supported) */ #define TBR_REGNUM 67 /* Trap Base Register (not really supported) */ #define PC_REGNUM 68 /* Contains program counter */ @@ -588,6 +589,11 @@ arguments. */ store_unsigned_integer (dummyname + 176, 4, TYPE_LENGTH (type) & 0x1fff); \ } +/* The Sparc returns long doubles on the stack. */ + +#define RETURN_VALUE_ON_STACK(TYPE) \ + (TYPE_CODE(TYPE) == TYPE_CODE_FLT \ + && TYPE_LENGTH(TYPE) > 8) /* Sparc has no reliable single step ptrace call */ -- 2.30.2