This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[committed, testsuite] generalize breakpoint pattern in gdb.mi/mi-cli.exp
- From: Sandra Loosemore <sandra at codesourcery dot com>
- To: gdb-patches <gdb-patches at sourceware dot org>
- Date: Fri, 18 Sep 2015 10:42:45 -0600
- Subject: [committed, testsuite] generalize breakpoint pattern in gdb.mi/mi-cli.exp
- Authentication-results: sourceware.org; auth=none
This patch removes another assumption that filenames reported in
breakpoint messages must include a pathname prefix. I've committed it
as obvious given that there is past precedent for similar fixes.
-Sandra
2015-09-18 Sandra Loosemore <sandra@codesourcery.com>
gdb/testsuite/
* gdb.mi/mi-cli.exp: Don't require directory prefix in breakpoint
filename pattern.
diff --git a/gdb/testsuite/gdb.mi/mi-cli.exp b/gdb/testsuite/gdb.mi/mi-cli.exp
index 5f75bef..aad9880 100644
--- a/gdb/testsuite/gdb.mi/mi-cli.exp
+++ b/gdb/testsuite/gdb.mi/mi-cli.exp
@@ -184,7 +184,7 @@ mi_send_resuming_command "exec-continue" "-exec-continue to line \$line_main_hel
set output [mi_gdb_expect_cli_output "\\*stopped" "collect CLI output for breakpoint hit"]
set test "breakpoint hit produces CLI output"
-set pattern "\\\\nTemporary breakpoint 3, main \\(\\) at \[^\n\]+basics.c:$line_main_hello\\\\n\[^\n\]+Hello"
+set pattern "\\\\nTemporary breakpoint 3, main \\(\\) at \[^\n\]*basics.c:$line_main_hello\\\\n\[^\n\]+Hello"
if {[regexp $pattern $output]} {
pass $test