# This testcase is part of GDB, the GNU debugger.
#
-# Copyright 2014-2015 Free Software Foundation, Inc.
+# Copyright 2014-2018 Free Software Foundation, Inc.
#
# Contributed by Intel Corp. <markus.t.metzger@intel.com>
#
#
# Test that we can access the vdso memory during replay for stepping.
-# check for btrace support
-if { [skip_btrace_tests] } { return -1 }
+if { [skip_btrace_tests] } {
+ unsupported "target does not support record-btrace"
+ return -1
+}
-# start inferior
standard_testfile
-if [prepare_for_testing $testfile.exp $testfile $srcfile] {
+if [prepare_for_testing "failed to prepare" $testfile $srcfile] {
return -1
}
+
if ![runto_main] {
+ untested "failed to run to main"
return -1
}
# trace the test code
gdb_test_no_output "record btrace"
-gdb_test "next" "main\.2.*"
+gdb_test "stepi" ".*"
with_test_prefix "replay" {
+ # start replaying
+ gdb_test "record goto begin" ".*"
+ gdb_test "info record" "Replay in progress\.\[^\\\r\\\n\]*"
+
# capture the disassembly of gettimeofday while replaying
- gdb_test "record goto begin" "main\.1.*"
set replay_gettimeofday [capture_command_output "disassemble gettimeofday" ""]
# the two disassemblies must be identical