diff options
author | Andreas Schwab <schwab@linux-m68k.org> | 2008-07-15 22:13:42 +0000 |
---|---|---|
committer | Andreas Schwab <schwab@linux-m68k.org> | 2008-07-15 22:13:42 +0000 |
commit | 680b56ce65a42446a86fc333ca4c735fc770386c (patch) | |
tree | 64071aef380f1fcb38cd2b173639547e8b66c846 /gdb/valops.c | |
parent | 0709f7d3ac1f49eb12151114cc763a297e489446 (diff) | |
download | gdb-680b56ce65a42446a86fc333ca4c735fc770386c.zip gdb-680b56ce65a42446a86fc333ca4c735fc770386c.tar.gz gdb-680b56ce65a42446a86fc333ca4c735fc770386c.tar.bz2 |
* valops.c (value_cast_pointers): Follow typedefs when checking
result of coercion.
Diffstat (limited to 'gdb/valops.c')
-rw-r--r-- | gdb/valops.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/valops.c b/gdb/valops.c index f720ea9..aad9871 100644 --- a/gdb/valops.c +++ b/gdb/valops.c @@ -268,7 +268,7 @@ value_cast_pointers (struct type *type, struct value *arg2) v2 = coerce_ref (arg2); else v2 = value_ind (arg2); - gdb_assert (TYPE_CODE (value_type (v2)) == TYPE_CODE_STRUCT + gdb_assert (TYPE_CODE (check_typedef (value_type (v2))) == TYPE_CODE_STRUCT && !!"Why did coercion fail?"); v2 = value_cast_structs (t1, v2); /* At this point we have what we can have, un-dereference if needed. */ |