This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug gdb/18945] gdbserver cannot be interrupted on linux when pgid doesn't match pid
- From: "xdje42 at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Tue, 15 Sep 2015 01:24:59 +0000
- Subject: [Bug gdb/18945] gdbserver cannot be interrupted on linux when pgid doesn't match pid
- Auto-submitted: auto-generated
- References: <bug-18945-4717 at http dot sourceware dot org/bugzilla/>
https://sourceware.org/bugzilla/show_bug.cgi?id=18945
--- Comment #3 from Doug Evans <xdje42 at gmail dot com> ---
Ah, so what we need to do is have gdbserver track inferior process groups.
[if one wants to keep the current scheme of sending SIGINT to the process
group,
which would be nice, though it's not clear that's the only or best solution
here.
I can also imagine preferring different solutions at different times, which gdb
itself is already doing.]
Still, the attached patch suffers from the issue that the current code tries to
avoid. As a local patch, maybe it's ok to trade one set of issues for another.
I also notice that gdb is using set_sigint_trap + pass_signal (trunk,
amd64-linux) when attached to an inferior, and this also doesn't send SIGINT to
the pgrp (setting aside the "interrupt" command, which uses
linux_nat_interrupt).
--
You are receiving this mail because:
You are on the CC list for the bug.