public inbox for gdb@sourceware.org
 help / color / mirror / Atom feed
* Interactive behavior of GDB run from Emacs on Windows
@ 2012-04-19 15:46 Eli Zaretskii
  2012-04-19 15:49 ` Joel Brobecker
  0 siblings, 1 reply; 6+ messages in thread
From: Eli Zaretskii @ 2012-04-19 15:46 UTC (permalink / raw)
  To: gdb

There's an annoying difference between GDB behavior when launched by
Emacs GUD on Windows and on Posix platforms.  AFAIU, the difference is
explained by the fact that on Posix platforms the communications
between Emacs and GDB are done via a pty, whereas on Windows Emacs
uses pipes.  Therefore, on Unix GDB behaves as if its standard handles
were connected to a terminal, while on Windows it doesn't.

This causes some prompts, like the one GDB displays after "commands"
etc., not to show on Windows, and also rears its ugly head in other
situations.

What would be the best way to solve this annoyance?  One possibility I
thought of would be to have a "set something" option which Emacs would
cram down the pipe early on, that will force GDB to behave as if it
were talking to a terminal (we already have a similar hack for
Insight).  Would that be acceptable, and is it easily and cleanly
doable?  (I don't know enough about the ser-*.c stuff to decide
whether there could be any pitfalls along this route.)

TIA

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

end of thread, other threads:[~2012-04-19 19:25 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
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     ` GDB/MI and ">" prompts (was: Interactive behavior of GDB run from Emacs on Windows) Eli Zaretskii
2012-04-19 18:53       ` Joel Brobecker
2012-04-19 19:25         ` GDB/MI and ">" prompts Eli Zaretskii

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).