2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>

* valops.c (do_search_struct_field): Pass v2 instead of base_type to
	value_type.
This commit is contained in:
Sanimir Agovic
2013-08-29 14:25:22 +00:00
parent 548b762d1b
commit acc900c21f
2 changed files with 6 additions and 1 deletions

View File

@@ -1954,7 +1954,7 @@ do_search_struct_field (const char *name, struct value *arg1, int offset,
v2 = value_at_lazy (basetype, base_addr);
if (target_read_memory (base_addr,
value_contents_raw (v2),
TYPE_LENGTH (value_type (basetype))) != 0)
TYPE_LENGTH (value_type (v2))) != 0)
error (_("virtual baseclass botch"));
}
else