aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorMark Kettenis <kettenis@gnu.org>2014-02-10 17:58:03 +0100
committerMark Kettenis <kettenis@gnu.org>2014-02-10 18:07:12 +0100
commit1dfdac3275133d51186c6b2c3910bf7043157f1b (patch)
treebe03a9770542b86629034b8cb1e848986c412660 /gdb
parent4b7d1f7fb496267f5ffb08effd1e18a3424eb9d8 (diff)
downloadgdb-1dfdac3275133d51186c6b2c3910bf7043157f1b.zip
gdb-1dfdac3275133d51186c6b2c3910bf7043157f1b.tar.gz
gdb-1dfdac3275133d51186c6b2c3910bf7043157f1b.tar.bz2
Avoid killing all processes.
gdb/ChangeLog: * gdb.threads/step-after-sr-lock.exp: Avoid executing "kill -SIGUSR1 -1".
Diffstat (limited to 'gdb')
-rw-r--r--gdb/testsuite/ChangeLog5
-rw-r--r--gdb/testsuite/gdb.threads/step-after-sr-lock.exp3
2 files changed, 8 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index a9021cb..6216b25 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2014-02-10 Mark Kettenis <kettenis@gnu.org>
+
+ * gdb.threads/step-after-sr-lock.exp: Avoid executing
+ "kill -SIGUSR1 -1".
+
2014-02-10 Joel Brobecker <brobecker@adacore.com>
* gdb.ada/tick_length_array_enum_idx: New testcase.
diff --git a/gdb/testsuite/gdb.threads/step-after-sr-lock.exp b/gdb/testsuite/gdb.threads/step-after-sr-lock.exp
index 6b93d9c..bf5ea60 100644
--- a/gdb/testsuite/gdb.threads/step-after-sr-lock.exp
+++ b/gdb/testsuite/gdb.threads/step-after-sr-lock.exp
@@ -68,6 +68,9 @@ gdb_continue_to_breakpoint "run to breakpoint"
gdb_test "info threads" "" "info threads with thread 3"
set testpid [get_value "pid" "get pid of inferior"]
+if { $testpid == -1 } {
+ return -1
+}
gdb_test "set scheduler-locking on"