From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14690 invoked by alias); 18 May 2019 13:42:03 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 14681 invoked by uid 89); 18 May 2019 13:42:02 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-2.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.1 spammy=andreas, Andreas, U*schwab, fingerprint X-HELO: mail-out.m-online.net Received: from mail-out.m-online.net (HELO mail-out.m-online.net) (212.18.0.10) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Sat, 18 May 2019 13:42:00 +0000 Received: from frontend01.mail.m-online.net (unknown [192.168.8.182]) by mail-out.m-online.net (Postfix) with ESMTP id 455mY16Bt6z1rVcf; Sat, 18 May 2019 15:41:57 +0200 (CEST) Received: from localhost (dynscan1.mnet-online.de [192.168.6.70]) by mail.m-online.net (Postfix) with ESMTP id 455mY15XsQz1qqkB; Sat, 18 May 2019 15:41:57 +0200 (CEST) Received: from mail.mnet-online.de ([192.168.8.182]) by localhost (dynscan1.mail.m-online.net [192.168.6.70]) (amavisd-new, port 10024) with ESMTP id hGMZw-Lbj8j6; Sat, 18 May 2019 15:41:56 +0200 (CEST) Received: from igel.home (ppp-46-244-162-25.dynamic.mnet-online.de [46.244.162.25]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.mnet-online.de (Postfix) with ESMTPSA; Sat, 18 May 2019 15:41:56 +0200 (CEST) Received: by igel.home (Postfix, from userid 1000) id 4D0B92C1964; Sat, 18 May 2019 15:41:56 +0200 (CEST) From: Andreas Schwab To: Alan Hayward Cc: "gdb-patches\@sourceware.org" , nd , Pedro Alves Subject: Re: [PATCH] Supress SIGTTOU when handling errors References: <20190516155150.71826-1-alan.hayward@arm.com> X-Yow: I want to read my new poem about pork brains and outer space... Date: Sat, 18 May 2019 13:42:00 -0000 In-Reply-To: <20190516155150.71826-1-alan.hayward@arm.com> (Alan Hayward's message of "Thu, 16 May 2019 15:51:53 +0000") Message-ID: <87y333ev6j.fsf@igel.home> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2019-05/txt/msg00442.txt.bz2 On Mai 16 2019, Alan Hayward wrote: > [I've seen this on and off over many months on AArch64 and Arm, and am > assuming it isn't the intended behaviour. Not sure if this should be at > tcdrain or it should be done at a higher level - eg in the terminal > handling code] > > Calls to error () can cause SIGTTOU to send gdb to the background. > > For example, on an Arm build: > (gdb) b main > Breakpoint 1 at 0x10774: file /build/gdb/testsuite/../../../src/binutils-gdb/gdb/testsuite/gdb.base/watchpoint.c, line 174. > (gdb) r > Starting program: /build/gdb/testsuite/outputs/gdb.base/watchpoint/watchpoint > > [1]+ Stopped ../gdb ./outputs/gdb.base/watchpoint/watchpoint e671cd59d74cec9f53e110ce887128d1eeadb7f2 is the first bad commit commit e671cd59d74cec9f53e110ce887128d1eeadb7f2 Author: Pedro Alves Date: Tue Jan 30 14:23:51 2018 +0000 Per-inferior target_terminal state, fix PR gdb/13211, more Andreas. -- Andreas Schwab, schwab@linux-m68k.org GPG Key fingerprint = 7578 EB47 D4E5 4D69 2510 2552 DF73 E780 A9DA AEC1 "And now for something completely different."