# HG changeset patch # Parent 3a8ab84de40f6a3b09615bd9f9acef671062c85c Document how to return from "python-interactive" to GDB. gdb/ChangeLog: 2012-08-23 Khoo Yit Phang Document how to return from "python-interactive" to GDB. * doc/gdb.texinfo (Python Commands): Update documentation. * python/python.c (_initialize_python): Update documentation. diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -22515,7 +22515,8 @@ @item python-interactive @r{[}@var{command}@r{]} @itemx pi @r{[}@var{command}@r{]} Without an argument, the @code{python-interactive} command can be used -to start an interactive Python prompt. +to start an interactive Python prompt. To return to @value{GDBN}, +type the @code{EOF} character (e.g., @kbd{Ctrl-D} on an empty prompt). Alternatively, a single-line Python command can be given as an argument and evaluated. If the command is an expression, the result diff --git a/gdb/python/python.c b/gdb/python/python.c --- a/gdb/python/python.c +++ b/gdb/python/python.c @@ -1277,7 +1277,8 @@ python_interactive_command, #ifdef HAVE_PYTHON _("\ -Start a Python interactive prompt.\n\ +Start an interactive Python prompt. To return to GDB, type the EOF\n\ +character (e.g., Ctrl-D on an empty prompt).\n\ \n\ Alternatively, a single-line Python command can be given as an\n\ argument, and if the command is an expression, the result will be\n\