From 00bd2a115b46d73be000cc3ef1e98496c7d15904 Mon Sep 17 00:00:00 2001 From: sagovic Date: Thu, 29 Aug 2013 14:25:22 +0000 Subject: 2013-08-29 Sanimir Agovic * valops.c (do_search_struct_field): Pass v2 instead of base_type to value_type. --- gdb/valops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/valops.c') diff --git a/gdb/valops.c b/gdb/valops.c index 890735e9b9b..15fd7c384be 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 -- cgit v1.2.1