From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Andreas Schwab Newsgroups: gmane.emacs.bugs Subject: bug#16745: Can't send SIGTSTP from Emacs through GDB Date: Fri, 14 Feb 2014 10:28:41 +0100 Message-ID: <87vbwi82ly.fsf@igel.home> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1392370153 15922 80.91.229.3 (14 Feb 2014 09:29:13 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 14 Feb 2014 09:29:13 +0000 (UTC) Cc: 16745@debbugs.gnu.org To: Barry OReilly Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Feb 14 10:29:20 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1WEF5B-0001ZG-PM for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Feb 2014 10:29:17 +0100 Original-Received: from localhost ([::1]:50509 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WEF5B-0003sM-B4 for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Feb 2014 04:29:17 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:51252) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WEF53-0003rM-7G for bug-gnu-emacs@gnu.org; Fri, 14 Feb 2014 04:29:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WEF4w-0004yn-Si for bug-gnu-emacs@gnu.org; Fri, 14 Feb 2014 04:29:09 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:50415) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WEF4w-0004yf-Pu for bug-gnu-emacs@gnu.org; Fri, 14 Feb 2014 04:29:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1WEF4w-00023z-9l for bug-gnu-emacs@gnu.org; Fri, 14 Feb 2014 04:29:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Andreas Schwab Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Fri, 14 Feb 2014 09:29:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16745 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 16745-submit@debbugs.gnu.org id=B16745.13923701267899 (code B ref 16745); Fri, 14 Feb 2014 09:29:02 +0000 Original-Received: (at 16745) by debbugs.gnu.org; 14 Feb 2014 09:28:46 +0000 Original-Received: from localhost ([127.0.0.1]:51597 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WEF4g-00023L-0F for submit@debbugs.gnu.org; Fri, 14 Feb 2014 04:28:46 -0500 Original-Received: from mail-out.m-online.net ([212.18.0.9]:54105) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1WEF4e-00023C-6M for 16745@debbugs.gnu.org; Fri, 14 Feb 2014 04:28:45 -0500 Original-Received: from frontend1.mail.m-online.net (unknown [192.168.8.180]) by mail-out.m-online.net (Postfix) with ESMTP id 3fQTmW0139z4KK30; Fri, 14 Feb 2014 10:28:42 +0100 (CET) Original-Received: from localhost (dynscan1.mnet-online.de [192.168.6.68]) by mail.m-online.net (Postfix) with ESMTP id 3fQTmV65qTzbbgy; Fri, 14 Feb 2014 10:28:42 +0100 (CET) X-Virus-Scanned: amavisd-new at mnet-online.de Original-Received: from mail.mnet-online.de ([192.168.8.180]) by localhost (dynscan1.mail.m-online.net [192.168.6.68]) (amavisd-new, port 10024) with ESMTP id qQ0SnqxuLxek; Fri, 14 Feb 2014 10:28:42 +0100 (CET) X-Auth-Info: egY1GCfaek621u84ab38Nvi3JaA3U2YAyEcF1UIUU84= Original-Received: from igel.home (ppp-88-217-32-146.dynamic.mnet-online.de [88.217.32.146]) by mail.mnet-online.de (Postfix) with ESMTPA; Fri, 14 Feb 2014 10:28:42 +0100 (CET) Original-Received: by igel.home (Postfix, from userid 1000) id E2CBD2C0150; Fri, 14 Feb 2014 10:28:41 +0100 (CET) X-Yow: Yow!! That's a GOOD IDEA!! Eating a whole FIELD of COUGH MEDICINE should make you feel MUCH BETTER!! In-Reply-To: (Barry OReilly's message of "Thu, 13 Feb 2014 14:33:14 -0500") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:85549 Archived-At: Barry OReilly writes: > When running GDB in Emacs and sending SIGTSTP via C-c C-z to another > Emacs ran under GDB, the Emacs under GDB does not appear to receive > the SIGTSTP. > > Recipe: > > ./src/emacs -Q > M-x gdb > gdb -i=mi src/emacs > run -Q > C-c C-z > [The Emacs under GDB is not stopped.] Here the signal is sent to terminal process group associated with the gdb command buffer, which includes the gdb process, but not the inferior (which runs in its own pty). > However, when I run GDB from the shell rather than from Emacs: > > gdb src/emacs > run -Q > C-z > [The Emacs under GDB stopped.] Here the terminal sends the signal to the foreground process group, which includes the inferior (and not gdb). This problem does not appear with the traditional gdb interface, since it closely resembles the shell setup. I recommend using gud-gdb instead. Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."