From: Eli Zaretskii <eliz@gnu.org>
To: gdb@sourceware.org
Subject: GDB/MI and ">" prompts (was: Interactive behavior of GDB run from Emacs on Windows)
Date: Thu, 19 Apr 2012 16:17:00 -0000 [thread overview]
Message-ID: <83r4vjitnj.fsf@gnu.org> (raw)
In-Reply-To: <83sjfzitxx.fsf@gnu.org>
> Date: Thu, 19 Apr 2012 19:10:18 +0300
> From: Eli Zaretskii <eliz@gnu.org>
> Cc: gdb@sourceware.org
>
> > Try the following, I think it might help:
> >
> > (gdb) set interactive-mode on
>
> Thanks, it does.
With this knowhow in hand, my next question is about GDB/MI behavior
when it is connected to a tty device. Typing
-interpreter-exec console "commands"
from the console for some reason disables the ">" prompts for the
breakpoint commands. If stdin is NOT a tty, those prompts _are_
output. Why the difference?
Were this makes difference is in Emacs, which now uses MI to interact
with GDB, but it also supports the command-line interface, by taking
the commands typed by the user and wrapping them in "-interpreter-exec".
But the lack of the ">" prompts makes the user experience worse, so
I'm asking why is GDB behaving like that.
TIA
next prev parent reply other threads:[~2012-04-19 16:17 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-04-19 15:46 Interactive behavior of GDB run from Emacs on Windows Eli Zaretskii
2012-04-19 15:49 ` Joel Brobecker
2012-04-19 16:11 ` Eli Zaretskii
2012-04-19 16:17 ` Eli Zaretskii [this message]
2012-04-19 18:53 ` GDB/MI and ">" prompts (was: Interactive behavior of GDB run from Emacs on Windows) Joel Brobecker
2012-04-19 19:25 ` GDB/MI and ">" prompts Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=83r4vjitnj.fsf@gnu.org \
--to=eliz@gnu.org \
--cc=gdb@sourceware.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).