aboutsummaryrefslogtreecommitdiff
path: root/gdb/x86-64-tdep.c
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2003-11-20 22:37:50 +0000
committerMark Kettenis <kettenis@gnu.org>2003-11-20 22:37:50 +0000
commitc5e656c1c7ab1e26ead1530b708af08ac272b95d (patch)
tree1f1a2a03c44a233c64ebd1dff416a3dda2a47f5d /gdb/x86-64-tdep.c
parent0d78efdfab83b824b6496ac65ea4c893e816f8ea (diff)
downloadgdb-c5e656c1c7ab1e26ead1530b708af08ac272b95d.zip
gdb-c5e656c1c7ab1e26ead1530b708af08ac272b95d.tar.gz
gdb-c5e656c1c7ab1e26ead1530b708af08ac272b95d.tar.bz2
* i386-tdep.c (i386_extract_return_value,
i386_store_return_value): Add gdbarch argument. Use it instead of determining it from REGCACHE. Remove recursive call for structures with a single member. (i386_use_struct_convention): Remove. (i386_reg_struct_return_p): New function. (i386_return_value): New function. (i386_gdbarch_init): Set return_value, don't set extract_return_value, store_return_value and use_struct_convention. * x86-64-tdep.c (x86_64_init_abi): Set return_value to NULL.
Diffstat (limited to 'gdb/x86-64-tdep.c')
-rw-r--r--gdb/x86-64-tdep.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/x86-64-tdep.c b/gdb/x86-64-tdep.c
index 5e6a7e1..5f485ab 100644
--- a/gdb/x86-64-tdep.c
+++ b/gdb/x86-64-tdep.c
@@ -1300,6 +1300,7 @@ x86_64_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
set_gdbarch_register_to_value (gdbarch, i387_register_to_value);
set_gdbarch_value_to_register (gdbarch, i387_value_to_register);
+ set_gdbarch_return_value (gdbarch, NULL);
set_gdbarch_extract_return_value (gdbarch, x86_64_extract_return_value);
set_gdbarch_store_return_value (gdbarch, x86_64_store_return_value);
/* Override, since this is handled by x86_64_extract_return_value. */