aboutsummaryrefslogtreecommitdiff
path: root/gdb/tm-sparc.h
diff options
context:
space:
mode:
authorStu Grossman <grossman@cygnus>1991-10-26 01:06:16 +0000
committerStu Grossman <grossman@cygnus>1991-10-26 01:06:16 +0000
commit5ab580ccf8a55393e038e4c9e90cd57b43e5f02c (patch)
tree4ec29d84fb8bb33a41ca62a4f55403f09ac61137 /gdb/tm-sparc.h
parenteb3f3e5c6a55d6aad517de6090239af6d9d48c4b (diff)
downloadgdb-5ab580ccf8a55393e038e4c9e90cd57b43e5f02c.zip
gdb-5ab580ccf8a55393e038e4c9e90cd57b43e5f02c.tar.gz
gdb-5ab580ccf8a55393e038e4c9e90cd57b43e5f02c.tar.bz2
* tm-sparc.h, tm-68k.h (EXTRACT_RETURN_VALUE): fix output of
short return values for sparc and 68k. Patch from Paul Eggert.
Diffstat (limited to 'gdb/tm-sparc.h')
-rw-r--r--gdb/tm-sparc.h4
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