]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* arm-tdep.c (arm_push_dummy_call): Handle pointers to
authorUlrich Weigand <uweigand@de.ibm.com>
Sat, 14 Aug 2010 00:46:43 +0000 (00:46 +0000)
committerUlrich Weigand <uweigand@de.ibm.com>
Sat, 14 Aug 2010 00:46:43 +0000 (00:46 +0000)
typedef'ed function types correctly.

gdb/ChangeLog
gdb/arm-tdep.c

index aef84e75c93f9fc6d80c286afaa5e8b4f1e9506f..558aedce7a339a728233fac4b253ece87ea519b2 100644 (file)
@@ -1,3 +1,8 @@
+2010-08-14  Ulrich Weigand  <uweigand@de.ibm.com>
+
+       * arm-tdep.c (arm_push_dummy_call): Handle pointers to
+       typedef'ed function types correctly.
+
 2010-08-11  Brad Roberts  <braddr@puremagic.com>
 
        * d-lang.c (extract_identifiers): Handle multiple digits.
index 31f17f13e6c4e0c40f36cfb22708ed79dde4b63e..1ac8817f282c02116196c7c26dd20e891dc24d0a 100644 (file)
@@ -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))