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/testsuite/gdb.trace/read-memory.exp | |
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/testsuite/gdb.trace/read-memory.exp')
-rw-r--r-- | gdb/testsuite/gdb.trace/read-memory.exp | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/gdb/testsuite/gdb.trace/read-memory.exp b/gdb/testsuite/gdb.trace/read-memory.exp index bb59853..820ded3 100644 --- a/gdb/testsuite/gdb.trace/read-memory.exp +++ b/gdb/testsuite/gdb.trace/read-memory.exp @@ -103,9 +103,8 @@ proc test_from_remote { target } { } with_test_prefix "w/o setting traceframe" { - gdb_test "print testglob" "Cannot access memory at address.*" - gdb_test "print testglob_not_collected" \ - "Cannot access memory at address.*" + gdb_test "print testglob" " = <unavailable>" + gdb_test "print testglob_not_collected" " = <unavailable>" gdb_test "print constglob" " = 10000" gdb_test "print constglob_not_collected" " = 100" } @@ -140,9 +139,8 @@ proc teset_from_exec { target } { "change to ${target} target" with_test_prefix "exec to ${target} w/o setting traceframe" { - gdb_test "print testglob" "Cannot access memory at address.*" - gdb_test "print testglob_not_collected" \ - "Cannot access memory at address.*" + gdb_test "print testglob" " = <unavailable>" + gdb_test "print testglob_not_collected" " = <unavailable>" gdb_test "print constglob" " = 10000" gdb_test "print constglob_not_collected" " = 100" } |