diff options
author | Yao Qi <yao@codesourcery.com> | 2013-07-18 23:09:49 +0000 |
---|---|---|
committer | Yao Qi <yao@codesourcery.com> | 2013-07-18 23:09:49 +0000 |
commit | 1527aea867d6a261dc133fed39c92ee74b45e7e3 (patch) | |
tree | 86ba329e3552b0c2f6550410dff4fad622c9095f /gdb/valops.c | |
parent | 73c1d57e3e53233af477bda398107075c505e3e0 (diff) | |
download | gdb-1527aea867d6a261dc133fed39c92ee74b45e7e3.zip gdb-1527aea867d6a261dc133fed39c92ee74b45e7e3.tar.gz gdb-1527aea867d6a261dc133fed39c92ee74b45e7e3.tar.bz2 |
gdb/
* target.c (update_current_target): Change the default action
of 'to_traceframe_info' from tcomplain to return_zero.
* target.h (struct target_ops) <to_traceframe_info>: Add more
comments.
* valops.c (read_value_memory): Call
traceframe_available_memory unconditionally.
gdb/testsuite/
* gdb.trace/read-memory.exp (test_from_remote): Update test.
(teset_from_exec): Likewise.
Diffstat (limited to 'gdb/valops.c')
-rw-r--r-- | gdb/valops.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/gdb/valops.c b/gdb/valops.c index 4161c2c..a3ab24f 100644 --- a/gdb/valops.c +++ b/gdb/valops.c @@ -955,8 +955,7 @@ read_value_memory (struct value *val, int embedded_offset, { VEC(mem_range_s) *available_memory; - if (get_traceframe_number () < 0 - || !traceframe_available_memory (&available_memory, memaddr, length)) + if (!traceframe_available_memory (&available_memory, memaddr, length)) { if (stack) read_stack (memaddr, buffer, length); |