aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/python.c
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2018-09-08 09:13:37 -0600
committerTom Tromey <tom@tromey.com>2018-09-10 07:44:24 -0600
commita154931ef1ef1c588c0e7da5e5fd4658c5dd28f5 (patch)
tree89f6780201460875e2b1356ec06011289000898f /gdb/python/python.c
parent60c0454d3dda99635d331f6002f3f04fe34546a7 (diff)
downloadgdb-a154931ef1ef1c588c0e7da5e5fd4658c5dd28f5.zip
gdb-a154931ef1ef1c588c0e7da5e5fd4658c5dd28f5.tar.gz
gdb-a154931ef1ef1c588c0e7da5e5fd4658c5dd28f5.tar.bz2
Fix help text for "python" command
PR python/18380 points out that the example in the "help python" text will only work in Python 2. This changes the example to be valid syntax for both Python 2 and Python 3. gdb/ChangeLog 2018-09-10 Tom Tromey <tom@tromey.com> PR python/18380: * python/python.c (_initialize_python): Make example in "python" help work in Python 3.
Diffstat (limited to 'gdb/python/python.c')
-rw-r--r--gdb/python/python.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/python/python.c b/gdb/python/python.c
index 20fc674..6f798a0 100644
--- a/gdb/python/python.c
+++ b/gdb/python/python.c
@@ -1875,7 +1875,7 @@ Evaluate a Python command.\n\
\n\
The command can be given as an argument, for instance:\n\
\n\
- python print 23\n\
+ python print (23)\n\
\n\
If no argument is given, the following lines are read and used\n\
as the Python commands. Type a line containing \"end\" to indicate\n\