X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Fc-valprint.c;h=e9372fb4b96a17abab8082a737b6bd853bd35551;hb=5086187cf9ff8626f0ef2ee885be62dde9eae4d6;hp=948f5d87dd4b3ed0cb23b6ce2aa8a52bf197e608;hpb=300475fe9d2e1ffb2ea4bb7f7d3fe9a11bbf8c43;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/c-valprint.c b/gdb/c-valprint.c index 948f5d87dd..e9372fb4b9 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 */