summaryrefslogtreecommitdiff
path: root/gdb/testsuite/gdb.base/advance.exp
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2003-02-03 22:00:56 +0000
committerAndrew Cagney <cagney@redhat.com>2003-02-03 22:00:56 +0000
commiteab73163fcc75925fd4a4c225e1997b86ce3d322 (patch)
tree70e631a557de6942c139323c8a7a5bd3414b5d76 /gdb/testsuite/gdb.base/advance.exp
parent41d5c6ad6b8530d4f2df97ccb4bad485260d06cf (diff)
downloadgdb-eab73163fcc75925fd4a4c225e1997b86ce3d322.tar.gz
Merge with interps-20030203-mergepoint.
Diffstat (limited to 'gdb/testsuite/gdb.base/advance.exp')
-rw-r--r--gdb/testsuite/gdb.base/advance.exp6
1 files changed, 5 insertions, 1 deletions
diff --git a/gdb/testsuite/gdb.base/advance.exp b/gdb/testsuite/gdb.base/advance.exp
index aea5a6d57fc..e5061d8fbf6 100644
--- a/gdb/testsuite/gdb.base/advance.exp
+++ b/gdb/testsuite/gdb.base/advance.exp
@@ -63,8 +63,12 @@ gdb_test "advance func" \
# Verify that "advance <funcname>" when funcname is NOT called by the current
# frame, stops at the end of the current frame.
#
+# gdb can legitimately stop on either the current line or the next line,
+# depending on whether the machine instruction for 'call' on the current
+# line has more instructions after it or not.
+#
gdb_test "advance func3" \
- "in main.*func \\(c\\).*stop here after leaving current frame..."\
+ "(in main|).*(func \\(c\\)|marker1 \\(\\)).*stop here after leaving current frame..."\
"advance function not called by current frame"
# break at main again