From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs 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 Message-ID: <83ttvo94wi.fsf@gnu.org> References: <83pm6dafop.fsf@gnu.org> <83wn0k96iu.fsf@gnu.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="8681"; mail-complaints-to="usenet@ciao.gmane.io" Cc: 63855@debbugs.gnu.org To: jonas.bulow@gmail.com Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sat Jun 03 13:11:25 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1q5PAJ-000275-G5 for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 03 Jun 2023 13:11:23 +0200 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1q5PA0-0000QQ-Kr; Sat, 03 Jun 2023 07:11:04 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q5P9y-0000Pu-Oe for bug-gnu-emacs@gnu.org; Sat, 03 Jun 2023 07:11:02 -0400 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1q5P9y-0004Ph-EW for bug-gnu-emacs@gnu.org; Sat, 03 Jun 2023 07:11:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1q5P9y-0001sx-9p for bug-gnu-emacs@gnu.org; Sat, 03 Jun 2023 07:11:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sat, 03 Jun 2023 11:11:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 63855 X-GNU-PR-Package: emacs Original-Received: via spool by 63855-submit@debbugs.gnu.org id=B63855.16857906607239 (code B ref 63855); Sat, 03 Jun 2023 11:11:02 +0000 Original-Received: (at 63855) by debbugs.gnu.org; 3 Jun 2023 11:11:00 +0000 Original-Received: from localhost ([127.0.0.1]:41638 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q5P9u-0001sg-QT for submit@debbugs.gnu.org; Sat, 03 Jun 2023 07:10:59 -0400 Original-Received: from eggs.gnu.org ([209.51.188.92]:53464) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1q5P9s-0001sP-Et for 63855@debbugs.gnu.org; Sat, 03 Jun 2023 07:10:57 -0400 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q5P9n-0004Lr-15; Sat, 03 Jun 2023 07:10:51 -0400 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=MIME-version:References:Subject:In-Reply-To:To:From: Date; bh=Ek5fFGfP/PvPUqxXiV4ITRJFjo9cD12urNA8jqeJawk=; b=E4r3IWqkU9g93C9p9q0E gMeC7309RXSHXdhaId8gOj/4GY1xr9OFZdlsZrz6Wp+ZKNu1+lzlTOkzr9q7oEK1LLq1KmRNdasz3 9fQT6u1Ej+cj4ZM5ZgTEIEHg6ens50gZINivk5g+pwI8wq6aNsvjEbWhp87DKbjSf5VnKk1orU/nN 6G7CpNv+Tx3wy3hMA81WxK7Ce5kuPZoCzh8l25GHnuhogSKWGCMwpdxZFMVQZQ3Zf3lvZMGJeK+eJ 3mZ+iOqUIkq7r0pq5ac/a9In0jRzkhkU0Nb+ja6FFeHaje3Nct1wwTpYBsqoQGyBjYi4p9yxvRHj2 DWmJu3xinjfI5A==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1q5P9m-0001rt-H8; Sat, 03 Jun 2023 07:10:50 -0400 In-Reply-To: <83wn0k96iu.fsf@gnu.org> (message from Eli Zaretskii on Sat, 03 Jun 2023 13:36:41 +0300) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:262820 Archived-At: > Cc: 63855@debbugs.gnu.org > Date: Sat, 03 Jun 2023 13:36:41 +0300 > From: Eli Zaretskii > > > From: Jonas Bülow > > 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?