From e3480f4aa1c96384e52740884918ad0ba6228830 Mon Sep 17 00:00:00 2001 From: Yit Phang Khoo Date: Thu, 23 Aug 2012 18:55:25 +0000 Subject: Document how to return from "python-interactive" to GDB. * doc/gdb.texinfo (Python Commands): Update documentation. * python/python.c (_initialize_python): Update documentation. --- gdb/doc/gdb.texinfo | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gdb/doc') 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 -- cgit v1.1