unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Eli Zaretskii <eliz@gnu.org>
To: jonas.bulow@gmail.com
Cc: 63855@debbugs.gnu.org
Subject: bug#63855: 29.0.91; Exiting gdb's python interactive mode within gud-mode exits gdb as well
Date: Sat, 03 Jun 2023 14:11:41 +0300	[thread overview]
Message-ID: <83ttvo94wi.fsf@gnu.org> (raw)
In-Reply-To: <83wn0k96iu.fsf@gnu.org> (message from Eli Zaretskii on Sat, 03 Jun 2023 13:36:41 +0300)

> Cc: 63855@debbugs.gnu.org
> Date: Sat, 03 Jun 2023 13:36:41 +0300
> From: Eli Zaretskii <eliz@gnu.org>
> 
> > From: Jonas Bülow <jonas.bulow@gmail.com>
> > Date: Sat, 3 Jun 2023 12:10:04 +0200
> > Cc: 63855@debbugs.gnu.org
> > 
> > Unfortunately, there doesn't seem to be any other way to exit python
> > interactive mode. Using exit() or quit() from python interactive mode
> > exits gdb even from the terminal.
> 
> Then I guess we need someone smart to tell how to send Ctrl-D to GDB
> so that it doesn't exit in this case.

Btw, I see a similar behavior from the console, if I start GDB with
the -i=mi option, like Emacs does: when you type Ctrl-D after invoking
"pi", you can no longer interact with GDB: any input you type exits
GDB and gets interpreted by the shell instead.

So maybe this is a GDB bug that needs to be reported to the GDB
developers?





  reply	other threads:[~2023-06-03 11:11 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2023-06-02 16:00 bug#63855: 29.0.91; Exiting gdb's python interactive mode within gud-mode exits gdb as well Jonas Bülow
2023-06-02 18:21 ` Eli Zaretskii
2023-06-03 10:10   ` Jonas Bülow
2023-06-03 10:36     ` Eli Zaretskii
2023-06-03 11:11       ` Eli Zaretskii [this message]
2023-06-03 11:22         ` Jonas Bülow

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=83ttvo94wi.fsf@gnu.org \
    --to=eliz@gnu.org \
    --cc=63855@debbugs.gnu.org \
    --cc=jonas.bulow@gmail.com \
    /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.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).