aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/ChangeLog
diff options
context:
space:
mode:
authorPatrick Palka <patrick@parcs.ath.cx>2015-07-28 15:00:58 -0400
committerPatrick Palka <patrick@parcs.ath.cx>2015-08-15 13:32:47 -0400
commite3ae3c4345fa14f2f3b0b2c5d4d23760af9f74f5 (patch)
tree3becc238774281fa8eee63ce6747a872a47c8ec9 /gdb/testsuite/ChangeLog
parent604b263620af66e3bf881f146e329b4de06104a5 (diff)
downloadgdb-e3ae3c4345fa14f2f3b0b2c5d4d23760af9f74f5.zip
gdb-e3ae3c4345fa14f2f3b0b2c5d4d23760af9f74f5.tar.gz
gdb-e3ae3c4345fa14f2f3b0b2c5d4d23760af9f74f5.tar.bz2
Fix invoking "[kill|detach] inferiors" on inferiors that are not running
Invoking either of the above commands on an inferior that's not running triggers the following assert failure: .../binutils-gdb/gdb/thread.c:514: internal-error: any_thread_of_process: Assertion `pid != 0' failed. The fix is straightforward. This patch also adds a test to check the basic functionality of these commands, along with testing this fix in particular. Tested on x86_64 Linux. gdb/ChangeLog: * inferior.c (detach_inferior_command): Don't call any_thread_of_process when pid is 0. (kill_inferior_command): Likewise. gdb/testsuite/ChangeLog: * gdb.base/kill-detach-inferiors-cmd.exp: New test file. * gdb.base/kill-detach-inferiors-cmd.c: New test file.
Diffstat (limited to 'gdb/testsuite/ChangeLog')
-rw-r--r--gdb/testsuite/ChangeLog5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 5022fe2..37ed043 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2015-08-15 Patrick Palka <patrick@parcs.ath.cx>
+
+ * gdb.base/kill-detach-inferiors-cmd.exp: New test file.
+ * gdb.base/kill-detach-inferiors-cmd.c: New test file.
+
2015-08-14 Doug Evans <xdje42@gmail.com>
* gdb.perf/lib/perftest/utils.py (select_file): Kill any existing