From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 64825 invoked by alias); 23 Oct 2018 10:55:44 -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 64813 invoked by uid 89); 23 Oct 2018 10:55:43 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-0.9 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY,SPF_HELO_PASS autolearn=no version=3.3.2 spammy=Hx-languages-length:478 X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Tue, 23 Oct 2018 10:55:43 +0000 Received: from smtp.corp.redhat.com (int-mx08.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id EF1A6307D84F; Tue, 23 Oct 2018 10:55:41 +0000 (UTC) Received: from [127.0.0.1] (ovpn04.gateway.prod.ext.ams2.redhat.com [10.39.146.4]) by smtp.corp.redhat.com (Postfix) with ESMTP id 23D95177A2; Tue, 23 Oct 2018 10:55:40 +0000 (UTC) Subject: Re: [PATCH 3/3] Avoid GDB SIGTTOU on catch exec + set follow-exec-mode new (PR 23368) To: Simon Marchi , Simon Marchi , "gdb-patches@sourceware.org" References: <20181016033835.17594-1-simon.marchi@polymtl.ca> <20181016033835.17594-3-simon.marchi@polymtl.ca> <37bde004-853a-3ccc-3777-03cc43b36147@redhat.com> <5375d6a4-8b4d-af3a-2b37-f0b88363d5d3@polymtl.ca> <9e8dd186-86bd-5a6a-16a1-5aab96725a7b@redhat.com> From: Pedro Alves Message-ID: <2820dfda-0e6c-5120-45ca-4a4e54b44f08@redhat.com> Date: Tue, 23 Oct 2018 10:55:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-SW-Source: 2018-10/txt/msg00501.txt.bz2 On 10/23/2018 10:48 AM, Simon Marchi wrote: > On 2018-10-22 4:56 p.m., Pedro Alves wrote: >> Yes. Looks good. I think you could avoid the >> copying-with-garanteed-deleting by adding a "swap_terminal_info" function >> that swaps the terminal_info and terminal_state between the inferiors. > > Like this? (commit message and ChangeLog to be updated) > Yes, like that. Thanks, Pedro Alves