From: Sandra Loosemore Date: Fri, 18 Sep 2015 16:39:31 +0000 (-0700) Subject: Generalize breakpoint pattern in gdb.mi/mi-cli.exp. X-Git-Tag: users/ARM/embedded-binutils-2_26-branch-2016q1~640 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f57929f229c97462650cef4086bb930290ba92af;p=platform%2Fupstream%2Fbinutils.git Generalize breakpoint pattern in gdb.mi/mi-cli.exp. 2015-09-18 Sandra Loosemore gdb/testsuite/ * gdb.mi/mi-cli.exp: Don't require directory prefix in breakpoint filename pattern. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 1535b46..e7a7d3a 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,5 +1,10 @@ 2015-09-18 Sandra Loosemore + * gdb.mi/mi-cli.exp: Don't require directory prefix in breakpoint + filename pattern. + +2015-09-18 Sandra Loosemore + * gdb.mi/mi-dprintf-pending.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