* gdb.base/ending-run.exp: Restrict regular expression matching
authorJoseph Myers <joseph@codesourcery.com>
Thu, 3 Sep 2009 22:03:21 +0000 (22:03 +0000)
committerJoseph Myers <joseph@codesourcery.com>
Thu, 3 Sep 2009 22:03:21 +0000 (22:03 +0000)
line number to require closing brace following.

gdb/testsuite/ChangeLog
gdb/testsuite/gdb.base/ending-run.exp

index 271b677880c7acb2977423934175056e0b529dda..824dfb7799060577a4b40e3dd2301ad38affe7b4 100644 (file)
@@ -1,3 +1,8 @@
+2009-09-03  Joseph Myers  <joseph@codesourcery.com>
+
+       * gdb.base/ending-run.exp: Restrict regular expression matching
+       line number to require closing brace following.
+
 2009-09-03  Doug Evans  <dje@google.com>
 
        * gdb.base/store.exp (check_set): Fix typo in expected value message.
index ccd5f6f7a84dcf19b4241c5a905378e317443934..f789698535ebac19250e7625a642f9e43283572e 100644 (file)
@@ -120,7 +120,7 @@ set program_exited 0
 send_gdb "next\n"
 set nexted 0
 gdb_expect {
-    -re "33.*$gdb_prompt $" {
+    -re "33\[ \t\]+\}.*$gdb_prompt $" {
        # sometimes we stop at the closing brace, if so, do another next
        if { $nexted } {
            fail "step out of main"