summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2011-08-04 12:49:32 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2011-08-04 12:49:32 +0000
commit7e1126afc1751dbac7fbbdc388d7db9d7d45493f (patch)
treedbe0eb3d8922bfdc76b3944587c7bde3afd1aae1
parent4eb108ad2e530cfd39871f60c2b7b68ebccd027c (diff)
downloadgdb-7e1126afc1751dbac7fbbdc388d7db9d7d45493f.tar.gz
* gdb.threads/thread-find.exp: Support remote targets.
-rw-r--r--gdb/testsuite/ChangeLog4
-rw-r--r--gdb/testsuite/gdb.threads/thread-find.exp4
2 files changed, 8 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index e8e883e5c71..dcc63dfcc51 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,5 +1,9 @@
2011-08-04 Ulrich Weigand <ulrich.weigand@linaro.org>
+ * gdb.threads/thread-find.exp: Support remote targets.
+
+2011-08-04 Ulrich Weigand <ulrich.weigand@linaro.org>
+
* gdb.base/jit.exp: Download solib_binfile to target.
* gdb.base/jit-so.exp: Likewise. Also, use gdb_load_shlibs
and call dlopen without full path name.
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 .*" \