aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2014-07-30 12:19:30 +0100
committerPedro Alves <palves@redhat.com>2014-07-30 12:19:30 +0100
commitcc6563d29b6f86b23c4f9a8ea73dabf9f7fc0d91 (patch)
treeb17a477ef57f97e34a9e845ba1057b38bd4c00d7
parenta1c7835a2f1755e815a662e2d6caeb6f9e1b1ecc (diff)
downloadgdb-cc6563d29b6f86b23c4f9a8ea73dabf9f7fc0d91.zip
gdb-cc6563d29b6f86b23c4f9a8ea73dabf9f7fc0d91.tar.gz
gdb-cc6563d29b6f86b23c4f9a8ea73dabf9f7fc0d91.tar.bz2
gdb.threads/signal-command-handle-nopass.exp: Add comment
Explain why we do "info threads". gdb/testsuite/ 2014-07-30 Pedro Alves <palves@redhat.com> * gdb.threads/signal-command-handle-nopass.exp (test): Add comment.
-rw-r--r--gdb/testsuite/ChangeLog5
-rw-r--r--gdb/testsuite/gdb.threads/signal-command-handle-nopass.exp4
2 files changed, 9 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index a90ee8b..6eb8f3e 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2014-07-30 Pedro Alves <palves@redhat.com>
+
+ * gdb.threads/signal-command-handle-nopass.exp (test): Add
+ comment.
+
2014-07-29 Yao Qi <yao@codesourcery.com>
PR gdb/17206
diff --git a/gdb/testsuite/gdb.threads/signal-command-handle-nopass.exp b/gdb/testsuite/gdb.threads/signal-command-handle-nopass.exp
index 3ea9cf8..e46a0ab 100644
--- a/gdb/testsuite/gdb.threads/signal-command-handle-nopass.exp
+++ b/gdb/testsuite/gdb.threads/signal-command-handle-nopass.exp
@@ -69,6 +69,10 @@ proc test { step_over } {
gdb_test "signal SIGUSR1" "handler .*"
+ # Make sure it was thread 1 that got the signal. Note we list
+ # all threads instead of just thread 1, so that if something
+ # goes wrong and another thread ends up selected, we can
+ # easily see which in the logs.
gdb_test "info threads" $pattern "thread 1 got the signal"
}
}