aboutsummaryrefslogtreecommitdiff
path: root/gdb/i386-tdep.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2001-04-04 15:09:46 +0000
committerMark Kettenis <kettenis@gnu.org>2001-04-04 15:09:46 +0000
commit3df1b9b49d36c0fb42077b2deece480317978e5b (patch)
tree03d9bb7c81ab53417ac5de10758513e2128cc886 /gdb/i386-tdep.c
parented67db7ab98d6272e1d4590118d5e383b2ff413a (diff)
downloadgdb-3df1b9b49d36c0fb42077b2deece480317978e5b.zip
gdb-3df1b9b49d36c0fb42077b2deece480317978e5b.tar.gz
gdb-3df1b9b49d36c0fb42077b2deece480317978e5b.tar.bz2
* i386-tdep.c (i386_extract_return_value): Don't return the return
value of a void function. (i386_store_return_value): Likewise.
Diffstat (limited to 'gdb/i386-tdep.c')
-rw-r--r--gdb/i386-tdep.c11
1 files changed, 8 insertions, 3 deletions
diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c
index 1090cbe..49cc796 100644
--- a/gdb/i386-tdep.c
+++ b/gdb/i386-tdep.c
@@ -735,8 +735,10 @@ i386_extract_return_value (struct type *type, char *regbuf, char *valbuf)
if (TYPE_CODE (type) == TYPE_CODE_STRUCT
&& TYPE_NFIELDS (type) == 1)
- return i386_extract_return_value (TYPE_FIELD_TYPE (type, 0),
- regbuf, valbuf);
+ {
+ i386_extract_return_value (TYPE_FIELD_TYPE (type, 0), regbuf, valbuf);
+ return;
+ }
if (TYPE_CODE (type) == TYPE_CODE_FLT)
{
@@ -798,7 +800,10 @@ i386_store_return_value (struct type *type, char *valbuf)
if (TYPE_CODE (type) == TYPE_CODE_STRUCT
&& TYPE_NFIELDS (type) == 1)
- return i386_store_return_value (TYPE_FIELD_TYPE (type, 0), valbuf);
+ {
+ i386_store_return_value (TYPE_FIELD_TYPE (type, 0), valbuf);
+ return;
+ }
if (TYPE_CODE (type) == TYPE_CODE_FLT)
{