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/dwarf2loc.c | |
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/dwarf2loc.c')
-rw-r--r-- | gdb/dwarf2loc.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/dwarf2loc.c b/gdb/dwarf2loc.c index d9580c6..0f58954 100644 --- a/gdb/dwarf2loc.c +++ b/gdb/dwarf2loc.c @@ -603,10 +603,10 @@ read_pieced_value (struct value *v) break; case DWARF_VALUE_MEMORY: - if (p->v.mem.in_stack_memory) - read_stack (p->v.mem.addr + source_offset, buffer, this_size); - else - read_memory (p->v.mem.addr + source_offset, buffer, this_size); + read_value_memory (v, offset, + p->v.mem.in_stack_memory, + p->v.mem.addr + source_offset, + buffer, this_size); break; case DWARF_VALUE_STACK: |