From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mx2.freebsd.org (mx2.freebsd.org [96.47.72.81]) by sourceware.org (Postfix) with ESMTPS id 38F1D3858426 for ; Fri, 6 Oct 2023 21:35:27 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 38F1D3858426 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=FreeBSD.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) client-signature RSA-PSS (4096 bits)) (Client CN "mx1.freebsd.org", Issuer "R3" (verified OK)) by mx2.freebsd.org (Postfix) with ESMTPS id 4S2MCy6cV2z3H6H; Fri, 6 Oct 2023 21:35:26 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Received: from smtp.freebsd.org (smtp.freebsd.org [IPv6:2610:1c1:1:606c::24b:4]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "smtp.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4S2MCy5tw7z3g5w; Fri, 6 Oct 2023 21:35:26 +0000 (UTC) (envelope-from jhb@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1696628126; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=IxLHmXcRSzGh/Zotw1MQN8y+Fp1qwTKPm3WAA5UaNdI=; b=os3pICfkZCl/sAuQh4znIxSwQ20fy/E79eImqTaKJ9Xe2VAgNBh3HxfeQ8EJcAohUi4Szt g4oHHh44GEr+i0pbg7VrkDjHSjp8La3fA6rFZNAKA2AVg7cS7CdVoIYnvM3r+192aFN79q lUO9asS9BnuZCFizOHCUKFiyZm2UYBW6+g2rCJ+rr/chaGdfQN4ioNC5x4sJqgTGN83YXj O/ml9t2OXkD9ed7r9Jv1sOa7BlMqphjNJqcc0QZS6zhNTya3QoCxSjPpVSYVfGe/Uf6Z0s 7stp6GqrA/IP9wg9uUfFEALHhCD+9TAMeWa5XyMTNlS7zS2DziPEeH3UjNzeFQ== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1696628126; a=rsa-sha256; cv=none; b=Qqa/ZM+Tvx7WkdWRTLFkU6qEVCD51wJ3eUyGkcRpq7gEhqnUGJw/WSPyD94Speca0OzoPX w59bl4BkO8PsT1EzPPnWDoI13alr1a+kcaLWzRpHymxgktEGVMf53TPKKoQO+DeFwcTNf0 uWaqywdj1Pbpm7SJ80hNgCOEAu6nhlwfLTzUdUjFlNE8CU69CeCJXxKgh2IjigHuPT8yM0 8WYC6qy7+Pf+ASSArVNLE2Z182p5rqvFVEcjqe/TSVX0XAfnZplTwSQK/kk2OvkQn5ptix RVZ4uYCo7ipkWtXBXum5CB5oZ2zktQcZ79FqrfhauFmttcJMyXAeV9+ofsfJXA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1696628126; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references; bh=IxLHmXcRSzGh/Zotw1MQN8y+Fp1qwTKPm3WAA5UaNdI=; b=qZ9kGX5Rq69dfR9NBWFx8V41XjTaYCZMA43U8vu/Bz6ZI7Fbgbq8QS4am8TS0+XFtKMh2d IqjqJp89HSDKg3yQAue1Jfinjop/5VpfyTXgfyoRFZNTFn2J7C2zqTveIuxSlnnsoxDlye Z9z3Oger9wfh1pjeQT1EvJsMTy/auUh7TNQwc94SYqNAe7rB0pvH+FbbmtI/A++DxWe78I dRcz72eObCCkORzaxqOXieZEHdxKufs6/mJ/Y0EaL9AxmBDZrd1Jz4OXaKO8ZZGcM8YdSv wawBrIYxflseVt/l6cIoMKFuJCRM/9aw/vtZY+37P5KWa8eNCgO94W+7iwSwFQ== Received: from [IPV6:2601:648:8683:39a0:355d:333f:e690:4130] (unknown [IPv6:2601:648:8683:39a0:355d:333f:e690:4130]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (Client did not present a certificate) (Authenticated sender: jhb) by smtp.freebsd.org (Postfix) with ESMTPSA id 4S2MCy2wBDzWb; Fri, 6 Oct 2023 21:35:26 +0000 (UTC) (envelope-from jhb@FreeBSD.org) Message-ID: <2e8ad2d2-a0d0-6d6b-b7f7-7068bc0a15c0@FreeBSD.org> Date: Fri, 6 Oct 2023 14:35:25 -0700 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:102.0) Gecko/20100101 Thunderbird/102.15.1 Subject: Re: GDB BoF notes - GNU Cauldron 2023 Content-Language: en-US To: Pedro Alves , gdb@sourceware.org References: <1e26c71e-e242-de11-a687-46e05586e608@palves.net> <453315e3-2483-7a1d-6ecc-23adc7d24fd3@FreeBSD.org> From: John Baldwin In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-5.9 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,NICE_REPLY_A,RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: On 9/29/23 5:57 AM, Pedro Alves wrote: > On 2023-09-27 21:27, John Baldwin wrote: > >> +1 to both of these.  One caveat about the pagination case is that I >> use custom commands that can sometimes generate a lot of output (e.g. >> walking linked-lists in a kernel crash image outputting info about >> each entry, or similar things for entries in descriptor rings).  If one >> of these scripts has a bug that causes an infinite loop, the pager >> seems to be the only way to stop the command.  In particular, Ctrl-C >> doesn't work in my experience to cancel a user command stuck in an >> infinite loop.  It might be nice to ensure that Ctrl-C can cancel both >> user and builtin commands that are either stuck or generating reams of >> output. >> > > I'm surprised to hear this, as it's already supposed to be possible to > Ctrl-C in those cases. But I won't be surprised if there's some bug > swallowing Ctrl-C somewhere. I do recall that Kevin fixed a good number > of them for the SIGTERM propagation patches. It may also be that it's the > user command that is buggy -- e.g., if it's a python command and then the > command swallows the keyboard interrupt exceptions. My memory must be a bit fuzzy here, and perhaps this only applied to much older versions of GDB. Most of my scripts date back to GDB 6 and thus are not in python. I just tried some simple tests against gdb 13 locally and was able to Ctrl-C custom commands with an infinite loop just fine. So I'm still a +1 to both suggestions, and no longer have a caveat. -- John Baldwin