From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id UA3aD8rzwmcHzwEAWB0awg (envelope-from ) for ; Sat, 01 Mar 2025 06:47:22 -0500 Authentication-Results: simark.ca; dkim=pass (2048-bit key; unprotected) header.d=gnu.org header.i=@gnu.org header.a=rsa-sha256 header.s=fencepost-gnu-org header.b=FRdSConU; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 1EB7B1E105; Sat, 1 Mar 2025 06:47:22 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-6.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=4.0.0 Received: from server2.sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id DFAB51E08E for ; Sat, 1 Mar 2025 06:47:19 -0500 (EST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 7D0943858406 for ; Sat, 1 Mar 2025 11:47:19 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7D0943858406 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=gnu.org header.i=@gnu.org header.a=rsa-sha256 header.s=fencepost-gnu-org header.b=FRdSConU Received: from eggs.gnu.org (eggs.gnu.org [IPv6:2001:470:142:3::10]) by sourceware.org (Postfix) with ESMTPS id 0AF913858D20 for ; Sat, 1 Mar 2025 11:46:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 0AF913858D20 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gnu.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gnu.org ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 0AF913858D20 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2001:470:142:3::10 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1740829605; cv=none; b=LaKYhWS3pocYZICAY+LFuM8AOTok8G/Rldf0Eva7AwIam4Yz6+2KbvZx2Bojr6gtiiXFYteEYWrslyk9NKXop3V1dpTo4J5LwuQY1gwkr2oC62X05zNLzbOqtWymYyhIPuMSMTk6zGUa5ElCebK2pKbt5qP9rn5x+/xxGxgErFo= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1740829605; c=relaxed/simple; bh=B1bwJEnLG31wHjAupcNtLipeCD5/iHHx+4mBlJPHx5E=; h=DKIM-Signature:Date:Message-Id:From:To:Subject; b=Phl3GiYI3fUwV0VejT/2RFIZ7xxV+fQr8c3Q3Ajg//uoDLD2yVI8tYPnW3sPpuYdF+tCQPy1Mcs7SOPwRQR9SP9uc7XfNYWUgfuP6E0LWAr2awdvanmqYXX6j7IVD1Lqqn5hxfuzsDxKLYmHk+eliEaCHnfyaQFRb30wt5ly+mQ= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 0AF913858D20 Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1toLIp-0002rU-Bo; Sat, 01 Mar 2025 06:46:43 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=8Yva7iD4AQ5hsVGcBxkCP09RQMZTWFRQ5oYjeETQBVU=; b=FRdSConU3Ex4 x1obul1OpcSXK5MB2iOSoz0ciZ8HAMlEUCPhUviKtf16wR35utwkVyROJZzUg0yF6EvxtqCsANiA/ 6YXDH0tmEcj3MWh5aS9MFscFFIEYLNidi8uMEM+ns1/00F4fDI7+moW97kSN6PvINY2B5IDrCjxsc w4sd/kmZo6SG8jcAuhcVeIJgRWVixLFxVdMZm9VubeB12McEQ0oVk5WrmbJQPVGJfxxr/sG4Ned+d f/49xvSK8rVUZ/92GTSHJvbdNbuNbaAr8eT0vyY4jCJdip+cI9B+0u+7XJL6/tGL2wdXbFqs21IUz GvD+a7sM84md8vA4mhnGRA==; Date: Sat, 01 Mar 2025 13:46:39 +0200 Message-Id: <865xktq8gw.fsf@gnu.org> From: Eli Zaretskii To: Gregory Heytings Cc: gdb-patches@sourceware.org In-Reply-To: (message from Gregory Heytings on Sat, 01 Mar 2025 10:39:06 +0000) Subject: Re: [PATCH] gdb: add load-libthread-db-quietly option References: X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org > Date: Sat, 01 Mar 2025 10:39:06 +0000 > From: Gregory Heytings > > In line with the Unix tradition in which no messages are displayed when no > error happens, I suggest the attached patch, with which users could "set > load-libthread-db-quietly off" in their .gdbinit file. You mean, "on", right? Because "off" is the default. > Setting that option disables the "Thread debugging using libthread_db > enabled" and "Using host libthread_db library..." messages. > --- > gdb/doc/gdb.texinfo | 7 +++++++ > gdb/linux-thread-db.c | 29 ++++++++++++++++++++++++++--- > 2 files changed, 33 insertions(+), 3 deletions(-) There should be a NEWS entry about this new knob. > +@kindex set load-libthread-db-quietly > +@kindex show load-libthread-db-quietly > +@item set load-libthread-db-quietly > +@itemx show load-libthread-db-quietly > +Turns on or off display of messages when @code{libthread_db} is loaded. > +The default is @code{off}. This description seems to be backwards, no? The option, when ON, causes the messages NOT to be displayed, right? So I suggest Turns on or off quiet loading of @code{libthread_db}. When @code{on}, @value{GDBN} loads @code{libthread_db} quietly, without any messages. The default is @code{off}. Thanks. Reviewed-By: Eli Zaretskii