From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 673 invoked by alias); 23 Aug 2012 17:47:53 -0000 Received: (qmail 665 invoked by uid 22791); 23 Aug 2012 17:47:52 -0000 X-SWARE-Spam-Status: No, hits=-3.4 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,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 17:47:38 +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 5407FB4027A; Thu, 23 Aug 2012 13:47:36 -0400 (EDT) Subject: Re: Document how to exit "python-interactive" Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: multipart/mixed; boundary=Apple-Mail-11-217152359 From: Khoo Yit Phang In-Reply-To: <4DE79193-BBBE-46B5-854A-9CB70CC6B4FC@cs.umd.edu> Date: Thu, 23 Aug 2012 17:47:00 -0000 Cc: Eli Zaretskii , gdb-patches@sourceware.org Message-Id: <3F1FEAEA-E556-4270-9DF1-874ED180332A@cs.umd.edu> References: <83boi1a72i.fsf@gnu.org> <4DE79193-BBBE-46B5-854A-9CB70CC6B4FC@cs.umd.edu> To: Khoo Yit Phang X-CSD-MailScanner-ID: 5407FB4027A.A9B28 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: 1346348856.47106@O8bKcXMHxbZXDS9ogMmwGw 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/msg00684.txt.bz2 --Apple-Mail-11-217152359 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii Content-length: 196 Hi, Here's the updated patch. I made one other minor change from "Python intera= ctive prompt" to "interactive Python prompt" for consistency. Does it look = good? Thanks! Yit August 23, 2012 --Apple-Mail-11-217152359 Content-Disposition: attachment; filename=python-interactive-exit.txt Content-Type: text/plain; name="python-interactive-exit.txt" Content-Transfer-Encoding: 7bit Content-length: 1473 # 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 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 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 an interactive Python prompt. To return to GDB, type the EOF\n\ +character (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-11-217152359--