forked from Imagelibrary/binutils-gdb
* valops.c (value_cast_pointers): Follow typedefs when checking
result of coercion.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2008-07-15 Andreas Schwab <schwab@suse.de>
|
||||||
|
|
||||||
|
* valops.c (value_cast_pointers): Follow typedefs when checking
|
||||||
|
result of coercion.
|
||||||
|
|
||||||
2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
|
2008-07-15 Daniel Jacobowitz <dan@codesourcery.com>
|
||||||
|
|
||||||
* block.c (block_function): Renamed to ...
|
* block.c (block_function): Renamed to ...
|
||||||
|
|||||||
@@ -268,7 +268,7 @@ value_cast_pointers (struct type *type, struct value *arg2)
|
|||||||
v2 = coerce_ref (arg2);
|
v2 = coerce_ref (arg2);
|
||||||
else
|
else
|
||||||
v2 = value_ind (arg2);
|
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?");
|
&& !!"Why did coercion fail?");
|
||||||
v2 = value_cast_structs (t1, v2);
|
v2 = value_cast_structs (t1, v2);
|
||||||
/* At this point we have what we can have, un-dereference if needed. */
|
/* At this point we have what we can have, un-dereference if needed. */
|
||||||
|
|||||||
Reference in New Issue
Block a user