From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 107342 invoked by alias); 15 Sep 2015 01:25:01 -0000 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org Received: (qmail 107294 invoked by uid 48); 15 Sep 2015 01:25:00 -0000 From: "xdje42 at gmail dot com" To: gdb-prs@sourceware.org Subject: [Bug gdb/18945] gdbserver cannot be interrupted on linux when pgid doesn't match pid Date: Tue, 15 Sep 2015 01:25:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: gdb X-Bugzilla-Version: 7.10 X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: xdje42 at gmail dot com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-q3/txt/msg00290.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=18945 --- Comment #3 from Doug Evans --- 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.