aboutsummaryrefslogtreecommitdiff
path: root/gdb/s390-tdep.c
diff options
context:
space:
mode:
authorJim Blandy <jimb@codesourcery.com>2001-11-14 22:29:39 +0000
committerJim Blandy <jimb@codesourcery.com>2001-11-14 22:29:39 +0000
commitf2c6cfba862c4a82626386344da1864d82214efa (patch)
treeb9336bcd061ca2f02896e977be898f716c61a3c3 /gdb/s390-tdep.c
parent0902523724e9bf09e5e3e35dc4ecd79b0843db3f (diff)
downloadgdb-f2c6cfba862c4a82626386344da1864d82214efa.zip
gdb-f2c6cfba862c4a82626386344da1864d82214efa.tar.gz
gdb-f2c6cfba862c4a82626386344da1864d82214efa.tar.bz2
* s390-tdep.c (s390_extract_return_value): Returned `float' values
can simply be copied bitwise from the registers into the value object's buffer.
Diffstat (limited to 'gdb/s390-tdep.c')
-rw-r--r--gdb/s390-tdep.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/gdb/s390-tdep.c b/gdb/s390-tdep.c
index 2e78f2a..632261e 100644
--- a/gdb/s390-tdep.c
+++ b/gdb/s390-tdep.c
@@ -1010,20 +1010,7 @@ s390_extract_return_value (struct type *valtype, char *regbuf, char *valbuf)
int len = TYPE_LENGTH (valtype);
if (TYPE_CODE (valtype) == TYPE_CODE_FLT)
- {
- if (len > (TARGET_FLOAT_BIT >> 3))
- memcpy (valbuf, &regbuf[REGISTER_BYTE (S390_FP0_REGNUM)], len);
- else
- {
- /* float */
- DOUBLEST val;
-
- floatformat_to_doublest (&floatformat_ieee_double_big,
- &regbuf[REGISTER_BYTE (S390_FP0_REGNUM)],
- &val);
- store_floating (valbuf, len, val);
- }
- }
+ memcpy (valbuf, &regbuf[REGISTER_BYTE (S390_FP0_REGNUM)], len);
else
{
int offset = 0;