aboutsummaryrefslogtreecommitdiff
path: root/gdb/valops.c
diff options
context:
space:
mode:
authorSanimir Agovic <sagovic@sourceware.org>2013-08-29 14:25:22 +0000
committerSanimir Agovic <sagovic@sourceware.org>2013-08-29 14:25:22 +0000
commitacc900c21fb64de5e2aff5352532d14df061f074 (patch)
treee8daa171316a0fb6d4c0608625c703cb5911df74 /gdb/valops.c
parent548b762d1b1f81f79c0ad824746e1f96a37f8cf4 (diff)
downloadgdb-acc900c21fb64de5e2aff5352532d14df061f074.zip
gdb-acc900c21fb64de5e2aff5352532d14df061f074.tar.gz
gdb-acc900c21fb64de5e2aff5352532d14df061f074.tar.bz2
2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
* valops.c (do_search_struct_field): Pass v2 instead of base_type to value_type.
Diffstat (limited to 'gdb/valops.c')
-rw-r--r--gdb/valops.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/valops.c b/gdb/valops.c
index 890735e..15fd7c3 100644
--- a/gdb/valops.c
+++ b/gdb/valops.c
@@ -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