Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Sanimir Agovic <sanimir.agovic@intel.com>
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	[thread overview]
Message-ID: <1377785588-13708-1-git-send-email-sanimir.agovic@intel.com> (raw)

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


             reply	other threads:[~2013-08-29 14:13 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-08-29 14:13 Sanimir Agovic [this message]
2013-08-29 14:21 ` Tom Tromey
2013-08-29 14:27   ` Agovic, Sanimir

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1377785588-13708-1-git-send-email-sanimir.agovic@intel.com \
    --to=sanimir.agovic@intel.com \
    --cc=gdb-patches@sourceware.org \
    --cc=tromey@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox