diff options
author | Pedro Alves <palves@redhat.com> | 2011-02-14 11:21:25 +0000 |
---|---|---|
committer | Pedro Alves <palves@redhat.com> | 2011-02-14 11:21:25 +0000 |
commit | e6ca34fcfbd6f341cb70c680d45f229cb5801eeb (patch) | |
tree | 93e23d44a35a3d9a0107b9cb0732e44608858668 /gdb/value.h | |
parent | 2a7498d819aef97a9abf94dc20899affe68080fe (diff) | |
download | gdb-e6ca34fcfbd6f341cb70c680d45f229cb5801eeb.zip gdb-e6ca34fcfbd6f341cb70c680d45f229cb5801eeb.tar.gz gdb-e6ca34fcfbd6f341cb70c680d45f229cb5801eeb.tar.bz2 |
Mark pieces of values as unavailable if the corresponding memory
is unavailable.
gdb/
* valops.c: Include tracepoint.h.
(value_fetch_lazy): Use read_value_memory.
(read_value_memory): New.
* value.h (read_value_memory): Declare.
* dwarf2loc.c (read_pieced_value): Use read_value_memory.
* exec.c (section_table_available_memory): New function.
* exec.h (section_table_available_memory): Declare.
Diffstat (limited to 'gdb/value.h')
-rw-r--r-- | gdb/value.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gdb/value.h b/gdb/value.h index d51567e..d2eb091 100644 --- a/gdb/value.h +++ b/gdb/value.h @@ -374,6 +374,17 @@ extern int value_bytes_available (const struct value *value, extern void mark_value_bytes_unavailable (struct value *value, int offset, int length); +/* Read LENGTH bytes of memory starting at MEMADDR into BUFFER, which + is (or will be copied to) VAL's contents buffer offset by + EMBEDDED_OFFSET (that is, to &VAL->contents[EMBEDDED_OFFSET]). + Marks value contents ranges as unavailable if the corresponding + memory is likewise unavailable. STACK indicates whether the memory + is known to be stack memory. */ + +extern void read_value_memory (struct value *val, int offset, + int stack, CORE_ADDR memaddr, + gdb_byte *buffer, size_t length); + #include "symtab.h" |