From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id LweeD+KHSWnZNRIAWB0awg (envelope-from ) for ; Mon, 22 Dec 2025 13:03:14 -0500 Authentication-Results: simark.ca; dkim=fail reason="signature verification failed" (768-bit key; unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=k39z5USV; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 326B61E0B6; Mon, 22 Dec 2025 13:03:14 -0500 (EST) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-0.8 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIM_INVALID,DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_BL_SPAMCOP_NET, RCVD_IN_DNSWL_MED,RCVD_IN_VALIDITY_CERTIFIED_BLOCKED, RCVD_IN_VALIDITY_RPBL_BLOCKED,RCVD_IN_VALIDITY_SAFE_BLOCKED autolearn=no autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [38.145.34.32]) (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 3EC5A1E08D for ; Mon, 22 Dec 2025 13:03:13 -0500 (EST) Received: from vm01.sourceware.org (localhost [127.0.0.1]) by sourceware.org (Postfix) with ESMTP id 5686C4BA2E1E for ; Mon, 22 Dec 2025 18:03:06 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 5686C4BA2E1E Authentication-Results: sourceware.org; dkim=fail reason="signature verification failed" (768-bit key, unprotected) header.d=tromey.com header.i=@tromey.com header.a=rsa-sha256 header.s=default header.b=k39z5USV Received: from omta040.useast.a.cloudfilter.net (omta040.useast.a.cloudfilter.net [44.202.169.39]) by sourceware.org (Postfix) with ESMTPS id 1458F4BA2E06 for ; Mon, 22 Dec 2025 18:02:09 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 1458F4BA2E06 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=tromey.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=tromey.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 1458F4BA2E06 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=44.202.169.39 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1766426529; cv=none; b=LmxkzGyRZ4BGkzvfnum/ggGwZyyw/GE8hCC0i5Iphtl6+slowmeDQQp1N1yo7gVSuvU97Jlvxw5QAZYdJv2yM4bpHEJM+Ac4yFZNgqtuyKYUJD7dQ0fpuM2MAmn9UX8KGVUWOp88uf7XUXh6bAK7RfuYLBfnfSHbbw4hCZQj8PI= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1766426529; c=relaxed/simple; bh=b2KRJkzJApAzHJSCcmcFmv1a0hU6z0YhHPqJMuVsIuc=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=tkUoeGrJUvbMD/zSLI3TaKzsfdz7XYOEvKetBtSWMQaK5RvVmQYoI+a2CWZwSld1PGGeZ7TJHlhaek7CzbuhOc14Xo+ETiDrfqyzCFUp7+s7+3tnY6SJx52jnioSDNYc7EmQdVy/+oHqOwbgl02J3ZsBwUzf1tCFWHZPny04td4= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1458F4BA2E06 Received: from eig-obgw-6002b.ext.cloudfilter.net ([10.0.30.203]) by cmsmtp with ESMTPS id XhtpvtJlAv724XkESveBXN; Mon, 22 Dec 2025 18:02:08 +0000 Received: from box5379.bluehost.com ([162.241.216.53]) by cmsmtp with ESMTPS id XkERv3HXBPL32XkESvIpoS; Mon, 22 Dec 2025 18:02:08 +0000 X-Authority-Analysis: v=2.4 cv=MqhS63ae c=1 sm=1 tr=0 ts=694987a0 a=ApxJNpeYhEAb1aAlGBBbmA==:117 a=ApxJNpeYhEAb1aAlGBBbmA==:17 a=wP3pNCr1ah4A:10 a=ItBw4LHWJt0A:10 a=CCpqsmhAAAAA:8 a=d05UMFJWyvzpbrvbV-8A:9 a=ul9cdbp4aOFLsgKbc677:22 a=DCx65vhANUyCzuf5D8fC:22 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=tromey.com; s=default; h=Content-Transfer-Encoding:MIME-Version:Message-ID:Date:Subject: Cc:To:From:Sender:Reply-To:Content-Type:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=v2sY8STE0/ZHXWdOPQP0SY0F9WwjN8Uy2RM7wQUFXvg=; b=k39z5USVi55xPXcMQv7xH2vL1e ODaLPyb8IvYh/eJaFFDK98VyAIHGJCuymLDHp76nnb053DNGQiLTBgdPiDSyitiplUm932r3oFDoP ZXvThckttT1yZ9y5vzWD1TOyn; Received: from 75-166-246-134.hlrn.qwest.net ([75.166.246.134]:58504 helo=localhost.localdomain) by box5379.bluehost.com with esmtpsa (TLS1.3) tls TLS_AES_256_GCM_SHA384 (Exim 4.98.2) (envelope-from ) id 1vXkER-00000001UHG-2QzD; Mon, 22 Dec 2025 11:02:07 -0700 From: Tom Tromey To: gdb-patches@sourceware.org Cc: Tom Tromey Subject: [pushed] Fix --help output Date: Mon, 22 Dec 2025 11:02:00 -0700 Message-ID: <20251222180200.3325246-1-tom@tromey.com> X-Mailer: git-send-email 2.49.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - box5379.bluehost.com X-AntiAbuse: Original Domain - sourceware.org X-AntiAbuse: Originator/Caller UID/GID - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - tromey.com X-BWhitelist: no X-Source-IP: 75.166.246.134 X-Source-L: No X-Exim-ID: 1vXkER-00000001UHG-2QzD X-Source: X-Source-Args: X-Source-Dir: X-Source-Sender: 75-166-246-134.hlrn.qwest.net (localhost.localdomain) [75.166.246.134]:58504 X-Source-Auth: tom+tromey.com X-Email-Count: 1 X-Org: HG=bhshared;ORG=bluehost; X-Source-Cap: ZWx5bnJvYmk7ZWx5bnJvYmk7Ym94NTM3OS5ibHVlaG9zdC5jb20= X-Local-Domain: yes X-CMAE-Envelope: MS4xfIr1WIOCmuUKmjm2jh3docjBO7E0Gpe6qNvwVKeXkWEAgqjqzKcR8PZ3Y5MJcmkt8crWDXqgDXLlautxZZpYQoPa+nJXwZWwR8WaAJY0tkjwBZRIt7gY FqHXejNP4qi7c8tA2Byw6mJA0fDp24jRjHqMWxRjUfQoawsAzk6VZWGMDYzjgPNfw+Wk3E1Mr9AGWA/oGggyD6WQ/coJPaIdWB0= 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 In commit 9e69a2e127940cc5, which introduced "command" styling, I accidentally made gdb's --help output mention the "stream" command, rather than the "help" command. While doing this I also found a spot where --help output was incorrectly formatted. This patch fixes this as well. I'm going to backport this to the gdb-17 branch as well. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=33737 --- gdb/main.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gdb/main.c b/gdb/main.c index e4da715134b..93ec9dbc1f2 100644 --- a/gdb/main.c +++ b/gdb/main.c @@ -1436,8 +1436,8 @@ This is the GNU debugger. Usage:\n\n\ gdb_puts (_("\ Selection of debuggee and its files:\n\n\ --args Arguments after executable-file are passed to inferior.\n\ - --no-escape-args Like --args, but arguments are not escaped.\n \ - --core=COREFILE Analyze the core dump COREFILE.\n \ + --no-escape-args Like --args, but arguments are not escaped.\n\ + --core=COREFILE Analyze the core dump COREFILE.\n\ --exec=EXECFILE Use EXECFILE as the executable.\n\ --pid=PID Attach to running process PID.\n\ --directory=DIR Search for source files in DIR.\n\ @@ -1544,7 +1544,7 @@ At startup, GDB reads the following init files and executes their commands:\n\ For more information, type \"%ps\" from within GDB, or consult the\n\ GDB manual (available as on-line info or a printed manual).\n\ "), - styled_string (command_style.style (), "stream")); + styled_string (command_style.style (), "help")); if (REPORT_BUGS_TO[0] && stream == gdb_stdout) gdb_printf (stream, _("\n\ Report bugs to %ps.\n\ -- 2.49.0