<div dir="ltr">Hey Matthew,<div><br></div><div>Essentially you'll want to return a string like this:</div><div>$OK#9a</div><div><br></div><div>if your gdb remote debug monitor can handle that (undocumented) element, or return this:</div>
<div>$#00</div><div><br></div><div>if you do not support the packet.</div><div><br></div><div>I've been digging into the protocol lately since I'm adding tests for gdb remote protocol-layer activity, so that I can verify lldb-gdbserver (llgs) on Linux is acting identically to debugserver on MacOSX (and to make it easier for us to transition from debugserver to llgs).</div>
<div><br></div><div>I had noted that packet wasn't documented a while back. When I get to testing that one, I'll update the doc text file on it.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">
On Fri, May 9, 2014 at 6:40 AM, Abid, Hafiz <span dir="ltr"><<a href="mailto:Hafiz_Abid@mentor.com" target="_blank">Hafiz_Abid@mentor.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I have not read the documentation for this packet. But looking at the code,<br>
It seems that you will return OK if your stub supports this packet. Otherwise an empty reply can<br>
Indicate that packet is not supported.<br>
<br>
Please look at the following link for more details about query packets.<br>
<a href="https://sourceware.org/gdb/onlinedocs/gdb/General-Query-Packets.html#General-Query-Packets" target="_blank">https://sourceware.org/gdb/onlinedocs/gdb/General-Query-Packets.html#General-Query-Packets</a><br>
<br>
Thanks,<br>
Abid<br>
<div class="HOEnZb"><div class="h5"><br>
> -----Original Message-----<br>
> From: Matthew Gardiner [mailto:<a href="mailto:mg11@csr.com">mg11@csr.com</a>]<br>
> Sent: 09 May 2014 13:24<br>
> To: Abid, Hafiz; <a href="mailto:lldb-dev@cs.uiuc.edu">lldb-dev@cs.uiuc.edu</a><br>
> Subject: Re: [lldb-dev] GDB RSP qVAttachOrWaitSupported<br>
><br>
> Abid, Hafiz wrote:<br>
> > RNBRemote::HandlePacket_qVAttachOrWaitSupported has the following<br>
> comments which may give you some idea.<br>
> > // We support attachOrWait meaning attach if the process exists,<br>
> otherwise wait to attach.<br>
> Ok, thanks.<br>
><br>
> So this whole entity "VAttachOrWaitSupported" is a concept which the stub<br>
> does or not support, correct?<br>
><br>
> If so, does the stub write back "1", if it does support it, otherwise "0"?<br>
><br>
> Presumably if the stub does support this feature, are there any other<br>
> messages which the stub should then support?<br>
><br>
> I'm still not really clear what's happening here....<br>
><br>
> Matt<br>
><br>
><br>
><br>
> Member of the CSR plc group of companies. CSR plc registered in England<br>
> and Wales, registered number 4187346, registered office Churchill House,<br>
> Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United<br>
> Kingdom More information can be found at <a href="http://www.csr.com" target="_blank">www.csr.com</a>. Keep up to date<br>
> with CSR on our technical blog, <a href="http://www.csr.com/blog" target="_blank">www.csr.com/blog</a>, CSR people blog,<br>
> <a href="http://www.csr.com/people" target="_blank">www.csr.com/people</a>, YouTube, <a href="http://www.youtube.com/user/CSRplc" target="_blank">www.youtube.com/user/CSRplc</a>, Facebook,<br>
> <a href="http://www.facebook.com/pages/CSR/191038434253534" target="_blank">www.facebook.com/pages/CSR/191038434253534</a>, or follow us on Twitter at<br>
> <a href="http://www.twitter.com/CSR_plc" target="_blank">www.twitter.com/CSR_plc</a>.<br>
> New for 2014, you can now access the wide range of products powered by<br>
> aptX at <a href="http://www.aptx.com" target="_blank">www.aptx.com</a>.<br>
<br>
_______________________________________________<br>
lldb-dev mailing list<br>
<a href="mailto:lldb-dev@cs.uiuc.edu">lldb-dev@cs.uiuc.edu</a><br>
<a href="http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev" target="_blank">http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev</a><br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr">-Todd</div>
</div>