This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH] pass v2 instead of base_type to value_type.
- From: Sanimir Agovic <sanimir dot agovic at intel dot com>
- To: gdb-patches at sourceware dot org, tromey at redhat dot com
- Date: Thu, 29 Aug 2013 16:13:08 +0200
- Subject: [PATCH] pass v2 instead of base_type to value_type.
- Authentication-results: sourceware.org; auth=none
Broke the gdb build with my last commit. Fix below.
* valops.c (do_search_struct_field): Pass v2 instead of base_type to
value_type.
---
gdb/valops.c | 2 +-
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
--
1.7.1.1