* [PUSHED] gdb/python: fix 'set python ignore-environment' white space
@ 2024-02-10 17:54 Andrew Burgess
0 siblings, 0 replies; only message in thread
From: Andrew Burgess @ 2024-02-10 17:54 UTC (permalink / raw)
To: gdb-patches; +Cc: Andrew Burgess
I noticed that the help text for set/show python ignore-environment
was messed up, some lines had unwanted leading white space, like this:
(gdb) help set python ignore-environment
Set whether the Python interpreter should ignore environment variables.
When enabled GDB's Python interpreter will ignore any Python related
flags in the environment. This is equivalent to passing `-E' to a
python executable.
(gdb)
This has been present since the ignore-environment setting was added
in commit:
commit edeaceda7b2f33b2c3bf78c732e67f3188e7f0b9
Date: Thu Aug 27 16:53:13 2020 +0100
gdb: startup commands to control Python extension language
Fixed in this commit.
---
gdb/python/python.c | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/gdb/python/python.c b/gdb/python/python.c
index fc1de8b9441..845abb3aa86 100644
--- a/gdb/python/python.c
+++ b/gdb/python/python.c
@@ -2434,10 +2434,10 @@ message == an error message without a stack will be printed."),
add_setshow_boolean_cmd ("ignore-environment", no_class,
&python_ignore_environment, _("\
-Set whether the Python interpreter should ignore environment variables."), _(" \
-Show whether the Python interpreter showlist ignore environment variables."), _(" \
-When enabled GDB's Python interpreter will ignore any Python related\n \
-flags in the environment. This is equivalent to passing `-E' to a\n \
+Set whether the Python interpreter should ignore environment variables."), _("\
+Show whether the Python interpreter showlist ignore environment variables."), _("\
+When enabled GDB's Python interpreter will ignore any Python related\n\
+flags in the environment. This is equivalent to passing `-E' to a\n\
python executable."),
set_python_ignore_environment,
show_python_ignore_environment,
base-commit: e81fb24f1c5374479d3af0930c140df0021221ae
--
2.25.4
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2024-02-10 17:55 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2024-02-10 17:54 [PUSHED] gdb/python: fix 'set python ignore-environment' white space Andrew Burgess
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).