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/config/sparc/tm-sparc.h | |
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/config/sparc/tm-sparc.h')
-rw-r--r-- | gdb/config/sparc/tm-sparc.h | 6 |
1 files changed, 6 insertions, 0 deletions
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 */ |