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.
This commit is contained in:
Andrew Cagney
2005-02-08 04:15:39 +00:00
parent 300475fe9d
commit 5086187cf9
5 changed files with 14 additions and 6 deletions

View File

@ -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));