Then, .* followed with [^\r\n]* doesn't seem useful, since the .* can
just match anything the [^\r\n]* doesn't match.
What about just this?
set test "continue to end"
gdb_test_multiple "$cmd" $test {
-re "hit Breakpoint $decimal, end \\(\\) at.*$gdb_prompt " {
We should still keep \r\n before $gdb_prompt.
pass $test
}
}
The original pattern is "end .* at", so I want to leave it there, and
change it to
set test "continue to end"
gdb_test_multiple "$cmd" $test {
-re "Breakpoint .* end .* at .*\r\n$gdb_prompt " {
pass $test
}
}