This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH] obvious pattern fix in gdb.base/step-line.exp
- From: Christophe LYON <christophe dot lyon at st dot com>
- To: gdb-patches at sources dot redhat dot com
- Date: Fri, 27 Mar 2009 14:57:17 +0100
- Subject: [PATCH] obvious pattern fix in gdb.base/step-line.exp
Hello,
I propose the attached small patch to allow printing the full path
before 'step-line.c'.
Christophe.
2009-03-27 Christophe Lyon <christophe.lyon@st.com>
testsuite/
* gdb.base/step-line.exp: Fix pattern to allow full path before
"step-line.c".
Index: gdb/testsuite/gdb.base/step-line.exp
===================================================================
--- gdb/testsuite/gdb.base/step-line.exp (revision 308)
+++ gdb/testsuite/gdb.base/step-line.exp (working copy)
@@ -46,7 +46,7 @@ if ![runto_main] then {
return 0
}
-gdb_test "break f1" ".*Breakpoint 2 at .* file step-line.c.*" "break f1"
+gdb_test "break f1" ".*Breakpoint 2 at .* file .*$srcfile.*" "break f1"
gdb_test "continue" \
"Continuing.*Breakpoint 2, f1 \\(i=4\\).*dummy \\(1, i\\);" \
"continue to f1"