This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Discrepancy between Python and Guile wrt exiting the interpreter


> From: Pedro Alves <palves@redhat.com>
> 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"?


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]