diff options
author | Yao Qi <yao.qi@linaro.org> | 2015-11-27 14:21:47 +0000 |
---|---|---|
committer | Yao Qi <yao.qi@linaro.org> | 2015-11-27 14:21:47 +0000 |
commit | bfde72c275bff9d5be21cf51ba790cf38ecd0d59 (patch) | |
tree | 60958d0e5a5d32892057b8e7218c769ed84c1522 /gdb | |
parent | 1a04d1a7e1e0ab4456c8f729375b9415a8cf7c61 (diff) | |
download | fsf-binutils-gdb-bfde72c275bff9d5be21cf51ba790cf38ecd0d59.zip fsf-binutils-gdb-bfde72c275bff9d5be21cf51ba790cf38ecd0d59.tar.gz fsf-binutils-gdb-bfde72c275bff9d5be21cf51ba790cf38ecd0d59.tar.bz2 |
Use ${frames_invalid} in gdb.cp/annota2.exp
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}.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/testsuite/ChangeLog | 4 | ||||
-rw-r--r-- | gdb/testsuite/gdb.cp/annota2.exp | 2 |
2 files changed, 5 insertions, 1 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 461565f..f03b3c1 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -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. diff --git a/gdb/testsuite/gdb.cp/annota2.exp b/gdb/testsuite/gdb.cp/annota2.exp index eb6465a..041f65d 100644 --- a/gdb/testsuite/gdb.cp/annota2.exp +++ b/gdb/testsuite/gdb.cp/annota2.exp @@ -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" } } |