diff options
author | Andrew Cagney <cagney@redhat.com> | 2005-02-07 17:06:29 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2005-02-07 17:06:29 +0000 |
commit | 13c3b5f5bbe5ad8aed357e17db7e7922bfd253d7 (patch) | |
tree | 1f3ec4c6ec974d49ea99c7ef409918510d7cc959 /gdb/hpacc-abi.c | |
parent | c4cf3821053bf03be5b25d63528c92d24c31f667 (diff) | |
download | gdb-13c3b5f5bbe5ad8aed357e17db7e7922bfd253d7.zip gdb-13c3b5f5bbe5ad8aed357e17db7e7922bfd253d7.tar.gz gdb-13c3b5f5bbe5ad8aed357e17db7e7922bfd253d7.tar.bz2 |
2005-02-07 Andrew Cagney <cagney@gnu.org>
* value.h (value_embedded_offset): Delete.
(value_embedded_offset): Declare.
* value.c (value_embedded_offset): Define.
* valops.c, p-valprint.c, mi/mi-main.c, hpacc-abi.c: Update.
* gnu-v3-abi.c, eval.c, c-valprint.c, cp-valprint.c: Update.
* cp-abi.h: Update.
Diffstat (limited to 'gdb/hpacc-abi.c')
-rw-r--r-- | gdb/hpacc-abi.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/hpacc-abi.c b/gdb/hpacc-abi.c index ff1d29d..9f86c15 100644 --- a/gdb/hpacc-abi.c +++ b/gdb/hpacc-abi.c @@ -104,7 +104,7 @@ hpacc_virtual_fn_field (struct value **arg1p, struct fn_field * f, int j, /* pai: FIXME -- 32x64 possible problem? */ /* First word (4 bytes) in object layout is the vtable pointer */ coreptr = *(CORE_ADDR *) (value_contents (argp)); /* pai: (temp) */ - /* + offset + VALUE_EMBEDDED_OFFSET (argp)); */ + /* + offset + value_embedded_offset (argp)); */ if (!coreptr) error @@ -223,7 +223,7 @@ hpacc_value_rtti_type (struct value *v, int *full, int *top, int *using_enc) + value_offset (v) + (using_enclosing ? 0 - : VALUE_EMBEDDED_OFFSET (v))); + : value_embedded_offset (v))); if (coreptr == 0) /* return silently -- maybe called on gdb-generated value */ return NULL; @@ -278,7 +278,7 @@ hpacc_value_rtti_type (struct value *v, int *full, int *top, int *using_enc) || /* Or we checked on the embedded object and top offset was the same as the embedded offset */ - ((top_offset == VALUE_EMBEDDED_OFFSET (v)) && + ((top_offset == value_embedded_offset (v)) && !using_enclosing && TYPE_LENGTH (value_enclosing_type (v)) == TYPE_LENGTH (rtti_type)))) |