diff options
Diffstat (limited to 'gdb/tm-68k.h')
-rw-r--r-- | gdb/tm-68k.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/tm-68k.h b/gdb/tm-68k.h index d89f23d..f501495 100644 --- a/gdb/tm-68k.h +++ b/gdb/tm-68k.h @@ -275,7 +275,9 @@ extern struct ext_format ext_format_68881; #if !defined (EXTRACT_RETURN_VALUE) #define EXTRACT_RETURN_VALUE(TYPE,REGBUF,VALBUF) \ - bcopy (REGBUF, VALBUF, TYPE_LENGTH (TYPE)) + bcopy ((char *)(REGBUF) + \ + (TYPE_LENGTH(TYPE) >= 4 ? 0 : 4 - TYPE_LENGTH(TYPE)), \ + VALBUF, TYPE_LENGTH(TYPE)) #endif /* Write into appropriate registers a function return value |