From: "Dave Korn" <dave.korn@artimi.com>
To: "'Bob Rossi'" <bob@brasko.net>
Cc: "'Karganov Konstantin'" <kostik@ispras.ru>,
"'GDB'" <gdb@sources.redhat.com>
Subject: RE: MI output command error
Date: Thu, 10 Mar 2005 16:23:00 -0000 [thread overview]
Message-ID: <SERRANOsxpTljBOh8s40000002a@SERRANO.CAM.ARTIMI.COM> (raw)
In-Reply-To: <20050310160852.GC14061@white>
----Original Message----
>From: 'Bob Rossi'
>Sent: 10 March 2005 16:09
>>> That's why I think the output
>>>
>>> (gdb)
>>> 444-exec-continue
>>> 444*running
>>> 444*stopped...
>>> (gdb)
>>>
>>> is better.
>>
>> Well, you're wrong. "running" is the output from the exec-continue
>> command and it is synchronous: the exec-continue command executes,
>> starts up the inferior, prints out "running", and is then complete. At
>> that point the inferior is running, but regardless of that, gdb is ready
>> to take more commands and so should prompt you.
>
> It is? It is still busy executing the inferior. I was under the
> impression GDB was somehow "busy" while executing the inferior. Is this
> not true?
Hell no! Gdb is waiting for input from you. Send it a command - e.g.
"info program", which wouldn't need to tell you if the inferior was running
or stopped if it was only possible to send gdb commands while the inferior
was stopped. Some things are disabled while the inferior is running, others
aren't. Blimey, if you aren't aware of that it's no wonder this
conversation has been going at cross purposes! Check the documentation,
take a look at the -async flag for example. And read the section on "GDB/MI
result records", which makes it clear that if you see "^running" that means
that an asynchronous operation is under way but not completed. Then read
the documentation under "GDB/MI Program control", where it explains that
-exec-continue is *asynchronous*. Oh, wait a minute, you must have already
read that because you quoted the example from it. Do you actually know what
the terms "asynchronous" and "synchronous" mean, or were you just kind of
skimming over bits that didn't make any sense to you as you read the docs?
cheers,
DaveK
--
Can't think of a witty .sigline today....
next prev parent reply other threads:[~2005-03-10 16:23 UTC|newest]
Thread overview: 37+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-03-09 2:40 Bob Rossi
2005-03-09 23:22 ` Bob Rossi
2005-03-10 9:33 ` Re[2]: " Konstantin Karganov
2005-03-10 13:06 ` Bob Rossi
2005-03-10 13:43 ` Karganov Konstantin
2005-03-10 14:01 ` Bob Rossi
2005-03-10 14:15 ` Karganov Konstantin
2005-03-10 14:40 ` Bob Rossi
2005-03-10 15:13 ` Karganov Konstantin
2005-03-10 15:52 ` Dave Korn
2005-03-10 16:09 ` 'Bob Rossi'
2005-03-10 16:13 ` Daniel Jacobowitz
2005-03-10 17:44 ` Bob Rossi
2005-03-10 17:52 ` Daniel Jacobowitz
2005-03-10 20:48 ` Bob Rossi
2005-03-10 21:10 ` Daniel Jacobowitz
2005-03-10 21:25 ` Bob Rossi
2005-03-10 16:23 ` Dave Korn [this message]
2005-03-10 16:34 ` Daniel Jacobowitz
2005-03-10 16:48 ` Dave Korn
2005-03-10 17:03 ` 'Bob Rossi'
2005-03-11 11:32 ` Re[2]: " Konstantin Karganov
2005-03-11 21:05 Nick Roberts
2005-03-11 21:31 ` Daniel Jacobowitz
2005-03-11 21:36 ` Bob Rossi
2005-03-11 21:39 ` Daniel Jacobowitz
2005-03-11 21:52 ` Nick Roberts
2005-03-12 10:23 ` Eli Zaretskii
2005-03-13 9:36 ` Nick Roberts
2005-03-13 15:40 ` Daniel Jacobowitz
2005-03-13 20:22 ` Nick Roberts
2005-03-13 20:25 ` Daniel Jacobowitz
2005-03-13 23:33 ` Nick Roberts
2005-03-13 23:38 ` Daniel Jacobowitz
2005-03-13 19:41 ` Eli Zaretskii
2005-03-14 7:16 ` Peter D HUERTER
[not found] <1110656346.18541.ezmlm@sources.redhat.com>
2005-03-14 19:11 ` Jim Ingham
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=SERRANOsxpTljBOh8s40000002a@SERRANO.CAM.ARTIMI.COM \
--to=dave.korn@artimi.com \
--cc=bob@brasko.net \
--cc=gdb@sources.redhat.com \
--cc=kostik@ispras.ru \
/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