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: Pedro Alves <palves at redhat dot com>
- To: Khoo Yit Phang <khooyp at cs dot umd dot edu>
- Cc: gdb-patches at sourceware dot org
- Date: Thu, 23 Aug 2012 18:20:20 +0100
- Subject: Re: Document how to exit "python-interactive"
- References: <E4E55FE9-8E45-49D4-8DC7-31A2DC7EE56E@cs.umd.edu>
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?
ctrl-d also exits gdb when typed at gdb's prompt. So if you type one c-d too much,
you'll quit gdb by mistake (unless you're debugging a program, in which case
gdb at least confirms).
(Related, I set this on my .bashrc , because of hitting ^D at the wrong shell
too many times:
# Don't use ^D to exit
set -o ignoreeof
)
--
Pedro Alves