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]

[committed, testsuite] generalize filename pattern in gdb.mi/mi-dprintf-pending.exp


When compiling test cases for GDB, our remote-host test harness copies the source files to the working directory on the remote host and compiles them there using relative pathnames, so that when breakpoints are reported they don't include a pathname prefix either. This patch fixes a bad breakpoint pattern in gdb.mi/mi-dprintf-pending.exp.

I've previously committed some other patches to fix testcases with breakpoint regexps that require a directory prefix... e.g.

https://sourceware.org/ml/gdb-patches/2013-04/msg00053.html

So I presume more of the same qualifies as "obvious", and have committed this patch.

-Sandra
2015-09-18  Sandra Loosemore  <sandra@codesourcery.com>

	gdb/testsuite/
	* gdb.mi/mi-dprintf-pending.exp: Don't require directory prefix
	in breakpoint filename pattern.
diff --git a/gdb/testsuite/gdb.mi/mi-dprintf-pending.exp b/gdb/testsuite/gdb.mi/mi-dprintf-pending.exp
index 5bb4a1b..a4a1709 100644
--- a/gdb/testsuite/gdb.mi/mi-dprintf-pending.exp
+++ b/gdb/testsuite/gdb.mi/mi-dprintf-pending.exp
@@ -60,7 +60,7 @@ mi_gdb_test "-dprintf-insert -f pendfunc1 \"hello\"" \
     "mi set dprintf"
 
 mi_create_breakpoint $bp_location1 "mi insert breakpoint bp_location1" \
-    -type "breakpoint" -line $bp_location1 -file $srcdir/$subdir/$srcfile
+    -type "breakpoint" -line $bp_location1 -file ".*$srcfile"
 
 mi_run_cmd
 

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