<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Jul 28, 2014 at 2:25 AM, Matthew Gardiner <span dir="ltr"><<a href="mailto:mg11@csr.com" target="_blank">mg11@csr.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Todd/Jason,<br>
<br>
I'm happy to do this work, i.e. changes to GDBRemoteCommunicationServer.<u></u>cpp and GDBRemoteCommunicationClient.<u></u>cpp. (And to change the kalimba stub is easy). As I have just acquired commit access to lldb this could be a useful piece of work to introduce me to the Phabricator review process.<br>

<br></blockquote><div><br></div><div>Great, have at it!</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
A couple of questions remain, though.<br>
<br>
Todd's comment:<div class=""><br>
<br>
"Are there any ramifications for<br>
your usage of lldb-platform, though? We’d need to change the receiver code<br>
of that, which would then differ based on which lldb-platform version<br>
you’re talking to."<br>
<br>
<br></div>
Is that meaning that there are installed lldb-platform binaries which will now be broken against a version of lldb which expects plain text triples? Is that a problem? (that is, __will__ people upgrade both lldb and lldb-platform separately).<br>

<br></blockquote><div><br></div><div>Matthew, this was my misunderstanding.  I had thought lldb-platform shipped with all the Apple platforms.  They fixed my understanding - it only gets downloaded to devices as needed but doesn't live there.  So this is a non-issue.  As for llgs using it, that should not be an issue as llgs is just getting functional now and backwards support isn't a concern just yet.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Todd, do you know if distribution_id, os_build, os_kernel need to converted to plain-text?<br>
<br></blockquote><div><br></div><div>I added distribution_id to indicate the Linux distribution, since it looks like on Android that might be the only way I can tell Android and its Androidisms apart from a stock Linux.  On Linux, it grabs the content from the lsb_release exe, which really could be anything.  If we wanted to switch that to binary encoding, that should be fine.  You could change that one.</div>
<div><br></div><div>Somebody else should probably comment on os_build/os_kernel.</div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Jason, what is the problem with hostname? Previously you wrote that we are dealing with a user-specified string that may include non-alphanumeric characters. So in lldb/GDB-RSP context is a hostname different than that defined in <a href="http://tools.ietf.org/html/rfc952" target="_blank">http://tools.ietf.org/html/<u></u>rfc952</a>?<br>

<br>
Matt<br>
<br>
Todd Fiala wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="">
Cool - sounds all good to me since we don't have a backwards compatibility problem.  Now would be the time to do it :-)<br>
<br>
-Todd<br>
<br>
<br>
<br></div><div class="">
On Fri, Jul 25, 2014 at 12:40 PM, Jason Molenda <<a href="mailto:jason@molenda.com" target="_blank">jason@molenda.com</a> <mailto:<a href="mailto:jason@molenda.com" target="_blank">jason@molenda.com</a>>> wrote:<br>

<br>
<br>
    On Jul 25, 2014, at 7:08 AM, Todd Fiala <<a href="mailto:tfiala@google.com" target="_blank">tfiala@google.com</a><br></div><div><div class="h5">
    <mailto:<a href="mailto:tfiala@google.com" target="_blank">tfiala@google.com</a>>> wrote:<br>
<br>
    > Hey Jason,<br>
    ><br>
    > I don’t know about llgs or how much work it would be to change<br>
    the kalimba gdbserver stub.<br>
    ><br>
    > Currently GDBRemoteCommunicationServer, used by both llgs and<br>
    lldb-platform, does send the triple as hex encoded via this code:<br>
    ><br>
    > response.PutCString("triple:")<u></u>;<br>
    > response.PutCStringAsRawHex8(<u></u>host_triple.getTriple().c_str(<u></u>));<br>
    ><br>
    > We can easily not do that as you suggest. Are there any<br>
    ramifications for your usage of lldb-platform, though? We’d need<br>
    to change the receiver code of that, which would then differ based<br>
    on which lldb-platform version you’re talking to.<br>
<br>
    It sounds like Matthew is open to changing the kalimba stub.  We<br>
    should get rid of the hex-ascii strings (along with<br>
    distribution_id, os_build, os_kernel) everywhere.  lldb-platform<br>
    is not bundled/distributed in any products so we don't have to<br>
    worry about deployed versions.<br>
<br>
    hostname is less clear-cut because there we're dealing with a<br>
    user-specified string and that may include one of # $ } *.<br>
<br>
    Personally, I wish the whole of gdb-remote protocol required the<br>
    use of the binary packet escape protocol which says that any of<br>
    these 4 metacharacters that is meant to be sent in the body of a<br>
    packet is prefixed with } and is xor'ed with 0x20.  But that's not<br>
    what the protocol says so we need to do these things..<br>
<br>
<br>
<br>
<br>
-- <br></div></div>
Todd Fiala |     Software Engineer |    <a href="mailto:tfiala@google.com" target="_blank">tfiala@google.com</a> <mailto:<a href="mailto:tfiala@google.com" target="_blank">tfiala@google.com</a>> |  <a href="tel:650-943-3180" value="+16509433180" target="_blank">650-943-3180</a><br>

<br>
<br>
<br>
<br>
To report this email as spam click here <<a href="https://www.mailcontrol.com/sr/MZbqvYs5QwJvpeaetUwhCQ==" target="_blank">https://www.mailcontrol.com/<u></u>sr/MZbqvYs5QwJvpeaetUwhCQ==</a>>.<br>
<br>
</blockquote><div class="HOEnZb"><div class="h5">
<br>
<br>
<br>
Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom<br>

More information can be found at <a href="http://www.csr.com" target="_blank">www.csr.com</a>. Keep up to date with CSR on our technical blog, <a href="http://www.csr.com/blog" target="_blank">www.csr.com/blog</a>, CSR people blog, <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, <a href="http://www.facebook.com/pages/CSR/191038434253534" target="_blank">www.facebook.com/pages/CSR/<u></u>191038434253534</a>, or follow us on Twitter at <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 aptX at <a href="http://www.aptx.com" target="_blank">www.aptx.com</a>.<br>
</div></div></blockquote></div><br><br clear="all"><div><br></div>-- <br><div dir="ltr"><table cellspacing="0" cellpadding="0" style="color:rgb(136,136,136);font-family:'Times New Roman'"><tbody><tr style="color:rgb(85,85,85);font-family:sans-serif;font-size:small">
<td nowrap style="border-top-style:solid;border-top-color:rgb(213,15,37);border-top-width:2px">Todd Fiala |</td><td nowrap style="border-top-style:solid;border-top-color:rgb(51,105,232);border-top-width:2px"> Software Engineer |</td>
<td nowrap style="border-top-style:solid;border-top-color:rgb(0,153,57);border-top-width:2px"> <a href="mailto:tfiala@google.com" style="color:rgb(17,85,204)" target="_blank"><span style="background-color:rgb(255,255,204);color:rgb(34,34,34);background-repeat:initial initial">tfiala@google.com</span></a> |</td>
<td nowrap style="border-top-style:solid;border-top-color:rgb(238,178,17);border-top-width:2px"><font color="#1155cc"> <a>650-943-3180</a></font></td></tr></tbody></table><br></div>
</div></div>