From: Ulrich Weigand Date: Sat, 14 Aug 2010 00:46:43 +0000 (+0000) Subject: * arm-tdep.c (arm_push_dummy_call): Handle pointers to X-Git-Tag: gdb_7_2-2010-09-02-release~35 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=934095dc13180d83c93158023a62ff3d0113e393;p=thirdparty%2Fbinutils-gdb.git * arm-tdep.c (arm_push_dummy_call): Handle pointers to typedef'ed function types correctly. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index aef84e75c93..558aedce7a3 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2010-08-14 Ulrich Weigand + + * arm-tdep.c (arm_push_dummy_call): Handle pointers to + typedef'ed function types correctly. + 2010-08-11 Brad Roberts * d-lang.c (extract_identifiers): Handle multiple digits. diff --git a/gdb/arm-tdep.c b/gdb/arm-tdep.c index 31f17f13e6c..1ac8817f282 100644 --- a/gdb/arm-tdep.c +++ b/gdb/arm-tdep.c @@ -2144,7 +2144,7 @@ arm_push_dummy_call (struct gdbarch *gdbarch, struct value *function, the THUMB bit in it. */ if (TYPE_CODE_PTR == typecode && target_type != NULL - && TYPE_CODE_FUNC == TYPE_CODE (target_type)) + && TYPE_CODE_FUNC == TYPE_CODE (check_typedef (target_type))) { CORE_ADDR regval = extract_unsigned_integer (val, len, byte_order); if (arm_pc_is_thumb (regval))