From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id kEpTJ8GE52CxCQAAWB0awg (envelope-from ) for ; Thu, 08 Jul 2021 19:05:37 -0400 Received: by simark.ca (Postfix, from userid 112) id 9EC9A1F1F2; Thu, 8 Jul 2021 19:05:37 -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.6 required=5.0 tests=MAILING_LIST_MULTI, RDNS_DYNAMIC 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 EA2AF1E54D for ; Thu, 8 Jul 2021 19:05:36 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 753043AAA08C for ; Thu, 8 Jul 2021 23:05:36 +0000 (GMT) Received: from angie.orcam.me.uk (angie.orcam.me.uk [IPv6:2001:4190:8020::34]) by sourceware.org (Postfix) with ESMTP id A701D3844026 for ; Thu, 8 Jul 2021 23:05:25 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org A701D3844026 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=orcam.me.uk Authentication-Results: sourceware.org; spf=none smtp.mailfrom=orcam.me.uk Received: by angie.orcam.me.uk (Postfix, from userid 500) id 5536792009C; Fri, 9 Jul 2021 01:05:24 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by angie.orcam.me.uk (Postfix) with ESMTP id 47A3192009B; Fri, 9 Jul 2021 01:05:24 +0200 (CEST) Date: Fri, 9 Jul 2021 01:05:24 +0200 (CEST) From: "Maciej W. Rozycki" To: Pedro Alves Subject: Re: [PATCH v2 15/16] GNU/Linux: Interrupt/Ctrl-C with SIGSTOP instead of SIGINT [PR gdb/9425, PR gdb/14559] In-Reply-To: <20210614212410.1612666-16-pedro@palves.net> Message-ID: References: <20210614212410.1612666-1-pedro@palves.net> <20210614212410.1612666-16-pedro@palves.net> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII 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: , Cc: gdb-patches@sourceware.org Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" On Mon, 14 Jun 2021, Pedro Alves wrote: > This commit has a user-visible behavior change in all-stop mode -- > when you interrupt the program with Ctrl-C, instead of: > > Thread 1 "threads" received signal SIGINT, Interrupt. > > You'll get: > > Thread 1 "threads" stopped. > > Which is what you already got with the "interrupt" command in non-stop > mode. > > If you really want to pass a SIGINT to the program, you can then issue: > > (gdb) signal SIGINT Can you still do: (gdb) handle SIGINT nostop noprint noignore instead to make SIGINT go through to the debuggee right away without GDB getting bothered in any way? I've had a need to use such a setup numerous times (normally you can still hit ^Z or ^\ to get GDB interrupted with SIGTSTP or SIGQUIT respectively instead). Maciej