X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=gdb%2Farm-tdep.c;h=1ac8817f282c02116196c7c26dd20e891dc24d0a;hb=e7fbb131d42983eec31231f8bb69cdd8d5a33ee6;hp=31f17f13e6c4e0c40f36cfb22708ed79dde4b63e;hpb=8c6363cf5c34e8728b3ad010a1611de234d6ed9d;p=binutils-gdb.git 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))