From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12222 invoked by alias); 29 Aug 2013 14:13:19 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 12209 invoked by uid 89); 29 Aug 2013 14:13:19 -0000 Received: from mga11.intel.com (HELO mga11.intel.com) (192.55.52.93) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 29 Aug 2013 14:13:19 +0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-2.1 required=5.0 tests=AWL,BAYES_00,RDNS_NONE,TO_NO_BRKTS_NORDNS autolearn=no version=3.3.2 X-HELO: mga11.intel.com Received: from fmsmga001.fm.intel.com ([10.253.24.23]) by fmsmga102.fm.intel.com with ESMTP; 29 Aug 2013 07:13:17 -0700 X-ExtLoop1: 1 Received: from irvmail001.ir.intel.com ([163.33.26.43]) by fmsmga001.fm.intel.com with ESMTP; 29 Aug 2013 07:13:16 -0700 Received: from ulliclel004.iul.intel.com (ulliclel004.iul.intel.com [172.28.50.125]) by irvmail001.ir.intel.com (8.14.3/8.13.6/MailSET/Hub) with ESMTP id r7TEDFqM013344; Thu, 29 Aug 2013 15:13:15 +0100 Received: from ulliclel004.iul.intel.com (ulliclel004.iul.intel.com [127.0.0.1]) by ulliclel004.iul.intel.com (8.13.8/8.12.8/MailSET/client) with ESMTP id r7TEDDFI013742; Thu, 29 Aug 2013 16:13:13 +0200 Received: (from sagovic@localhost) by ulliclel004.iul.intel.com (8.13.8/8.13.1/Submit) id r7TED8ZC013741; Thu, 29 Aug 2013 16:13:08 +0200 From: Sanimir Agovic To: gdb-patches@sourceware.org, tromey@redhat.com Subject: [PATCH] pass v2 instead of base_type to value_type. Date: Thu, 29 Aug 2013 14:13:00 -0000 Message-Id: <1377785588-13708-1-git-send-email-sanimir.agovic@intel.com> X-SW-Source: 2013-08/txt/msg00867.txt.bz2 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