RFA/RFC: vCont for the remote protocol [doco]

Andrew Cagney ac131313@redhat.com
Tue Sep 30 15:37:00 GMT 2003


> 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.

> 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?

Andrew




More information about the Gdb-patches mailing list