SWITCH_THRU_ALL_UIS ()
{
target_terminal::ours_for_output ();
- gdb_printf (_("[Switching to %s]\n"),
+ gdb_printf (_("[Switching to thread %s (%s)]\n"),
+ print_thread_id (inferior_thread ()),
target_pid_to_str (inferior_ptid).c_str ());
annotate_thread_changed ();
}
"warning: command aborted, Thread \[^\r\n\]+ unexpectedly exited after signal stop event"]
if { !$non_stop } {
- lappend expected_output "\\\[Switching to Thread \[^\r\n\]+\\\]"
+ lappend expected_output "\\\[Switching to thread \[^\r\n\]+\\\]"
}
gdb_test "continue" [multi_line {*}$expected_output]
"Continuing\\." \
".*" \
"Thread ${::decimal} \"\[^\"\r\n\]+\" received signal SIGSEGV, Segmentation fault\\." \
- "\\\[Switching to Thread \[^\r\n\]+\\\]" \
+ "\\\[Switching to thread \[^\r\n\]+\\\]" \
"${::hex} in worker_func \[^\r\n\]+:${::signal_line}" \
"${::decimal}\\s+\[^\r\n\]+Signal here\[^\r\n\]+"] \
"received signal in other thread"
"Continuing\\." \
".*" \
"Thread ${::decimal} \"infcall-from-bp\" received signal SIGSEGV, Segmentation fault\\." \
- "\\\[Switching to Thread \[^\r\n\]+\\\]" \
+ "\\\[Switching to thread \[^\r\n\]+\\\]" \
"${::hex} in do_segfault \\(\\) at \[^\r\n\]+:${::segfault_line}" \
"${::decimal}\\s+\[^\r\n\]+Segfault here\[^\r\n\]+"] \
"hit the segfault"
# [New Thread NNN]
# [New Thread NNN]
# ... pages of new threads output ...
- # [Switching to Thread NNN]
+ # [Switching to thread NNN]
# foo () at foo.c:31
# 31 bar ();
#
incr stepi_new_thread_count
exp_continue
}
- -re "^\\\[Switching to Thread\[^\r\n\]+\\\]\r\n" {
+ -re "^\\\[Switching to thread\[^\r\n\]+\\\]\r\n" {
verbose -log "XXX: Consume switching to thread line"
exp_continue
}