diff options
author | Mark Kettenis <kettenis@gnu.org> | 2006-08-01 18:27:52 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2006-08-01 18:27:52 +0000 |
commit | 7c00367c289eb2225a05146845d3b5b445e1a302 (patch) | |
tree | 7be53b7077fde739b71da66d934abe5fef49d809 /gdb/armobsd-tdep.c | |
parent | cfde7f7078be39a3f4c99536a0ec1eb34ed04d17 (diff) | |
download | gdb-7c00367c289eb2225a05146845d3b5b445e1a302.zip gdb-7c00367c289eb2225a05146845d3b5b445e1a302.tar.gz gdb-7c00367c289eb2225a05146845d3b5b445e1a302.tar.bz2 |
* arm-tdep.h (enum struct_return): New.
(struct gdbarch_tdep): Add struct_return member.
* arm-tdep.c (arm_return_value): Return
RETURN_VALUE_STRUCT_CONVENTION for aggregates when the ABI uses
pcc_struct_return.
(arm_gdbarch_init): Default to reg_struct_return.
* armobsd-tdep.c (armobsd_init_abi): Set pcc_struct_return.
Diffstat (limited to 'gdb/armobsd-tdep.c')
-rw-r--r-- | gdb/armobsd-tdep.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/gdb/armobsd-tdep.c b/gdb/armobsd-tdep.c index 0f5e7a4..9b14382 100644 --- a/gdb/armobsd-tdep.c +++ b/gdb/armobsd-tdep.c @@ -88,6 +88,9 @@ armobsd_init_abi (struct gdbarch_info info, tdep->jb_pc = 24; tdep->jb_elt_size = 4; + + /* OpenBSD/arm uses -fpcc-struct-return by default. */ + tdep->struct_return = pcc_struct_return; } void |