GNU bug report logs - #63855
29.0.91; Exiting gdb's python interactive mode within gud-mode exits gdb as well

Previous Next

Package: emacs;

Reported by: Jonas Bülow <jonas.bulow <at> gmail.com>

Date: Fri, 2 Jun 2023 17:58:02 UTC

Severity: normal

Found in version 29.0.91

Full log


Message #8 received at 63855 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: Jonas Bülow <jonas.bulow <at> gmail.com>
Cc: 63855 <at> debbugs.gnu.org
Subject: Re: bug#63855: 29.0.91;
 Exiting gdb's python interactive mode within gud-mode exits gdb as
 well
Date: Fri, 02 Jun 2023 21:21:10 +0300
> From: Jonas Bülow <jonas.bulow <at> gmail.com>
> Date: Fri, 2 Jun 2023 18:00:33 +0200
> 
> 0. (start with emacs -Q)
> 1. M-x gdb <RET>
> 2. Run gdb (like this): gdb -i=mi <RET>
> 3. Enter python interactive mode with: pi <RET>
> 4. Try to exit gdb's python interactive mode with Ctrl-D
> 
> Expected: get back to gdb prompt
> 
> Actual: gdb exits with "Debugger finished"

AFAIR, this is the best we can do in that situation.  You should exit
python interactive mode by other means, if you want to stay inside
GDB.  Sorry.

(Of course, if someone knows how to teach gdb-mi.el to distinguish
between the two possible interpretations of EOF, patches to do so will
be welcome.)




This bug report was last modified 2 years and 14 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.