This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Document how to exit "python-interactive"
- From: Khoo Yit Phang <khooyp at cs dot umd dot edu>
- To: Pedro Alves <palves at redhat dot com>
- Cc: Khoo Yit Phang <khooyp at cs dot umd dot edu>, gdb-patches at sourceware dot org
- Date: Thu, 23 Aug 2012 13:38:56 -0400
- Subject: Re: Document how to exit "python-interactive"
- References: <E4E55FE9-8E45-49D4-8DC7-31A2DC7EE56E@cs.umd.edu> <50366654.704@redhat.com>
Hi,
On Aug 23, 2012, at 1:20 PM, Pedro Alves wrote:
> On 08/23/2012 05:29 PM, Khoo Yit Phang wrote:
>> Hi,
>>
>> I'd like to update the documentation to explain how to return from "python-interactive" to GDB.
>
> 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 GDB, rather than exiting GDB (the latter is still possible via "sys.exit"). How does that sound?
Yit
August 23, 2012