From: Pedro Alves <pedro@codesourcery.com>
To: gdb-patches@sourceware.org
Cc: Joel Brobecker <brobecker@adacore.com>, Eli Zaretskii <eliz@gnu.org>
Subject: Re: Can symbol-reading produce terminal output?
Date: Mon, 11 May 2009 10:26:00 -0000 [thread overview]
Message-ID: <200905111125.56242.pedro@codesourcery.com> (raw)
In-Reply-To: <20090511101114.GC14773@adacore.com>
On Monday 11 May 2009 11:11:14, Joel Brobecker wrote:
> If we were doing things in a more systematic way, I'd say that this
> call belongs in the code that handles kernel events. The terminal
> should be the inferior's when we're waiting for events, and it should
> be ours when we're no longer waiting (either processing an event, or
> waiting for the next user command). That reminds me, though: What do
> we do when we're in non-stop mode???
s/non-stop/async/. See linux_nat_terminal_inferior, and remote_terminal_inferior.
Basically, if executing in the background, GDB stays with the terminal;
If executing in the foreground, the inferior gets the terminal.
The interesting question, is what happens with multi-process... Currently, I'm
just ignoring that problem. If two programs want to fight for the terminal,
then if you want to debug them simultaneously, you should attach to
them anyway.
--
Pedro Alves
prev parent reply other threads:[~2009-05-11 10:26 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-09 13:51 Eli Zaretskii
2009-05-11 10:11 ` Joel Brobecker
2009-05-11 10:26 ` Pedro Alves [this message]
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=200905111125.56242.pedro@codesourcery.com \
--to=pedro@codesourcery.com \
--cc=brobecker@adacore.com \
--cc=eliz@gnu.org \
--cc=gdb-patches@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