<html>
<head>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
The GDB RSP, which LLDB RSP is derived from is certainly state-full
and maintains an notion of the current thread for queries (reading
registers, etc..) and for execution commands (stepping), see the 'H'
packet.<br>
The RSP has evolved quite a bit however and extended packets were
introduced that do take TID's as a parameter (vcont for instance).<br>
Hopefully someone can chip in who is more familiar with lldb-server
however.<br>
<br>
As for your other question, the RSP should however be relatively
platform independent as far as state-fullness goes, I don't think
and of the upstream lldb platforms keep an kind of special state.<br>
<br>
Disclaimer... Its been a little while since I have had to really dig
into RSP so its all liable to have changed.<br>
<br>
<br>
<div class="moz-cite-prefix">On 29/03/2016 10:57, Ravitheja
Addepally via lldb-dev wrote:<br>
</div>
<blockquote
cite="mid:CAKnqT1d4wXSvBK5d8JqLOh-kWRb-rnY1uFb86VhdJBSyB1wGPA@mail.gmail.com"
type="cite">
<div dir="ltr">Hello,
<div> I wanted to know if the remote protocol of LLDB is
state less or not ? When i say state I am referring to if LLDB
remembers the current process or thread being debugged (which
would mean we dont need to specify that in the client to
server packets ) . I was looking at the
GDBRemoteCommunicationServerLLGS and found that most of the
packets did not have the pid or thread id being passed to the
server , so is it safe to assume that the protocol is
statefull ? is this assumption also valid for all OS's ?</div>
<div><br>
</div>
<div>---Ravi</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
lldb-dev mailing list
<a class="moz-txt-link-abbreviated" href="mailto:lldb-dev@lists.llvm.org">lldb-dev@lists.llvm.org</a>
<a class="moz-txt-link-freetext" href="http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev">http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-dev</a>
</pre>
</blockquote>
<br>
</body>
</html>