2005-01-27 Andrew Cagney <cagney@gnu.org>
* value.h (struct value): Change type of contents to bfd_byte. (VALUE_CONTENTS_RAW): Simplify.
This commit is contained in:
parent
befd69ef73
commit
8cc2524a40
2 changed files with 5 additions and 2 deletions
|
@ -1,5 +1,8 @@
|
||||||
2005-01-27 Andrew Cagney <cagney@gnu.org>
|
2005-01-27 Andrew Cagney <cagney@gnu.org>
|
||||||
|
|
||||||
|
* 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
|
* gdbarch.sh (integer_to_address): Change buf parameter to a const
|
||||||
bfd_byte, make pure-multi-arch.
|
bfd_byte, make pure-multi-arch.
|
||||||
* gdbarch.h, gdbarch.c: Regenerate.
|
* gdbarch.h, gdbarch.c: Regenerate.
|
||||||
|
|
|
@ -162,7 +162,7 @@ struct value
|
||||||
declared here. */
|
declared here. */
|
||||||
union
|
union
|
||||||
{
|
{
|
||||||
long contents[1];
|
bfd_byte contents[1];
|
||||||
DOUBLEST force_doublest_align;
|
DOUBLEST force_doublest_align;
|
||||||
LONGEST force_longest_align;
|
LONGEST force_longest_align;
|
||||||
CORE_ADDR force_core_addr_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. */
|
something embedded in a larger run-time object. */
|
||||||
|
|
||||||
#define VALUE_CONTENTS_RAW(val) \
|
#define VALUE_CONTENTS_RAW(val) \
|
||||||
((char *) (val)->aligner.contents + (val)->embedded_offset)
|
((val)->aligner.contents + (val)->embedded_offset)
|
||||||
#define VALUE_CONTENTS(val) \
|
#define VALUE_CONTENTS(val) \
|
||||||
((void)(VALUE_LAZY(val) && value_fetch_lazy(val)), VALUE_CONTENTS_RAW(val))
|
((void)(VALUE_LAZY(val) && value_fetch_lazy(val)), VALUE_CONTENTS_RAW(val))
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue