From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 3766 invoked by alias); 23 Aug 2012 16:29:42 -0000 Received: (qmail 3529 invoked by uid 22791); 23 Aug 2012 16:29:37 -0000 X-SWARE-Spam-Status: No, hits=-2.1 required=5.0 tests=BAYES_00,RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from server-nat-6.cs.umd.edu (HELO bacon.cs.umd.edu) (128.8.127.149) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 23 Aug 2012 16:29:23 +0000 Received: from wireless-206-196-166-174.umd.edu (wireless-206-196-166-174.umd.edu [206.196.166.174]) (Authenticated sender: khooyp) by bacon.cs.umd.edu (Postfix) with ESMTPSA id E679AB4027A; Thu, 23 Aug 2012 12:29:17 -0400 (EDT) From: Khoo Yit Phang Content-Type: multipart/mixed; boundary=Apple-Mail-8-212453829 Subject: Document how to exit "python-interactive" Date: Thu, 23 Aug 2012 16:29:00 -0000 Message-Id: Cc: Khoo Yit Phang To: gdb-patches@sourceware.org Mime-Version: 1.0 (Apple Message framework v1084) X-CSD-MailScanner-ID: E679AB4027A.AAD96 X-CSD-MailScanner: Found to be clean X-CSD-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=-50, required 5, autolearn=not spam, ALL_TRUSTED -50.00) X-CSD-MailScanner-From: khooyp@cs.umd.edu X-CSD-MailScanner-Watermark: 1346344158.55583@X0EUs3qBvyC1xnrssj4Yaw Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2012-08/txt/msg00673.txt.bz2 --Apple-Mail-8-212453829 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Content-length: 134 Hi, I'd like to update the documentation to explain how to return from "python-= interactive" to GDB. Thanks! Yit August 23, 2012 --Apple-Mail-8-212453829 Content-Disposition: attachment; filename=python-interactive-exit.txt Content-Type: text/plain; name="python-interactive-exit.txt" Content-Transfer-Encoding: 7bit Content-length: 1445 # HG changeset patch # Parent 3a8ab84de40f6a3b09615bd9f9acef671062c85c Document how to return from "python-interactive" to GDB. gdb/ChangeLog: 2012-08-23 Khoo Yit Phang 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\ --Apple-Mail-8-212453829--