diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 7b0ef2e1f99..7adb11f4f0a 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2018-09-10 Tom Tromey + + PR python/18380: + * python/python.c (_initialize_python): Make example in "python" + help work in Python 3. + 2018-09-10 Eli Zaretskii * Makefile.in (transformed_name): Use INSTALL_SCRIPT instead of diff --git a/gdb/python/python.c b/gdb/python/python.c index 20fc674f20a..6f798a0e461 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\