aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/testsuite/gdb.reverse/machinestate.exp')
-rw-r--r--gdb/testsuite/gdb.reverse/machinestate.exp60
1 files changed, 30 insertions, 30 deletions
diff --git a/gdb/testsuite/gdb.reverse/machinestate.exp b/gdb/testsuite/gdb.reverse/machinestate.exp
index 68412b47d3b..60d8f33a022 100644
--- a/gdb/testsuite/gdb.reverse/machinestate.exp
+++ b/gdb/testsuite/gdb.reverse/machinestate.exp
@@ -80,11 +80,11 @@ with_test_prefix "module global variable, reverse" {
gdb_test "tbreak $breakloc" "$srcfile, line $breakloc.*"
gdb_test "reverse-continue" "$srcfile:$breakloc.*" "reverse to $breakloc"
- gdb_test "print aglobal" " = 0$newline" "module global reverse-breakpoint"
+ gdb_test "print aglobal" " = 0" "module global reverse-breakpoint"
gdb_test "step" " module global post-change .*"
- gdb_test "print aglobal" " = 1$newline" "module global forward past bp"
+ gdb_test "print aglobal" " = 1" "module global forward past bp"
gdb_test "reverse-step" "$newline$breakloc.*"
- gdb_test "print aglobal" " = 0$newline" "module global reverse-step to bp"
+ gdb_test "print aglobal" " = 0" "module global reverse-step to bp"
}
# Module static variable, reverse
@@ -95,11 +95,11 @@ with_test_prefix "module static variable, reverse" {
gdb_test "tbreak $breakloc" "$srcfile, line $breakloc.*"
gdb_test "reverse-continue" "$srcfile:$breakloc.*" "reverse to $breakloc"
- gdb_test "print astatic" " = 0$newline" "module static reverse-breakpoint"
+ gdb_test "print astatic" " = 0" "module static reverse-breakpoint"
gdb_test "step" " module static post-change .*"
- gdb_test "print astatic" " = 1$newline" "module static forward"
+ gdb_test "print astatic" " = 1" "module static forward"
gdb_test "reverse-step" "$newline$breakloc.*"
- gdb_test "print astatic" " = 0$newline" "module static reverse-step"
+ gdb_test "print astatic" " = 0" "module static reverse-step"
}
# Function static variable, reverse
@@ -110,11 +110,11 @@ with_test_prefix "function static variable, reverse" {
gdb_test "tbreak $breakloc" "$srcfile, line $breakloc.*"
gdb_test "reverse-continue" "$srcfile:$breakloc.*" "reverse to $breakloc"
- gdb_test "print a" " = 0$newline" "function static reverse-breakpoint"
+ gdb_test "print a" " = 0" "function static reverse-breakpoint"
gdb_test "step" " function static post-change .*"
- gdb_test "print a" " = 1$newline" "function static forward"
+ gdb_test "print a" " = 1" "function static forward"
gdb_test "reverse-step" "$newline$breakloc.*"
- gdb_test "print a" " = 0$newline" "function static reverse-step"
+ gdb_test "print a" " = 0" "function static reverse-step"
}
# Auto variable, reverse
@@ -125,11 +125,11 @@ with_test_prefix "auto variable, reverse" {
gdb_test "tbreak $breakloc" "$srcfile, line $breakloc.*"
gdb_test "reverse-continue" "$srcfile:$breakloc.*" "reverse to $breakloc"
- gdb_test "print a" " = 0$newline" "auto var reverse-breakpoint"
+ gdb_test "print a" " = 0" "auto var reverse-breakpoint"
gdb_test "step" " auto post-change .*"
- gdb_test "print a" " = 1$newline" "auto var forward"
+ gdb_test "print a" " = 1" "auto var forward"
gdb_test "reverse-step" "$newline$breakloc.*"
- gdb_test "print a" " = 0$newline" "auto var reverse-step"
+ gdb_test "print a" " = 0" "auto var reverse-step"
}
# Register variable, reverse
@@ -140,11 +140,11 @@ with_test_prefix "register variable, reverse" {
gdb_test "tbreak $breakloc" "$srcfile, line $breakloc.*"
gdb_test "reverse-continue" "$srcfile:$breakloc.*" "reverse to $breakloc"
- gdb_test "print a" " = 0$newline" "register var reverse-breakpoint"
+ gdb_test "print a" " = 0" "register var reverse-breakpoint"
gdb_test "step" " register post-change .*"
- gdb_test "print a" " = 1$newline" "register var step post-change"
+ gdb_test "print a" " = 1" "register var step post-change"
gdb_test "reverse-step" "$newline$breakloc.*"
- gdb_test "print a" " = 0$newline" \
+ gdb_test "print a" " = 0" \
"register var reverse step-to, first time"
}
@@ -164,12 +164,12 @@ with_test_prefix "register variable, forward" {
gdb_test "tbreak $breakloc" "$srcfile, line $breakloc.*"
gdb_test "continue" "$srcfile:$breakloc.*" "forward to $breakloc"
- gdb_test "print a" " = 0$newline" "register var forward-breakpoint"
+ gdb_test "print a" " = 0" "register var forward-breakpoint"
gdb_test "reverse-step" "hide.*"
gdb_test "step" "$newline$breakloc.*" "step, 1"
- gdb_test "print a" " = 0$newline" "register var forward step-to"
+ gdb_test "print a" " = 0" "register var forward step-to"
gdb_test "step" " register post-change .*" "step, 2"
- gdb_test "print a" " = 1$newline" \
+ gdb_test "print a" " = 1" \
"register var step post-change, second time"
}
@@ -181,12 +181,12 @@ with_test_prefix "auto variable, forward" {
gdb_test "tbreak $breakloc" "$srcfile, line $breakloc.*"
gdb_test "continue" "$srcfile:$breakloc.*" "forward to $breakloc"
- gdb_test "print a" " = 0$newline" "auto var forward-breakpoint"
+ gdb_test "print a" " = 0" "auto var forward-breakpoint"
gdb_test "reverse-step" "hide.*"
gdb_test "step" "$newline$breakloc.*" "step, 1"
- gdb_test "print a" " = 0$newline" "auto var forward step-to"
+ gdb_test "print a" " = 0" "auto var forward step-to"
gdb_test "step" " auto post-change .*" "step, 2"
- gdb_test "print a" " = 1$newline" "auto var step post-change"
+ gdb_test "print a" " = 1" "auto var step post-change"
}
# Function static variable, forward
@@ -197,12 +197,12 @@ with_test_prefix "function static variable, forward" {
gdb_test "tbreak $breakloc" "$srcfile, line $breakloc.*"
gdb_test "continue" "$srcfile:$breakloc.*" "forward to $breakloc"
- gdb_test "print a" " = 0$newline" "function static forward-breakpoint"
+ gdb_test "print a" " = 0" "function static forward-breakpoint"
gdb_test "reverse-step" "hide.*"
gdb_test "step" "$newline$breakloc.*" "step, 1"
- gdb_test "print a" " = 0$newline" "function static forward step-to"
+ gdb_test "print a" " = 0" "function static forward step-to"
gdb_test "step" " function static post-change .*" "step, 2"
- gdb_test "print a" " = 1$newline" "function static step post-change"
+ gdb_test "print a" " = 1" "function static step post-change"
}
# Module static variable, forward
@@ -213,12 +213,12 @@ with_test_prefix "module static variable, forward" {
gdb_test "tbreak $breakloc" "$srcfile, line $breakloc.*"
gdb_test "continue" "$srcfile:$breakloc.*" "forward to $breakloc"
- gdb_test "print astatic" " = 0$newline" "module static forward-breakpoint"
+ gdb_test "print astatic" " = 0" "module static forward-breakpoint"
gdb_test "reverse-step" "hide.*"
gdb_test "step" "$newline$breakloc.*" "step, 1"
- gdb_test "print astatic" " = 0$newline" "module static forward step-to"
+ gdb_test "print astatic" " = 0" "module static forward step-to"
gdb_test "step" " module static post-change .*" "step, 2"
- gdb_test "print astatic" " = 1$newline" "module static step post-change"
+ gdb_test "print astatic" " = 1" "module static step post-change"
}
# Module global variable, forward
@@ -229,10 +229,10 @@ with_test_prefix "module global variable, forward" {
gdb_test "tbreak $breakloc" "$srcfile, line $breakloc.*"
gdb_test "continue" "$srcfile:$breakloc.*" "forward to $breakloc"
- gdb_test "print aglobal" " = 0$newline" "module global forward-breakpoint"
+ gdb_test "print aglobal" " = 0" "module global forward-breakpoint"
gdb_test "reverse-step" "hide.*"
gdb_test "step" "$newline$breakloc.*" "step, 1"
- gdb_test "print aglobal" " = 0$newline" "module global forward step-to"
+ gdb_test "print aglobal" " = 0" "module global forward step-to"
gdb_test "step" " module global post-change .*" "step, 2"
- gdb_test "print aglobal" " = 1$newline" "module global step post-change"
+ gdb_test "print aglobal" " = 1" "module global step post-change"
}