PR gdb/12783

* i386-tdep.c (i386_return_value): Handle complex double and long
double.
This commit is contained in:
Mark Kettenis 2012-10-24 14:56:01 +00:00
parent 6e933c51ce
commit 2445fd7b3a
2 changed files with 9 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2012-10-24 Mark Kettenis <kettenis@gnu.org>
PR gdb/12783
* i386-tdep.c (i386_return_value): Handle complex double and long
double.
2012-10-24 Joel Brobecker <brobecker@adacore.com>
* windows-nat.c (windows_create_inferior) [!__CYGWIN__]:

View File

@ -2630,6 +2630,9 @@ i386_return_value (struct gdbarch *gdbarch, struct value *function,
|| code == TYPE_CODE_UNION
|| code == TYPE_CODE_ARRAY)
&& !i386_reg_struct_return_p (gdbarch, type))
/* Complex double and long double uses the struct return covention. */
|| (code == TYPE_CODE_COMPLEX && TYPE_LENGTH (type) == 16)
|| (code == TYPE_CODE_COMPLEX && TYPE_LENGTH (type) == 24)
/* 128-bit decimal float uses the struct return convention. */
|| (code == TYPE_CODE_DECFLOAT && TYPE_LENGTH (type) == 16))
{