diff options
author | Andrew Cagney <cagney@redhat.com> | 2005-02-08 04:15:39 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2005-02-08 04:15:39 +0000 |
commit | fa33692eea53c544b4c0f8a83cd6adae7f864b71 (patch) | |
tree | 0fa38f8fdac2e96e4265c6bcaa95e80e038eef0f /gdb/cp-valprint.c | |
parent | ae1fe4c42e941da995cdba4e926b16c81c6be76e (diff) | |
download | gdb-fa33692eea53c544b4c0f8a83cd6adae7f864b71.tar.gz |
2005-02-07 Andrew Cagney <cagney@gnu.org>
* cp-valprint.c, c-valprint.c, infcall.c: Use value_contents or
value_contents_writeable, include note that there are problems.
* breakpoint.c, infcall.c: Use VALUE_LVAL.
Diffstat (limited to 'gdb/cp-valprint.c')
-rw-r--r-- | gdb/cp-valprint.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/cp-valprint.c b/gdb/cp-valprint.c index 2cff8e7df5a..d662d31bc1d 100644 --- a/gdb/cp-valprint.c +++ b/gdb/cp-valprint.c @@ -784,7 +784,8 @@ cp_print_hpacc_virtual_table_entries (struct type *type, int *vfuncs, if (value_lazy (vf)) (void) value_fetch_lazy (vf); /* adjust by offset */ - vf->aligner.contents[0] += 4 * (HP_ACC_VFUNC_START + vx); + /* NOTE: cagney/2005-01-02: THIS IS BOGUS. */ + value_contents_writeable (vf)[0] += 4 * (HP_ACC_VFUNC_START + vx); vf = value_ind (vf); /* get the entry */ /* make it a pointer */ deprecated_set_value_type (vf, value_type (v)); |