From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30152 invoked by alias); 23 Aug 2012 17:39:16 -0000 Received: (qmail 30142 invoked by uid 22791); 23 Aug 2012 17:39:14 -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:39:01 +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 424C5B40B5C; Thu, 23 Aug 2012 13:38:57 -0400 (EDT) Subject: Re: Document how to exit "python-interactive" Mime-Version: 1.0 (Apple Message framework v1084) Content-Type: text/plain; charset=us-ascii From: Khoo Yit Phang In-Reply-To: <50366654.704@redhat.com> Date: Thu, 23 Aug 2012 17:39:00 -0000 Cc: Khoo Yit Phang , gdb-patches@sourceware.org Content-Transfer-Encoding: quoted-printable Message-Id: <68AC2D73-E272-43CA-AFA4-910B58CE0B4B@cs.umd.edu> References: <50366654.704@redhat.com> To: Pedro Alves X-CSD-MailScanner-ID: 424C5B40B5C.A9B2B 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: 1346348339.79783@JyaGJMfcTuzI6P3wC5sNkg 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/msg00683.txt.bz2 Hi, On Aug 23, 2012, at 1:20 PM, Pedro Alves wrote: > On 08/23/2012 05:29 PM, Khoo Yit Phang wrote: >> Hi, >>=20 >> I'd like to update the documentation to explain how to return from "pyth= on-interactive" to GDB. >=20 > Is it possible to add a convenience python function to the gdb module to = exits python-interactive? Yes, I can redefine "exit" and "quit" interpreter built-ins to return to GD= B, rather than exiting GDB (the latter is still possible via "sys.exit"). H= ow does that sound? Yit August 23, 2012