From: Ulrich Weigand Date: Thu, 4 Aug 2011 12:49:33 +0000 (+0000) Subject: * gdb.threads/thread-find.exp: Support remote targets. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=d4f5bbb99f86e3b502d1d4b08086fc9aab668867;p=binutils-gdb.git * gdb.threads/thread-find.exp: Support remote targets. --- diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index e8e883e5c71..dcc63dfcc51 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,3 +1,7 @@ +2011-08-04 Ulrich Weigand + + * gdb.threads/thread-find.exp: Support remote targets. + 2011-08-04 Ulrich Weigand * gdb.base/jit.exp: Download solib_binfile to target. diff --git a/gdb/testsuite/gdb.threads/thread-find.exp b/gdb/testsuite/gdb.threads/thread-find.exp index 305cc2c92b6..c4723946e61 100644 --- a/gdb/testsuite/gdb.threads/thread-find.exp +++ b/gdb/testsuite/gdb.threads/thread-find.exp @@ -38,6 +38,10 @@ runto_main gdb_breakpoint [gdb_get_line_number "linuxthreads.exp: info threads 2"] gdb_continue_to_breakpoint "main thread's sleep" +# Make sure thread list is up-to-date (in case remote targets have not yet +# reported thread creation events) +gdb_test "info threads" + # Create thread names. gdb_test "thread apply 1 thread name threadname_1" \ "Thread 1 .*" \