summaryrefslogtreecommitdiff
path: root/gdb/c-valprint.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2005-02-08 04:15:39 +0000
committerAndrew Cagney <cagney@redhat.com>2005-02-08 04:15:39 +0000
commitfa33692eea53c544b4c0f8a83cd6adae7f864b71 (patch)
tree0fa38f8fdac2e96e4265c6bcaa95e80e038eef0f /gdb/c-valprint.c
parentae1fe4c42e941da995cdba4e926b16c81c6be76e (diff)
downloadgdb-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/c-valprint.c')
-rw-r--r--gdb/c-valprint.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/c-valprint.c b/gdb/c-valprint.c
index 948f5d87dd4..e9372fb4b96 100644
--- a/gdb/c-valprint.c
+++ b/gdb/c-valprint.c
@@ -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 */