This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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"

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]