From: Pedro Alves <palves@redhat.com>
To: Khoo Yit Phang <khooyp@cs.umd.edu>
Cc: gdb-patches@sourceware.org
Subject: Re: Document how to exit "python-interactive"
Date: Thu, 23 Aug 2012 17:55:00 -0000 [thread overview]
Message-ID: <50366E88.8080202@redhat.com> (raw)
In-Reply-To: <68AC2D73-E272-43CA-AFA4-910B58CE0B4B@cs.umd.edu>
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
prev parent reply other threads:[~2012-08-23 17:55 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-08-23 16:29 Khoo Yit Phang
2012-08-23 16:47 ` Eli Zaretskii
2012-08-23 17:02 ` Khoo Yit Phang
2012-08-23 17:47 ` Khoo Yit Phang
2012-08-23 18:04 ` Eli Zaretskii
2012-08-23 18:30 ` Khoo Yit Phang
2012-08-23 17:20 ` Pedro Alves
2012-08-23 17:39 ` Khoo Yit Phang
2012-08-23 17:55 ` Pedro Alves [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=50366E88.8080202@redhat.com \
--to=palves@redhat.com \
--cc=gdb-patches@sourceware.org \
--cc=khooyp@cs.umd.edu \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox