From: Nick Roberts <nickrob@snap.net.nz>
To: Vladimir Prus <vladimir@codesourcery.com>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [RFA] Async mode fixes.
Date: Mon, 10 Mar 2008 22:06:00 -0000 [thread overview]
Message-ID: <18389.45259.883736.858298@kahikatea.snap.net.nz> (raw)
In-Reply-To: <200803101302.15250.vladimir@codesourcery.com>
> You mean this bit of code:
>
> else if (sync_execution)
> {
> /* Don't print the prompt. We are executing the target in
> synchronous mode. */
> args->action = EXECUTE_COMMAND_SUPRESS_PROMPT;
> return;
> }
>
> ?
Yes.
> I actually planned to remove it without further ado, after this async
> patch goes in. My reasoning is that the current behaviour is just bizarre. For sync
> target, any exec commands results in
>
> ^running
> (gdb)
>
> whereas for async target, due to above fragment, you can sometimes not get
> a prompt -- and this is backward.
That would seem to work.
> Of course, this code only deals with printing the prompt, whereas we still
> have the bigger issue -- namely that if we execute "continue" using
> -interpreter-exec, then GDB does not accept the input while continue runs,
> and -exec-interrupt does not work.
I don't think this is right but I don't want to work on your patch while it's
not part of GDB.
> Apple branch fixes that by not setting
> sync_execution inside async_disable_stdin, but I find the fix suspect -- if
> we give up terminal to inferior and then try to read something, I'm not sure
> it will work. It does work with "target async", but target async does not
> actually mess with terminal.
>
> One solution is probably to never disable stdin when an external tty
> is used for program output. Or to never disable stdin when top-level
> interpreter is MI. I must admit I don't know the right solution, yet.
>
> - Volodya
--
Nick http://www.inet.net.nz/~nickrob
next prev parent reply other threads:[~2008-03-10 22:06 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-05 7:27 Vladimir Prus
2008-03-07 22:19 ` Nick Roberts
2008-03-07 22:33 ` Daniel Jacobowitz
2008-03-08 8:16 ` Vladimir Prus
2008-03-08 8:59 ` Vladimir Prus
2008-03-08 20:36 ` Nick Roberts
2008-03-08 20:54 ` Daniel Jacobowitz
2008-03-08 23:09 ` Nick Roberts
2008-03-09 0:01 ` Daniel Jacobowitz
2008-03-10 7:58 ` Vladimir Prus
2008-03-10 9:12 ` Nick Roberts
2008-03-10 10:02 ` Vladimir Prus
2008-03-10 22:06 ` Nick Roberts [this message]
2008-03-14 18:26 ` Daniel Jacobowitz
2008-03-14 18:58 ` Vladimir Prus
2008-03-17 14:11 ` [commit] Fix compile error (Re: [RFA] Async mode fixes.) Ulrich Weigand
2008-03-17 14:17 ` Daniel Jacobowitz
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=18389.45259.883736.858298@kahikatea.snap.net.nz \
--to=nickrob@snap.net.nz \
--cc=gdb-patches@sources.redhat.com \
--cc=vladimir@codesourcery.com \
/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