From: Jim Blandy <jimb@zwingli.cygnus.com>
To: gdb-patches@sources.redhat.com
Subject: RFA: correctly compute addresses of embedded objects
Date: Fri, 18 May 2001 17:29:00 -0000 [thread overview]
Message-ID: <20010518001422.142275E9DB@zwingli.cygnus.com> (raw)
2001-05-17 Jim Blandy <jimb@redhat.com>
* valops.c (value_addr): Don't include VALUE_EMBEDDED_OFFSET in
the pointer value we return. It should point at the embedded
object ARG1 represents, not at the enclosing object ARG1 might
also be holding.
*** gdb/valops.c.base~ Tue Apr 24 13:50:06 2001
--- gdb/valops.c Thu May 17 14:58:14 2001
***************
*** 960,967 ****
/* Get target memory address */
arg2 = value_from_pointer (lookup_pointer_type (VALUE_TYPE (arg1)),
(VALUE_ADDRESS (arg1)
! + VALUE_OFFSET (arg1)
! + VALUE_EMBEDDED_OFFSET (arg1)));
/* This may be a pointer to a base subobject; so remember the
full derived object's type ... */
--- 960,966 ----
/* Get target memory address */
arg2 = value_from_pointer (lookup_pointer_type (VALUE_TYPE (arg1)),
(VALUE_ADDRESS (arg1)
! + VALUE_OFFSET (arg1)));
/* This may be a pointer to a base subobject; so remember the
full derived object's type ... */
next reply other threads:[~2001-05-18 17:29 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-05-18 17:29 Jim Blandy [this message]
2001-05-18 18:10 ` Daniel Berlin
2001-05-20 13:06 ` Jim Blandy
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=20010518001422.142275E9DB@zwingli.cygnus.com \
--to=jimb@zwingli.cygnus.com \
--cc=gdb-patches@sources.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