Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Bob Rossi <bob@brasko.net>
To: Eli Zaretskii <eliz@gnu.org>
Cc: gdb-patches@sources.redhat.com
Subject: Re: [mi] organize possible exec async mi oc command reasons
Date: Sun, 27 Mar 2005 02:56:00 -0000	[thread overview]
Message-ID: <20050327035529.GA581@white> (raw)
In-Reply-To: <01c53207$Blat.v2.4$edd75800@zahav.net.il>

On Sat, Mar 26, 2005 at 03:29:05PM +0200, Eli Zaretskii wrote:
> > Date: Sat, 26 Mar 2005 12:36:32 +0200
> > From: "Eli Zaretskii" <eliz@gnu.org>
> > 
> > Btw, do we always have @var{reason} after "stopped"?  If not, then
> > it's optional and should be inside [...].
> 
> In addition, it looks to me like "stopped" states the reason like so:
> 
>   *stopped,reason="REASON"
> 
> If this is true, then the first @table in the section we are talking
> about should say
> 
>   @table @code
>   @item
>   *stopped,reason="@var{reason}"
>   @end table

Hi Eli,

Thanks for all the excellent suggestions, I can see how this is much
much nicer than what I had. There is probably still room for improving,
what do you think?

BTW, you might already know, but it's worth mentioning, there are 3
types of out-of-band records. In this section only the *stopped, which
is exec-async-output, is mentioned. That's why I added the sentence, 
   +In particular, the @var{exec-async-output} records.
After this doco and patch is approved, I'm going to enumerate the other
2 case's, status-async-output and notify-async-output.

Also, For each item, I could add the MI commands that could be done to get the
response described. Like, -exec-finish produces function-finished.
However, the user won't know when you get 'read-watchpoint-trigger'.
What do you think? and if so, how would that fit into this description?
Another table perhaps?

Thanks,
Bob Rossi

2005-03-26  Bob Rossi  <bob@brasko.net>

   * gdb.texinfo (GDB/MI Out-of-band Records): Enumerating the possible 
   out-of-band exec-async-output reasons.

Index: gdb.texinfo
===================================================================
RCS file: /cvs/src/src/gdb/doc/gdb.texinfo,v
retrieving revision 1.233
diff -w -u -r1.233 gdb.texinfo
--- gdb.texinfo 10 Mar 2005 13:12:33 -0000  1.233
+++ gdb.texinfo 27 Mar 2005 02:50:34 -0000
@@ -15416,9 +15416,40 @@
 target activity (e.g., target stopped).
 
 The following is a preliminary list of possible out-of-band records.
+In particular, the @var{exec-async-output} records.
 
 @table @code
-@item "*" "stop"
+@item *stopped,reason="@var{reason}"
+@end table
+
+@var{reason} can be one of the following:
+
+@table @code
+@item breakpoint-hit
+A breakpoint was reached.
+@item watchpoint-trigger
+A watchpoint was triggered.
+@item read-watchpoint-trigger
+A read watchpoint was triggered
+@item access-watchpoint-trigger 
+An access watchpoint was triggered.
+@item function-finished
+An -exec-finish or similar CLI command was accomplished.
+@item location-reached
+An -exec-until or similar CLI command was accomplished.
+@item watchpoint-scope
+A watchpoint has gone out of scope.
+@item end-stepping-range
+An -exec-next,-exec-next-instruction,-exec-step,-exec-step-instruction or 
+similar CLI command was accomplished.
+@item exited-signalled 
+The inferior exited because of a signal.
+@item exited 
+The inferior exited.
+@item exited-normally 
+The inferior exited normally.
+@item signal-received 
+A signal was received by the inferior.
 @end table



  reply	other threads:[~2005-03-27  2:56 UTC|newest]

Thread overview: 29+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-03-24 15:46 Bob Rossi
2005-03-24 15:54 ` Daniel Jacobowitz
2005-03-24 16:06 ` Daniel Jacobowitz
2005-03-24 18:47   ` Stan Shebs
2005-03-24 21:20   ` Bob Rossi
2005-03-26 10:43     ` Eli Zaretskii
2005-04-30 19:32     ` Daniel Jacobowitz
2005-05-18  3:29       ` Bob Rossi
2005-05-18  3:34         ` Daniel Jacobowitz
2005-05-18  3:36           ` Bob Rossi
2005-05-18  3:43             ` Daniel Jacobowitz
2005-05-18  4:00               ` Bob Rossi
2005-05-18  8:53       ` Bob Rossi
2005-05-26  2:35         ` Bob Rossi
2005-05-28 18:56         ` Daniel Jacobowitz
2005-05-29  2:55           ` Bob Rossi
2005-05-29  3:00             ` Bob Rossi
2005-05-29  4:57               ` Daniel Jacobowitz
2005-05-29  5:53                 ` Bob Rossi
2005-05-29  3:11             ` Daniel Jacobowitz
2005-06-15 19:25     ` David Lecomber
2005-06-15 20:03       ` Bob Rossi
2005-06-15 20:46         ` Daniel Jacobowitz
2005-03-24 20:00 ` Eli Zaretskii
2005-03-24 21:02   ` Bob Rossi
2005-03-26 10:40     ` Eli Zaretskii
2005-03-26 13:32       ` Eli Zaretskii
2005-03-27  2:56         ` Bob Rossi [this message]
2005-03-27  4:42           ` 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=20050327035529.GA581@white \
    --to=bob@brasko.net \
    --cc=eliz@gnu.org \
    --cc=gdb-patches@sources.redhat.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