Mirror of the gdb mailing list
 help / color / mirror / Atom feed
* Exiting from Python and Guile interpreters
@ 2015-12-16 10:52 Eli Zaretskii
  2015-12-16 11:16 ` Jan Kratochvil
  0 siblings, 1 reply; 3+ messages in thread
From: Eli Zaretskii @ 2015-12-16 10:52 UTC (permalink / raw)
  To: gdb

I see this in MinGW GDB 7.10 I built myself; I have no access to any
other GDB built with both Python and Guile, so I'm asking here.

It looks like there's an inconsistency in how one should exit from the
Python (entered with "pi") vs Guile (entered with "gr") interpreters
back to GDB:

  . to exit Python, one should type the EOF character, Ctrl-D on Unix,
    Ctrl-Z on Windows

  . typing "quit()" at Python prompt exits the debugger

  . to exit Guile, one should type ",q" or ",quit"

  . typing the EOF character at Guile prompt exits the debugger

Does this happen on GNU/Linux as well, or is this some Windows
specific problem (perhaps even specific to my build)?

If this is indeed the expected behavior, shouldn't we try making the
two interpreters behave in similar ways?

TIA


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Exiting from Python and Guile interpreters
  2015-12-16 10:52 Exiting from Python and Guile interpreters Eli Zaretskii
@ 2015-12-16 11:16 ` Jan Kratochvil
  2015-12-16 11:34   ` Eli Zaretskii
  0 siblings, 1 reply; 3+ messages in thread
From: Jan Kratochvil @ 2015-12-16 11:16 UTC (permalink / raw)
  To: Eli Zaretskii; +Cc: gdb

On Wed, 16 Dec 2015 11:53:10 +0100, Eli Zaretskii wrote:
>   . to exit Python, one should type the EOF character, Ctrl-D on Unix,
>     Ctrl-Z on Windows
> 
>   . typing "quit()" at Python prompt exits the debugger

In Fedora 23 build it is the same.


>   . to exit Guile, one should type ",q" or ",quit"
> 
>   . typing the EOF character at Guile prompt exits the debugger

In Fedora 23 build both methods return to the GDB prompt.


Jan


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Exiting from Python and Guile interpreters
  2015-12-16 11:16 ` Jan Kratochvil
@ 2015-12-16 11:34   ` Eli Zaretskii
  0 siblings, 0 replies; 3+ messages in thread
From: Eli Zaretskii @ 2015-12-16 11:34 UTC (permalink / raw)
  To: Jan Kratochvil; +Cc: gdb

> Date: Wed, 16 Dec 2015 12:16:08 +0100
> From: Jan Kratochvil <jan.kratochvil@redhat.com>
> Cc: gdb@sourceware.org
> 
> On Wed, 16 Dec 2015 11:53:10 +0100, Eli Zaretskii wrote:
> >   . to exit Python, one should type the EOF character, Ctrl-D on Unix,
> >     Ctrl-Z on Windows
> > 
> >   . typing "quit()" at Python prompt exits the debugger
> 
> In Fedora 23 build it is the same.
> 
> 
> >   . to exit Guile, one should type ",q" or ",quit"
> > 
> >   . typing the EOF character at Guile prompt exits the debugger
> 
> In Fedora 23 build both methods return to the GDB prompt.

Thanks.

So what do you think about making "quit()" in Python return to GDB
instead of exiting to shell?


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-12-16 11:34 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-16 10:52 Exiting from Python and Guile interpreters Eli Zaretskii
2015-12-16 11:16 ` Jan Kratochvil
2015-12-16 11:34   ` Eli Zaretskii

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox