diff options
author | Yit Phang Khoo <khooyp@sourceware.org> | 2012-08-23 18:55:25 +0000 |
---|---|---|
committer | Yit Phang Khoo <khooyp@sourceware.org> | 2012-08-23 18:55:25 +0000 |
commit | e3480f4aa1c96384e52740884918ad0ba6228830 (patch) | |
tree | adedeb22cab6e4f6a005b7f90ea1b569500d6aa9 /gdb/doc | |
parent | dfbd5e7bbbf503e8e0f3bdcb0a15ed7ee605a5f3 (diff) | |
download | gdb-e3480f4aa1c96384e52740884918ad0ba6228830.zip gdb-e3480f4aa1c96384e52740884918ad0ba6228830.tar.gz gdb-e3480f4aa1c96384e52740884918ad0ba6228830.tar.bz2 |
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/doc')
-rw-r--r-- | gdb/doc/gdb.texinfo | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index 4410a47..534b218 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -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 |