Use ${frames_invalid} in gdb.cp/annota2.exp
authorYao Qi <yao.qi@linaro.org>
Fri, 27 Nov 2015 14:21:47 +0000 (14:21 +0000)
committerYao Qi <yao.qi@linaro.org>
Fri, 27 Nov 2015 14:21:47 +0000 (14:21 +0000)
Variable frames_invalid was defined, but wasn't used much.  This patch
is to replace the literals in the regexp with ${frames_invalid}.

gdb/testsuite:

2015-11-27  Yao Qi  <yao.qi@linaro.org>

* gdb.cp/annota2.exp: Use ${frames_invalid}.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.cp/annota2.exp

index 461565ff98ed60fa53da1951b095bec3df0b7e26..f03b3c17440311bd79c06e11d716a2eb5e8878d2 100644 (file)
@@ -1,3 +1,7 @@
+2015-11-27  Yao Qi  <yao.qi@linaro.org>
+
+       * gdb.cp/annota2.exp: Use ${frames_invalid}.
+
 2015-11-26  Simon Marchi  <simon.marchi@ericsson.com>
 
        * gdb.threads/names.exp: New file.
index eb6465a9bba9cf4f3a014b1d746cb24a1ceb7802..041f65df2f407586e4b4fb2f921c2c03256224d4 100644 (file)
@@ -102,7 +102,7 @@ gdb_test_multiple "print a" "print class" {
 # `a.x is 1' is asynchronous regarding to `frames-invalid'.
 #
 gdb_test_multiple "continue" "continue until exit" {
-    -re "\r\n\032\032post-prompt\r\nContinuing.\r\n\r\n\032\032starting\(\r\n\r\n\032\032frames-invalid\)*\r\na.x is 1\r\n\(\r\n\032\032frames-invalid\r\n\)*\r\n\032\032exited 0\r\n$inferior_exited_re normally.\r\n\r\n\032\032stopped\r\n$gdb_prompt$" {
+    -re "\r\n\032\032post-prompt\r\nContinuing.\r\n\r\n\032\032starting\r\n\(${frames_invalid}\)*a.x is 1\r\n\(${frames_invalid}\)*\r\n\032\032exited 0\r\n$inferior_exited_re normally.\r\n\r\n\032\032stopped\r\n$gdb_prompt$" {
        pass "continue until exit"
     }
 }