diff options
author | Jim Blandy <jimb@codesourcery.com> | 2001-05-25 17:09:48 +0000 |
---|---|---|
committer | Jim Blandy <jimb@codesourcery.com> | 2001-05-25 17:09:48 +0000 |
commit | 4b1fedf1057b786a82bc42622d561fda8e977957 (patch) | |
tree | 59198e0909b29964308e3b0e92c6ca1efab733e9 /gdb | |
parent | 64e9ece0ca23e2d4bd03b323990421dc713828e0 (diff) | |
download | gdb-4b1fedf1057b786a82bc42622d561fda8e977957.zip gdb-4b1fedf1057b786a82bc42622d561fda8e977957.tar.gz gdb-4b1fedf1057b786a82bc42622d561fda8e977957.tar.bz2 |
* gnu-v2-abi.c (gnuv2_virtual_fn_field): There's no need to clear
VALUE_POINTED_TO_OFFSET here; if value_cast doesn't return a
useful value, then we should fix that instead.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/gnu-v2-abi.c | 1 |
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 62b576e..e04febf 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2001-05-25 Jim Blandy <jimb@redhat.com> + + * gnu-v2-abi.c (gnuv2_virtual_fn_field): There's no need to clear + VALUE_POINTED_TO_OFFSET here; if value_cast doesn't return a + useful value, then we should fix that instead. + 2001-05-24 Nick Duffek <nsd@redhat.com> * solist.h (struct so_list): Document the requirement that diff --git a/gdb/gnu-v2-abi.c b/gdb/gnu-v2-abi.c index fd9aad5..8c46219 100644 --- a/gdb/gnu-v2-abi.c +++ b/gdb/gnu-v2-abi.c @@ -111,7 +111,6 @@ gnuv2_virtual_fn_field (value_ptr * arg1p, struct fn_field * f, int j, if (TYPE_TARGET_TYPE (context) != type1) { value_ptr tmp = value_cast (context, value_addr (arg1)); - VALUE_POINTED_TO_OFFSET (tmp) = 0; arg1 = value_ind (tmp); type1 = check_typedef (VALUE_TYPE (arg1)); } |