Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Khoo Yit Phang <khooyp@cs.umd.edu>
To: gdb-patches@sourceware.org
Cc: Khoo Yit Phang <khooyp@cs.umd.edu>
Subject: Document how to exit "python-interactive"
Date: Thu, 23 Aug 2012 16:29:00 -0000	[thread overview]
Message-ID: <E4E55FE9-8E45-49D4-8DC7-31A2DC7EE56E@cs.umd.edu> (raw)

[-- Attachment #1: Type: text/plain, Size: 141 bytes --]

Hi,

I'd like to update the documentation to explain how to return from "python-interactive" to GDB.

Thanks!

Yit
August 23, 2012


[-- Attachment #2: python-interactive-exit.txt --]
[-- Type: text/plain, Size: 1445 bytes --]

# HG changeset patch
# Parent 3a8ab84de40f6a3b09615bd9f9acef671062c85c
Document how to return from "python-interactive" to GDB.

gdb/ChangeLog:

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.

diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo
--- a/gdb/doc/gdb.texinfo
+++ b/gdb/doc/gdb.texinfo
@@ -22515,7 +22515,8 @@
 @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 @code{EOF} (e.g., @samp{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
diff --git a/gdb/python/python.c b/gdb/python/python.c
--- a/gdb/python/python.c
+++ b/gdb/python/python.c
@@ -1277,7 +1277,8 @@
 	   python_interactive_command,
 #ifdef HAVE_PYTHON
 	   _("\
-Start a Python interactive prompt.\n\
+Start a Python interactive prompt.  To return to GDB, type EOF\n\
+(e.g., Ctrl-D) on an empty 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\

             reply	other threads:[~2012-08-23 16:29 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-23 16:29 Khoo Yit Phang [this message]
2012-08-23 16:47 ` Eli Zaretskii
2012-08-23 17:02   ` Khoo Yit Phang
2012-08-23 17:47     ` Khoo Yit Phang
2012-08-23 18:04       ` Eli Zaretskii
2012-08-23 18:30         ` Khoo Yit Phang
2012-08-23 17:20 ` Pedro Alves
2012-08-23 17:39   ` Khoo Yit Phang
2012-08-23 17:55     ` Pedro Alves

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=E4E55FE9-8E45-49D4-8DC7-31A2DC7EE56E@cs.umd.edu \
    --to=khooyp@cs.umd.edu \
    --cc=gdb-patches@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox