<div dir="ltr">Cool - sounds all good to me since we don't have a backwards compatibility problem.  Now would be the time to do it :-)<div><br></div><div>-Todd<br><div><br></div></div></div><div class="gmail_extra"><br>
<br><div class="gmail_quote">On Fri, Jul 25, 2014 at 12:40 PM, Jason Molenda <span dir="ltr"><<a href="mailto:jason@molenda.com" target="_blank">jason@molenda.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class=""><br>
On Jul 25, 2014, at 7:08 AM, Todd Fiala <<a href="mailto:tfiala@google.com">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 the kalimba gdbserver stub.<br>
><br>
> Currently GDBRemoteCommunicationServer, used by both llgs and lldb-platform, does send the triple as hex encoded via this code:<br>
><br>
> response.PutCString("triple:");<br>
> response.PutCStringAsRawHex8(host_triple.getTriple().c_str());<br>
><br>
> We can easily not do that as you suggest. Are there any ramifications for your usage of lldb-platform, though? We’d need to change the receiver code of that, which would then differ based on which lldb-platform version you’re talking to.<br>

<br>
</div>It sounds like Matthew is open to changing the kalimba stub.  We should get rid of the hex-ascii strings (along with distribution_id, os_build, os_kernel) everywhere.  lldb-platform is not bundled/distributed in any products so we don't have to worry about deployed versions.<br>

<br>
hostname is less clear-cut because there we're dealing with a user-specified string and that may include one of # $ } *.<br>
<br>
Personally, I wish the whole of gdb-remote protocol required the use of the binary packet escape protocol which says that any of these 4 metacharacters that is meant to be sent in the body of a packet is prefixed with } and is xor'ed with 0x20.  But that's not what the protocol says so we need to do these things..</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>