From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id GCh7DZMtuWCCJQAAWB0awg (envelope-from ) for ; Thu, 03 Jun 2021 15:29:23 -0400 Received: by simark.ca (Postfix, from userid 112) id 30D121F163; Thu, 3 Jun 2021 15:29:23 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,MAILING_LIST_MULTI,RDNS_DYNAMIC,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (ip-8-43-85-97.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 74B4B1E01F for ; Thu, 3 Jun 2021 15:29:22 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 32088383D03C for ; Thu, 3 Jun 2021 19:29:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 32088383D03C DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1622748562; bh=mOUaLI9otxmVCBsLBtj8sijDnle1z5SHLYMoHQrblRE=; h=Date:To:In-Reply-To:Subject:References:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:Cc: From; b=Rfg/+UY5QMhNPvzFbFppda57sA9Jgl/fNVqKTqB5Bl2lazTEYGXRpzOhTpHk+or9J RxPyhtFKCPlYEe7zwGdkzBlu914zkY4XQUH5KppQgSDck4csDMKRRFIuRf904eUitc XY5i7rKMxANOt17zYZ9g/BB2eF3mrCtV8yBOS5zY= Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by sourceware.org (Postfix) with ESMTPS id 43B593839C63 for ; Thu, 3 Jun 2021 19:29:03 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org 43B593839C63 Received: from fencepost.gnu.org ([2001:470:142:3::e]:36834) by eggs.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lot1a-0003wT-A3; Thu, 03 Jun 2021 15:29:02 -0400 Received: from 84.94.185.95.cable.012.net.il ([84.94.185.95]:1212 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lot1Z-0007wW-T6; Thu, 03 Jun 2021 15:29:02 -0400 Date: Thu, 03 Jun 2021 22:28:51 +0300 Message-Id: <837djawxvw.fsf@gnu.org> To: Pedro Alves In-Reply-To: <20210603190243.2609886-18-pedro@palves.net> (message from Pedro Alves on Thu, 3 Jun 2021 20:02:43 +0100) Subject: Re: [PATCH 17/17] Document pseudo-terminal and interrupting changes References: <20210603190243.2609886-1-pedro@palves.net> <20210603190243.2609886-18-pedro@palves.net> X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Eli Zaretskii via Gdb-patches Reply-To: Eli Zaretskii Cc: gdb-patches@sourceware.org Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" > From: Pedro Alves > Date: Thu, 3 Jun 2021 20:02:43 +0100 > > This documents changes done in previous patches: > > - the fact that on GNU/Linux, GDB creates a pseudo-terminal for the > inferior instead of juggling terminal settings. > > - That when the inferior and GDB share the terminal, you can't > interrupt some programs with Ctrl-C. > > - That on GNU/Linux, you may get "Program stopped." instead of > "Program received SIGINT" in response to Ctrl-C. > > - That run+detach may result in the program dying with SIGHUP. > > I was surprised that we do not currently have a node/section > specifically to talk about interrupting programs. Thus I've added a > new "Interrupting" section under the "Stopping and Continuing" > chapter, with some xrefs to other sections. > > gdb/ChangeLog: > yyyy-mm-dd Pedro Alves > > * NEWS: Document pseudo-terminal, "tty /dev/tty" and Ctrl-C/SIGINT > changes. Document "set/show debug managed-tty". > > gdb/doc/ChangeLog: > yyyy-mm-dd Pedro Alves > > * gdb.texinfo (Input/Output): Document that GDB may start a > program associated with a pseudo-terminal. Document "tty > /dev/tty". Document "set/show debug managed-tty". > (Attach): Document what happens on run+detach on systems where GDB > creates a pseudo-terminal for the inferior. > (Stopping and Continuing): Add new Interrupting node. > (Background Execution): Add anchor. > (Features for Debugging MS Windows PE Executables): Add anchor. This is okay, with one gotcha: > +Depending on operating system and configuration, this results in > +interrupting the program with either a @code{SIGINT} signal: > + > +@smallexample > +Program received signal SIGINT, Interrupt. > +@end smallexample > + > +or plainly suspending the program: You want @noindent before the last line above. Thanks.