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 | 959f0a32152c2b68c194813a1d5ca78ab28f6359 (patch) | |
tree | b0245c83690cc8bd91d969430590a0f0dd621719 /gdb/armobsd-tdep.c | |
parent | 2d7ea99ff33f5de337d434f830be9ec37c8ed94d (diff) | |
download | gdb-959f0a32152c2b68c194813a1d5ca78ab28f6359.tar.gz |
* 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 0f5e7a4007d..9b14382a7d7 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 |