From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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 cc: gdb-patches@sourceware.org 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-Spam-Status: No, score=-3488.8 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS, KAM_INFOUSMEBIZ, KAM_LAZY_DOMAIN_SECURITY, SPF_HELO_NONE, SPF_NONE, TXREP autolearn=no autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on server2.sourceware.org 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: , X-List-Received-Date: Thu, 08 Jul 2021 23:05:27 -0000 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