This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GDB vCont packet clarification patch - June 09 2014


Hello,

I am new to OpenSource, new to GDB and am not native English speaker. So that makes me the best candidate to comment on the specs :-). Thanks to Sergio I have finally got the gist. Please correct my patch and apply. 

Original:
'vCont[;action[:thread-id]].'
Resume the inferior, specifying different actions for each thread. If an action is specified with no thread-id, then it is applied to any threads that don't have a specific action specified; if no default action is specified then other threads should remain stopped in all-stop mode and in their current state in non-stop mode. Specifying multiple default actions is an error; specifying no actions is also an error. Thread IDs are specified using the syntax described in thread-id syntax. 

Suggested Patch:

'vCont[;action[:thread-id]].'
Resumes the inferior (program being debugged), specifying different actions for each thread. If an action is specified with no thread-id, then it is applied to any threads that don't have a specific action specified. Ex: "vCont;c;s:3;s:7;c:5" in this case thread 3 will step, thread 7 will step, thread 5 will continue and all the other threads will 'continue' as per the default action. The very first 'c' is the default action, an action without any threadID is the default action and that cannot repeat. If no default action is specified then other threads should remain stopped in all-stop mode and in their current state in non-stop mode. Specifying multiple default actions is an error; specifying no actions is also an error. Thread IDs are specified using the syntax described in thread-id syntax. The "..." at the very signifies that the optional parameters can be repeated.

Examples of valid and invalid vCont packet syntax:

Valid:

vCont --> The square brackets [[]] signifies other than vCont rest everything is optional. But you say "specifying no action is also an error" too.  Please clarify...
vCont;s:3;s:7;s:9;r addr1, addr2;c:-1   --> In the threadID definition it does say giving "-1" will make the action apply to all threads, so does this mean threads 3, 7 and 9 will stop stepping and just continue?

Invalid:

vCont;c;s:3;c; --> Here c has been repeated

Again please correct mine and then apply the patch. I have asked questions  couple of places. You don't have to reply to me but please fix it and apply the patch.

Regards
Ananda


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]