+2015-07-24 Pedro Alves <palves@redhat.com>
+
+ * gdb.python/py-events.exp: Accept output between the stop event
+ and the prompt.
+ * gdb.python/py-evsignal.exp: Likewise.
+ * gdb.python/py-evthreads.exp: Likewise.
+
2015-07-24 Pedro Alves <palves@redhat.com>
PR gdb/18717
.*first breakpoint number: 2.*
.*breakpoint number: 2.*
.*breakpoint number: 3.*
-all threads stopped"
+all threads stopped.*"
# Test that when "step N" trips on a breakpoint, we get a stop event
# with breakpoint stop reason.
.*stop reason: breakpoint.*
.*first breakpoint number: 4.*
.*breakpoint number: 4.*
-all threads stopped"
+all threads stopped.*"
delete_breakpoints
gdb_run_cmd
gdb_test_multiple "" "Signal Thread 3" {
- -re "event type: stop\r\nstop reason: signal\r\nstop signal: SIGUSR1\r\nthread num: 3\r\nevent type: stop\r\n$gdb_prompt $" {
+ -re "event type: stop\r\nstop reason: signal\r\nstop signal: SIGUSR1\r\nthread num: 3\r\nevent type: stop\r\n.*$gdb_prompt $" {
pass "thread 3 was signaled"
}
-re "The target does not support running in non-stop mode" {
gdb_run_cmd
set test "Run to breakpoint 1"
gdb_test_multiple "" $test {
- -re "event type: stop\r\nstop reason: breakpoint\r\nfirst breakpoint number: 1\r\nbreakpoint number: 1\r\nthread num: 1\r\n$gdb_prompt $" {
+ -re "event type: stop\r\nstop reason: breakpoint\r\nfirst breakpoint number: 1\r\nbreakpoint number: 1\r\nthread num: 1\r\n.*$gdb_prompt $" {
pass $test
}
-re "The target does not support running in non-stop mode" {
}
}
-gdb_test "next" "event type: stop\r\nstop reason: breakpoint\r\nfirst breakpoint number: 2\r\nbreakpoint number: 2\r\nthread num: 2" "reached breakpoint 2"
+gdb_test "next" "event type: stop\r\nstop reason: breakpoint\r\nfirst breakpoint number: 2\r\nbreakpoint number: 2\r\nthread num: 2.*" "reached breakpoint 2"
gdb_test "thread 2" {\[Switching to thread 2 .*}
-gdb_test "next" "event type: stop\r\nstop reason: breakpoint\r\nfirst breakpoint number: 3\r\nbreakpoint number: 3\r\nthread num: 3" "reached breakpoint 3"
+gdb_test "next" "event type: stop\r\nstop reason: breakpoint\r\nfirst breakpoint number: 3\r\nbreakpoint number: 3\r\nthread num: 3.*" "reached breakpoint 3"
gdb_test "thread 3" {\[Switching to thread 3 .*}
set test "thread 3 was signaled"
gdb_test_multiple "" $test {
- -re "event type: stop\r\nstop reason: signal\r\nstop signal: SIGUSR1\r\nthread num: 3\r\nevent type: stop\r\n$" {
+ -re "event type: stop\r\nstop reason: signal\r\nstop signal: SIGUSR1\r\nthread num: 3\r\nevent type: stop\r\n" {
pass $test
}
}