aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite/ChangeLog
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2017-11-06 15:36:47 +0000
committerPedro Alves <palves@redhat.com>2017-11-06 16:32:04 +0000
commit46f67f80ddfeea11d4a8134b347c74581faff8f6 (patch)
tree2484c95618ea5c01643ec5c5fdf83183507e15d4 /gdb/testsuite/ChangeLog
parentd1928160a324c1b6cd14afeecd4c81ab927883fa (diff)
downloadgdb-46f67f80ddfeea11d4a8134b347c74581faff8f6.zip
gdb-46f67f80ddfeea11d4a8134b347c74581faff8f6.tar.gz
gdb-46f67f80ddfeea11d4a8134b347c74581faff8f6.tar.bz2
Test attaching to a process that isn't a process group leader
The patch at <https://sourceware.org/ml/gdb-patches/2017-11/msg00039.html> was proposing to add an assertion to child_terminal_init that turns out would fail if you tried to attach to a process that isn't a process group leader. Since the testsuite failed to catch the problem, this commit adds a new testcase that would catch it, like: (gdb) attach 12415 Attaching to program: build/gdb/testsuite/outputs/gdb.base/attach-non-pgrp-leader/attach-non-pgrp-leader, process 12415 src/gdb/inflow.c:180: internal-error: void child_terminal_init(target_ops*): Assertion `getpgid (inf->pid) == inf->pid' failed. A problem internal to GDB has been detected, further debugging may prove unreliable. Quit this debugging session? (y or n) FAIL: gdb.base/attach-non-pgrp-leader.exp: child: attach to child (GDB internal error) gdb/testsuite/ChangeLog: 2017-11-06 Pedro Alves <palves@redhat.com> * gdb.base/attach-non-pgrp-leader.c: New. * gdb.base/attach-non-pgrp-leader.exp: New.
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 fce9deb..371e98b 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,5 +1,10 @@
2017-11-06 Pedro Alves <palves@redhat.com>
+ * gdb.base/attach-non-pgrp-leader.c: New.
+ * gdb.base/attach-non-pgrp-leader.exp: New.
+
+2017-11-06 Pedro Alves <palves@redhat.com>
+
* configure.ac: No longer check for termio.h and sgtty.h.
* configure: Regenerate.
* remote-utils.c: Include termios.h instead of gdb_termios.h.