diff options
author | Stu Grossman <grossman@cygnus> | 1996-02-18 17:34:09 +0000 |
---|---|---|
committer | Stu Grossman <grossman@cygnus> | 1996-02-18 17:34:09 +0000 |
commit | 1d6afd7fc112d25b4cecfd434c0422fddd3225f8 (patch) | |
tree | 90a82a2f2b4eb0abdb8ba30321c5c27280495ca7 /gdb | |
parent | 176b2bee3fa872323885c794ca561055a1ed0c98 (diff) | |
download | gdb-1d6afd7fc112d25b4cecfd434c0422fddd3225f8.zip gdb-1d6afd7fc112d25b4cecfd434c0422fddd3225f8.tar.gz gdb-1d6afd7fc112d25b4cecfd434c0422fddd3225f8.tar.bz2 |
* config/sparc/tm-sparc.h: Define PS_FLAG_CARRY. Define
RETURN_VALUE_ON_STACK to return long doubles on the stack.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/config/sparc/tm-sparc.h | 6 |
2 files changed, 11 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 4f28e79..5339553 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 <fnf@cyngus.com> * Makefile.in (ch-exp.o): Add dependencies. diff --git a/gdb/config/sparc/tm-sparc.h b/gdb/config/sparc/tm-sparc.h index ef2f218..a106f0c 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 */ |