This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[v2] Re: RFA/RFC: vCont for the remote protocol [doco]
On Tue, Sep 30, 2003 at 11:37:00AM -0400, Andrew Cagney wrote:
> >packet ->> "vCont" { field }+
> >>field ->> ";" action [ ":" tid ]
> >>
> >>which is very easy to parse. BTW, intro has this to say, so there
> >>aren't any guidelines :-(
> >
> >
> >That loses the requirement that the default action be last, which I'd
> >like to hold on to - OK?
>
> Was that to ensure that there wasn't more than one default action? I
> think its better to instead clarify that in the text part of the spec vis:
>
> "By default all unspecified threads remain stopped. An action with no
> corresponding {tdid} shall be applied to all threads with out an
> explicitly specified action. A packet specifying multiple default
> actions is erreneous."
>
> Looking at the new gdbserver code it's pratically doing this now. BTW,
> I think it gets confused by the incorrect "...;cccccccccc", simplifying
> to be strictly LL1 will fix that.
This makes the stub parsing a little trickier, but not much. I don't
think it does get confused by ";cccccccc"; if whatever you saw is still
there in the revised version I'm about to post, please holler.
> >I dislike the ';' because vCont is not an item in the list of actions
> >that the semicolons are separating; that turns ';' from a separator
> >into a prefix. But hey, prefixes are people too.
>
> Seperator or terminator?
If it were a terminator we wouldn't need one at the beginning of the
list.
Here's updated docs.
--
Daniel Jacobowitz
MontaVista Software Debian GNU/Linux Developer
2003-09-30 Daniel Jacobowitz <drow@mvista.com>
* gdb.texinfo (Remote Protocol): Document v and vCont.
Index: doc/gdb.texinfo
===================================================================
RCS file: /big/fsf/rsync/src-cvs/src/gdb/doc/gdb.texinfo,v
retrieving revision 1.175
diff -u -p -r1.175 gdb.texinfo
--- doc/gdb.texinfo 9 Aug 2003 15:10:09 -0000 1.175
+++ doc/gdb.texinfo 30 Sep 2003 19:42:01 -0000
@@ -19781,9 +19781,51 @@ Reserved for future use.
Reserved for future use.
-@item @code{v} --- reserved
+@item @code{v} --- verbose packet prefix
-Reserved for future use.
+Packets starting with @code{v} are identified by a multi-letter name,
+up to the first @code{;} or @code{?} (or the end of the packet).
+
+@item @code{vCont}[;@var{action}[@code{:}@var{tid}]]... --- extended resume
+@cindex @code{vCont} packet
+
+Resume the inferior. Different actions may be specified for each thread.
+If an action is specified with no @var{tid}, then it is applied to any
+threads that don't have a specific action specified; if no default action is
+specified than other threads should remain stopped. Multiple default
+actions are an error. Thread IDs are specified in hexadecimal.
+Currently supported actions are:
+
+@table @code
+@item c
+Continue
+@item C@var{sig}
+Continue with signal @var{sig}
+@item s
+Step
+@item S@var{sig}
+Step with signal @var{sig}
+@end table
+
+The optional @var{addr} argument normally associated with these packets is
+not supported in @code{vCont}.
+
+Reply:
+@xref{Stop Reply Packets}, for the reply specifications.
+
+@item @code{vCont?} --- extended resume query
+@cindex @code{vCont?} packet
+
+Query support for the @code{vCont} packet.
+
+Reply:
+@table @samp
+@item @code{vCont}[;@var{action}]...
+The @code{vCont} packet is supported. Each @var{action} is a supported
+command in the @code{vCont} packet.
+@item empty
+The @code{vCont} packet is not supported.
+@end table
@item @code{V} --- reserved