diff options
Diffstat (limited to 'gdb/tm-sparc.h')
-rw-r--r-- | gdb/tm-sparc.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gdb/tm-sparc.h b/gdb/tm-sparc.h index d89781b..866788b 100644 --- a/gdb/tm-sparc.h +++ b/gdb/tm-sparc.h @@ -267,7 +267,9 @@ extern CORE_ADDR sparc_pc_adjust(); (VALBUF), TYPE_LENGTH(TYPE)); \ } \ else \ - bcopy (((int *)(REGBUF))+8, (VALBUF), TYPE_LENGTH (TYPE)); \ + bcopy ((char *)(REGBUF) + 4 * 8 + \ + (TYPE_LENGTH(TYPE) >= 4 ? 0 : 4 - TYPE_LENGTH(TYPE)), \ + (VALBUF), TYPE_LENGTH(TYPE)); \ } /* Write into appropriate registers a function return value |