diff options
author | Andrew Cagney <cagney@redhat.com> | 2005-02-02 21:36:17 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2005-02-02 21:36:17 +0000 |
commit | 46615f07c3db91f7a0f138baec128749604dca43 (patch) | |
tree | 0c281bc164e338ce3b4bc9aedc5821ccab65a223 /gdb/value.c | |
parent | 1b9afc0454112ae9ac41f6e8ee45ca915f97adc8 (diff) | |
download | gdb-46615f07c3db91f7a0f138baec128749604dca43.zip gdb-46615f07c3db91f7a0f138baec128749604dca43.tar.gz gdb-46615f07c3db91f7a0f138baec128749604dca43.tar.bz2 |
2005-02-02 Andrew Cagney <cagney@gnu.org>
* value.h (VALUE_CONTENTS_ALL): Delete.
(value_contents_all): Declare.
* value.c (value_contents_all): New function.
* hpacc-abi.c, cp-valprint.c, valops.c, c-valprint.c: Update.
* m68k-tdep.c, i386-tdep.c, infcall.c, valops.c: Update.
Diffstat (limited to 'gdb/value.c')
-rw-r--r-- | gdb/value.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/gdb/value.c b/gdb/value.c index 2579143..690ef9a 100644 --- a/gdb/value.c +++ b/gdb/value.c @@ -165,6 +165,14 @@ value_enclosing_type (struct value *value) return value->enclosing_type; } +const bfd_byte * +value_contents_all (struct value *value) +{ + if (value->lazy) + value_fetch_lazy (value); + return value->aligner.contents; +} + /* Return a mark in the value chain. All values allocated after the mark is obtained (except for those released) are subject to being freed |