This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Document how to exit "python-interactive"
On 08/23/2012 06:38 PM, Khoo Yit Phang wrote:
> 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?
Sounds great to me.
--
Pedro Alves