From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 113536 invoked by alias); 24 Jan 2020 07:00:35 -0000 Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org Received: (qmail 113487 invoked by uid 89); 24 Jan 2020 07:00:29 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-3.8 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_LOW,SPF_PASS autolearn=ham version=3.3.1 spammy=Emacs, whereby, HX-Languages-Length:1127, sk:fencepo X-HELO: eggs.gnu.org Received: from eggs.gnu.org (HELO eggs.gnu.org) (209.51.188.92) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Fri, 24 Jan 2020 07:00:14 +0000 Received: from fencepost.gnu.org ([2001:470:142:3::e]:44208) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iusws-0006Pu-0I; Fri, 24 Jan 2020 02:00:10 -0500 Received: from [176.228.60.248] (port=2464 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iuswp-0006pi-38; Fri, 24 Jan 2020 02:00:08 -0500 Date: Fri, 24 Jan 2020 10:26:00 -0000 Message-Id: <83o8uts5jt.fsf@gnu.org> From: Eli Zaretskii To: Pedro Alves CC: simark@simark.ca, gdb-patches@sourceware.org In-reply-to: (message from Pedro Alves on Thu, 23 Jan 2020 17:36:28 +0000) Subject: Re: Discrepancy between Python and Guile wrt exiting the interpreter References: <83a76l10r6.fsf@gnu.org> <9684975c-324f-b26b-de87-6d37c0d8d08a@redhat.com> <081e7258-3fb8-6231-ca25-f2d18d255645@simark.ca> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-IsSubscribed: yes X-SW-Source: 2020-01/txt/msg00780.txt.bz2 > From: Pedro Alves > Date: Thu, 23 Jan 2020 17:36:28 +0000 > > And I have to add -- wow, "quit()" exiting gdb is really nasty > in that case. It's even suggested if you try "quit" without > parens: > > >>> quit > Use quit() or Ctrl-D (i.e. EOF) to exit > > Clearly the embedded use case wasn't considered here. I think > this should be reported to Python upstream. How does one do that? And btw, while I have your attention: an Emacs user reported a problem whereby he couldn't find a way of exiting the "pi" invoked from the GDB session started by "M-x gdb" (which uses GDB/MI) in Emacs. See https://debbugs.gnu.org/cgi/bugreport.cgi?bug=39140. I proposed a solution to that in https://debbugs.gnu.org/cgi/bugreport.cgi?bug=39140#8, which seems to work for me, but that user said it didn't help on his system. Does that patch work for others here, or is it the GNU/Linux system I used to test (fencepost.gnu.org, btw) which is the odd one out? P.S. As you might guess, that bug report was the trigger for my question here. Thanks.