2013-08-29 Sanimir Agovic <sanimir.agovic@intel.com>
authorSanimir Agovic <sagovic@sourceware.org>
Thu, 29 Aug 2013 14:25:22 +0000 (14:25 +0000)
committerSanimir Agovic <sagovic@sourceware.org>
Thu, 29 Aug 2013 14:25:22 +0000 (14:25 +0000)
* valops.c (do_search_struct_field): Pass v2 instead of base_type to
value_type.

gdb/ChangeLog
gdb/valops.c

index 87351441d570df7fb8655003bbe92987f06f750f..f304cec619f19d040d9a94e1493e0623afdaa097 100644 (file)
@@ -1,3 +1,8 @@
+2013-08-29  Sanimir Agovic  <sanimir.agovic@intel.com>
+
+       * valops.c (do_search_struct_field): Pass v2 instead of base_type to
+       value_type.
+
 2013-08-29  Sanimir Agovic  <sanimir.agovic@intel.com>
 
        * value.c (allocate_value_contents): Make static.
index 890735e9b9b88ab07e518112ea5473b9c86be53c..15fd7c384be4781c1b8d1ff149bf0fa895d3589d 100644 (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