From 3c23a941c398a759c3de429c3f68cf605f8c1428 Mon Sep 17 00:00:00 2001 From: Kung Hsu Date: Wed, 29 Mar 1995 20:31:26 +0000 Subject: [PATCH] * lib/gdb.exp (runto_main): Fix regular expression bug, add return 1. --- gdb/testsuite/ChangeLog | 4 ++++ gdb/testsuite/lib/gdb.exp | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index aacb83193bc..4f497bf8957 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +Wed Mar 29 12:29:34 1995 Kung Hsu + + * lib/gdb.exp (runto_main): Fix regular expression bug, add return 1. + Tue Mar 28 08:46:45 1995 Jim Kingdon (kingdon@lioth.cygnus.com) * gdb.base/recurse.exp: Make test names unique. Change \\(+ to \\(. diff --git a/gdb/testsuite/lib/gdb.exp b/gdb/testsuite/lib/gdb.exp index cec1f2765ca..943191220b5 100644 --- a/gdb/testsuite/lib/gdb.exp +++ b/gdb/testsuite/lib/gdb.exp @@ -233,9 +233,10 @@ proc runto_main {} { send "step\n" # if use stubs step out of the breakpoint() function. expect { - -re "* at .*$prompt $" {} + -re "main.* at .*$prompt $" {} timeout { fail "single step at breakpoint() (timeout)" ; return 0 } } + return 1 } # -- 2.30.2