* [pushed] Fix --help output
@ 2025-12-22 18:02 Tom Tromey
2025-12-22 18:18 ` Tom Tromey
0 siblings, 1 reply; 2+ messages in thread
From: Tom Tromey @ 2025-12-22 18:02 UTC (permalink / raw)
To: gdb-patches; +Cc: Tom Tromey
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [pushed] Fix --help output
2025-12-22 18:02 [pushed] Fix --help output Tom Tromey
@ 2025-12-22 18:18 ` Tom Tromey
0 siblings, 0 replies; 2+ messages in thread
From: Tom Tromey @ 2025-12-22 18:18 UTC (permalink / raw)
To: Tom Tromey; +Cc: gdb-patches
>>>>> "Tom" == Tom Tromey <tom@tromey.com> writes:
Tom> In commit 9e69a2e127940cc5, which introduced "command" styling, I
Tom> accidentally made gdb's --help output mention the "stream" command,
Tom> rather than the "help" command.
Tom> While doing this I also found a spot where --help output was
Tom> incorrectly formatted. This patch fixes this as well.
This particular part isn't on the gdb-17 branch, so naturally I'm also
omitting it from the backport.
Tom
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-12-22 18:18 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-12-22 18:02 [pushed] Fix --help output Tom Tromey
2025-12-22 18:18 ` Tom Tromey
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox