Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
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:20:00 -0000	[thread overview]
Message-ID: <50366654.704@redhat.com> (raw)
In-Reply-To: <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


  parent reply	other threads:[~2012-08-23 17:20 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 [this message]
2012-08-23 17:39   ` Khoo Yit Phang
2012-08-23 17:55     ` Pedro Alves

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=50366654.704@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