From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 88366 invoked by alias); 23 Jan 2020 18:18:00 -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 88357 invoked by uid 89); 23 Jan 2020 18:17:59 -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=H*r:sk:RSA_AES 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; Thu, 23 Jan 2020 18:17:58 +0000 Received: from fencepost.gnu.org ([2001:470:142:3::e]:35034) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1iuh3E-0007QS-QQ; Thu, 23 Jan 2020 13:17:56 -0500 Received: from [176.228.60.248] (port=3853 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1iuh3D-0007HP-6H; Thu, 23 Jan 2020 13:17:56 -0500 Date: Thu, 23 Jan 2020 18:20:00 -0000 Message-Id: <83zheerq9g.fsf@gnu.org> From: Eli Zaretskii To: Pedro Alves CC: gdb-patches@sourceware.org In-reply-to: <9684975c-324f-b26b-de87-6d37c0d8d08a@redhat.com> (message from Pedro Alves on Thu, 23 Jan 2020 17:10:10 +0000) Subject: Re: Discrepancy between Python and Guile wrt exiting the interpreter References: <83a76l10r6.fsf@gnu.org> <9684975c-324f-b26b-de87-6d37c0d8d08a@redhat.com> 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/msg00743.txt.bz2 > From: Pedro Alves > Date: Thu, 23 Jan 2020 17:10:10 +0000 > > Note that these commands are not direct equivalents. The guile equivalent > to "pi" which is short for "python" would be "guile", or "gu", and with > that command you get the same behavior as "pi", in the sense that ",q" > doesn't bail you out, you have to type some command and finish with > either Ctrl-D or Ctrl-C to abort. > > "gr" is an alias for "guile-repl", and with that command, it's the Guile > repl that implements the ",q", not GDB. With the "python" and "guile" > commands, it's GDB that implements the secondary prompt handling and > command line reading (the ">", etc.). Compare guile_repl_command and > guile_command. Thanks. Is there a Python equivalent of "gr"?