Message ID | 1411644946-11697-1-git-send-email-yao@codesourcery.com |
---|---|
State | New |
Headers | show |
Yao Qi <yao@codesourcery.com> writes: > 2014-09-25 Yao Qi <yao@codesourcery.com> > > * gdb.threads/queue-signal.exp: Execute command "info threads". > Match the output of "thread 2". Ping.
On 10/07/2014 02:53 PM, Yao Qi wrote: > Yao Qi <yao@codesourcery.com> writes: > >> 2014-09-25 Yao Qi <yao@codesourcery.com> >> >> * gdb.threads/queue-signal.exp: Execute command "info threads". This part should no longer be necessary: https://sourceware.org/ml/gdb-patches/2014-09/msg00734.html >> Match the output of "thread 2". Thanks, Pedro Alves
diff --git a/gdb/testsuite/gdb.threads/queue-signal.exp b/gdb/testsuite/gdb.threads/queue-signal.exp index 207073d..ae50c2e 100644 --- a/gdb/testsuite/gdb.threads/queue-signal.exp +++ b/gdb/testsuite/gdb.threads/queue-signal.exp @@ -34,10 +34,14 @@ gdb_test "handle SIGABRT stop print pass" gdb_breakpoint "all_threads_running" gdb_continue_to_breakpoint "all_threads_running" +# Make sure thread list is up-to-date (in case remote targets have not +# yet reported thread creation events). +gdb_test "info threads" + # Find out which of threads 2,3 are for sigusr1,2. set sigusr1_thread 0 set sigusr2_thread 0 -gdb_test "thread 2" +gdb_test "thread 2" "Switching to .*" gdb_test_multiple "bt" "determine thread functions" { -re "sigusr1.*$gdb_prompt $" { set sigusr1_thread 2