summaryrefslogtreecommitdiff
path: root/gdb/python/python.c
diff options
context:
space:
mode:
authorkhooyp <khooyp>2012-08-23 18:55:24 +0000
committerkhooyp <khooyp>2012-08-23 18:55:24 +0000
commitfaaabc0d1f67ee1d284f007e3489eabafdb77c0f (patch)
tree76cca489cf09f71e9b724cff3b0d704b6fcf09bb /gdb/python/python.c
parent26abef1e9c605b23664108b75dedddbe7f9f278b (diff)
downloadgdb-faaabc0d1f67ee1d284f007e3489eabafdb77c0f.tar.gz
Document how to return from "python-interactive" to GDB.
* doc/gdb.texinfo (Python Commands): Update documentation. * python/python.c (_initialize_python): Update documentation.
Diffstat (limited to 'gdb/python/python.c')
-rw-r--r--gdb/python/python.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/gdb/python/python.c b/gdb/python/python.c
index 1e59d1e5d1f..482f53e1218 100644
--- a/gdb/python/python.c
+++ b/gdb/python/python.c
@@ -1277,7 +1277,10 @@ _initialize_python (void)
python_interactive_command,
#ifdef HAVE_PYTHON
_("\
-Start a Python interactive prompt.\n\
+Start an interactive Python prompt.\n\
+\n\
+To return to GDB, type the EOF character (e.g., Ctrl-D on an empty\n\
+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\