diff options
author | Andrew Cagney <cagney@redhat.com> | 2005-02-02 00:20:07 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2005-02-02 00:20:07 +0000 |
commit | 990a07abf64d4a77851368ad9fafebb51ef25136 (patch) | |
tree | 8d021aa2eaa9ec89014b91f49ced5800d7d2878b /gdb/value.h | |
parent | f08562818b089d1f3d69fd30a15e3596aef04c01 (diff) | |
download | binutils-gdb-990a07abf64d4a77851368ad9fafebb51ef25136.tar.gz |
2005-02-01 Andrew Cagney <cagney@gnu.org>
* value.c (value_contents_all_raw)
(value_contents_raw): New functions.
* value.h (VALUE_CONTENTS_ALL_RAW, VALUE_CONTENTS_RAW): Delete.
(value_contents_raw, value_contents_all_raw): Declare functions.
(VALUE_CONTENTS, VALUE_CONTENTS_ALL): Update.
* std-regs.c, valarith.c, valops.c, eval.c: Update.
* tracepoint.c, findvar.c: Update.
Diffstat (limited to 'gdb/value.h')
-rw-r--r-- | gdb/value.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gdb/value.h b/gdb/value.h index f071b55f2a6..844d6fcd660 100644 --- a/gdb/value.h +++ b/gdb/value.h @@ -181,12 +181,12 @@ extern int value_offset (struct value *); #define VALUE_ENCLOSING_TYPE(val) (val)->enclosing_type #define VALUE_LAZY(val) (val)->lazy -/* VALUE_CONTENTS and VALUE_CONTENTS_RAW both return the address of +/* VALUE_CONTENTS and value_contents_raw() both return the address of the gdb buffer used to hold a copy of the contents of the lval. VALUE_CONTENTS is used when the contents of the buffer are needed -- it uses value_fetch_lazy() to load the buffer from the process being debugged if it hasn't already been loaded. - VALUE_CONTENTS_RAW is used when data is being stored into the + value_contents_raw() is used when data is being stored into the buffer, or when it is certain that the contents of the buffer are valid. @@ -194,18 +194,18 @@ extern int value_offset (struct value *); get to the real subobject, if the value happens to represent something embedded in a larger run-time object. */ -#define VALUE_CONTENTS_RAW(val) \ - ((val)->aligner.contents + (val)->embedded_offset) +extern bfd_byte *value_contents_raw (struct value *); #define VALUE_CONTENTS(val) \ - ((void)(VALUE_LAZY(val) && value_fetch_lazy(val)), VALUE_CONTENTS_RAW(val)) + ((void)(VALUE_LAZY(val) && value_fetch_lazy(val)), \ + (val)->aligner.contents) /* The ALL variants of the above two macros do not adjust the returned pointer by the embedded_offset value. */ -#define VALUE_CONTENTS_ALL_RAW(val) ((char *) (val)->aligner.contents) +extern bfd_byte *value_contents_all_raw (struct value *); #define VALUE_CONTENTS_ALL(val) \ ((void) (VALUE_LAZY(val) && value_fetch_lazy(val)), \ - VALUE_CONTENTS_ALL_RAW(val)) + (val)->aligner.contents) extern int value_fetch_lazy (struct value *val); |