[committed,testsuite] generalize filename pattern in gdb.mi/mi-dprintf-pending.exp
Commit Message
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
@@ -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