diff options
author | qiyao <qiyao> | 2013-07-18 23:09:48 +0000 |
---|---|---|
committer | qiyao <qiyao> | 2013-07-18 23:09:48 +0000 |
commit | cc3c9e5f2bf4c0b64cfc7f4a9af1921c8c0298c2 (patch) | |
tree | 375cbd628c4746fcd0e37d10b9012a8a6a3c4f1c /gdb/valops.c | |
parent | 5f3c083af079e3d88299015866a6d2c612ec677d (diff) | |
download | gdb-cc3c9e5f2bf4c0b64cfc7f4a9af1921c8c0298c2.tar.gz |
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 4161c2c0b03..a3ab24f2ecd 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); |