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

@ -551,7 +551,8 @@ c_value_print (struct value *val, struct ui_file *stream, int format,
type = lookup_reference_type (real_type);
}
/* JYG: Need to adjust pointer value. */
val->aligner.contents[0] -= top;
/* NOTE: cagney/2005-01-02: THIS IS BOGUS. */
value_contents_writeable (val)[0] -= top;
/* Note: When we look up RTTI entries, we don't get any
information on const or volatile attributes */