Document how to return from "python-interactive" to GDB.
* doc/gdb.texinfo (Python Commands): Update documentation. * python/python.c (_initialize_python): Update documentation.
This commit is contained in:
parent
dfbd5e7bbb
commit
e3480f4aa1
3 changed files with 12 additions and 2 deletions
|
@ -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>
|
2012-08-23 Pedro Alves <palves@redhat.com>
|
||||||
|
|
||||||
* infrun.c (_initialize_infrun) <handle command help text>:
|
* infrun.c (_initialize_infrun) <handle command help text>:
|
||||||
|
|
|
@ -22515,7 +22515,8 @@ and one related setting:
|
||||||
@item python-interactive @r{[}@var{command}@r{]}
|
@item python-interactive @r{[}@var{command}@r{]}
|
||||||
@itemx pi @r{[}@var{command}@r{]}
|
@itemx pi @r{[}@var{command}@r{]}
|
||||||
Without an argument, the @code{python-interactive} command can be used
|
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
|
Alternatively, a single-line Python command can be given as an
|
||||||
argument and evaluated. If the command is an expression, the result
|
argument and evaluated. If the command is an expression, the result
|
||||||
|
|
|
@ -1277,7 +1277,10 @@ _initialize_python (void)
|
||||||
python_interactive_command,
|
python_interactive_command,
|
||||||
#ifdef HAVE_PYTHON
|
#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\
|
\n\
|
||||||
Alternatively, a single-line Python command can be given as an\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\
|
argument, and if the command is an expression, the result will be\n\
|
||||||
|
|
Loading…
Reference in a new issue