Update copyright year range in all GDB files
[deliverable/binutils-gdb.git] / gdb / testsuite / gdb.btrace / vdso.exp
index e0e62deaf0c9e8ab06bef4014fbf2a3b8bd5da80..dd6269348bc01059ba61ccd12fa020ad46e66be3 100644 (file)
@@ -1,6 +1,6 @@
 # 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
 }
 
@@ -37,11 +40,14 @@ set live_gettimeofday [capture_command_output "disassemble gettimeofday" ""]
 
 # 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
This page took 0.03133 seconds and 4 git commands to generate.