]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
Document how to return from "python-interactive" to GDB.
authorYit Phang Khoo <khooyp@sourceware.org>
Thu, 23 Aug 2012 18:55:25 +0000 (18:55 +0000)
committerYit Phang Khoo <khooyp@sourceware.org>
Thu, 23 Aug 2012 18:55:25 +0000 (18:55 +0000)
* doc/gdb.texinfo (Python Commands): Update documentation.
* python/python.c (_initialize_python): Update documentation.

gdb/ChangeLog
gdb/doc/gdb.texinfo
gdb/python/python.c

index 8c304b08fb33da4daa03bc019122cdd5c585b74d..93a993c6d2e437277cde05add9698da1a42d1004 100644 (file)
@@ -1,3 +1,9 @@
+2012-08-23  Khoo Yit Phang <khooyp@cs.umd.edu>
+
+       Document how to return from "python-interactive" to GDB.
+       * doc/gdb.texinfo (Python Commands): Update documentation.
+       * python/python.c (_initialize_python): Update documentation.
+
 2012-08-23  Pedro Alves  <palves@redhat.com>
 
        * infrun.c (_initialize_infrun) <handle command help text>:
index 4410a4778b79b5dfc15cd92bdfbe729faca678b2..534b2184cc774a17da7e495894a1f196af872e62 100644 (file)
@@ -22515,7 +22515,8 @@ and one related setting:
 @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
index 1e59d1e5d1fc1fd39aed50082b73198961be9ca5..482f53e1218616f216729b4fc6f269e9ce4ccb24 100644 (file)
@@ -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\