From: Andrew Cagney Date: Thu, 27 Jan 2005 21:48:27 +0000 (+0000) Subject: 2005-01-27 Andrew Cagney X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8cc2524a40de11a2afece2ab604c0eca27a0ef1d;p=binutils-gdb.git 2005-01-27 Andrew Cagney * value.h (struct value): Change type of contents to bfd_byte. (VALUE_CONTENTS_RAW): Simplify. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 4c430f6f27b..37017eb213a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,8 @@ 2005-01-27 Andrew Cagney + * value.h (struct value): Change type of contents to bfd_byte. + (VALUE_CONTENTS_RAW): Simplify. + * gdbarch.sh (integer_to_address): Change buf parameter to a const bfd_byte, make pure-multi-arch. * gdbarch.h, gdbarch.c: Regenerate. diff --git a/gdb/value.h b/gdb/value.h index 6f0d357fdf0..be348a0c4f7 100644 --- a/gdb/value.h +++ b/gdb/value.h @@ -162,7 +162,7 @@ struct value declared here. */ union { - long contents[1]; + bfd_byte contents[1]; DOUBLEST force_doublest_align; LONGEST force_longest_align; CORE_ADDR force_core_addr_align; @@ -195,7 +195,7 @@ extern int value_offset (struct value *); something embedded in a larger run-time object. */ #define VALUE_CONTENTS_RAW(val) \ - ((char *) (val)->aligner.contents + (val)->embedded_offset) + ((val)->aligner.contents + (val)->embedded_offset) #define VALUE_CONTENTS(val) \ ((void)(VALUE_LAZY(val) && value_fetch_lazy(val)), VALUE_CONTENTS_RAW(val))