Imported Upstream version 7.9
[platform/upstream/gdb.git] / gdb / testsuite / gdb.reverse / break-precsave.exp
index 3206e3c..aa7d10d 100644 (file)
@@ -1,4 +1,4 @@
-#   Copyright 2008-2014 Free Software Foundation, Inc.
+#   Copyright 2008-2015 Free Software Foundation, Inc.
 
 # This program is free software; you can redistribute it and/or modify
 # it under the terms of the GNU General Public License as published by
@@ -45,7 +45,7 @@ proc precsave_tests {} {
     }
 
     gdb_test "break $end_location" \
-       "Breakpoint $decimal at .*/$srcfile, line $end_location\." \
+       "Breakpoint $decimal at .*$srcfile, line $end_location\." \
        "BP at end of main"
 
     gdb_test "continue" "Breakpoint .* end of main .*" "run to end of main"
@@ -58,7 +58,7 @@ proc precsave_tests {} {
        "Kill the program being debugged\\? \\(y or n\\) " "y"
 
     gdb_test "record restore $precsave" \
-       "Program terminated with signal .*" \
+       "Restored records from core file .*" \
        "reload precord save file"
 
     gdb_test "break foo" \
@@ -69,10 +69,10 @@ proc precsave_tests {} {
        "Breakpoint $decimal at .* line $bar_location\." \
        "set breakpoint on bar"
 
-    gdb_continue_to_breakpoint "foo" ".*/$srcfile:$foo_location.*"
-    gdb_continue_to_breakpoint "bar" ".*/$srcfile:$bar_location.*"
+    gdb_continue_to_breakpoint "foo" ".*$srcfile:$foo_location.*"
+    gdb_continue_to_breakpoint "bar" ".*$srcfile:$bar_location.*"
     gdb_test_multiple "continue" "go to end of main forward" {
-       -re ".*Breakpoint $decimal,.*/$srcfile:$end_location.*$gdb_prompt $"  {
+       -re ".*Breakpoint $decimal,.*$srcfile:$end_location.*$gdb_prompt $"  {
            pass "go to end of main forward"
        }
        -re "No more reverse-execution history.* end of main .*$gdb_prompt $" {
@@ -82,11 +82,11 @@ proc precsave_tests {} {
 
     gdb_test_no_output "set exec-direction reverse" "set reverse"
 
-    gdb_continue_to_breakpoint "bar backward"  ".*/$srcfile:$bar_location.*"
-    gdb_continue_to_breakpoint "foo backward"  ".*/$srcfile:$foo_location.*"
+    gdb_continue_to_breakpoint "bar backward"  ".*$srcfile:$bar_location.*"
+    gdb_continue_to_breakpoint "foo backward"  ".*$srcfile:$foo_location.*"
 
     gdb_test_multiple "continue" "main backward" {
-       -re ".*Breakpoint $decimal,.*/$srcfile:$main_location.*$gdb_prompt $" {
+       -re ".*Breakpoint $decimal,.*$srcfile:$main_location.*$gdb_prompt $" {
            pass "main backward"
        }
        -re "No more reverse-execution history.* break in main .*$gdb_prompt $" {
@@ -96,11 +96,11 @@ proc precsave_tests {} {
 
     gdb_test_no_output "set exec-direction forward" "set forward"
 
-    gdb_continue_to_breakpoint "foo" ".*/$srcfile:$foo_location.*"
-    gdb_continue_to_breakpoint "bar" ".*/$srcfile:$bar_location.*"
+    gdb_continue_to_breakpoint "foo" ".*$srcfile:$foo_location.*"
+    gdb_continue_to_breakpoint "bar" ".*$srcfile:$bar_location.*"
 
     gdb_test_multiple "continue" "end of record log" {
-       -re ".*Breakpoint $decimal,.*/$srcfile:$end_location.*$gdb_prompt $" {
+       -re ".*Breakpoint $decimal,.*$srcfile:$end_location.*$gdb_prompt $" {
            pass "end of record log"
        }
        -re "No more reverse-execution history.* end of main .*$gdb_prompt $" {