<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; ">Yes, I'm very much interested! <div><br></div><div>Thanks Virgile,</div><div><br></div><div>S.</div><div><br><div><div>On Aug 26, 2013, at 2:52 AM, Virgile Bello <<a href="mailto:virgile.bello@gmail.com">virgile.bello@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div dir="ltr">Actually when I checked if it worked or not out of the box, I noticed one missing thing was RLE (run-time length encoding) support in GDB remote protocol.<div>I have a patch for that (change is quite small), that I can clean up and upload soon if you are interested.</div>


<div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Aug 26, 2013 at 2:53 AM, Sebastien Metrot <span dir="ltr"><<a href="mailto:meeloo@gmail.com" target="_blank">meeloo@gmail.com</a>></span> wrote:<br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Hi, <div><br></div><div>I have started to investigate connecting lldb to gdbserver running on an android device (arm). It connects correctly, I'm able to start the remote program and interrupt it but lldb doesn't permit me to access any data as it says the current frame is invalid:</div>


<div><br></div><div><div style="margin:0px;font-size:10px;font-family:'Source Code Pro'">mbp:NativeTest meeloo$ lldb ../../../ndk/samples/hello-gl2/libs/armeabi/libgl2jni.so </div><div style="margin:0px;font-size:10px;font-family:'Source Code Pro'">


Current executable set to '../../../ndk/samples/hello-gl2/libs/armeabi/libgl2jni.so' (arm).</div><div style="margin:0px;font-size:10px;font-family:'Source Code Pro'">(lldb) gdb-remote </div><div style="margin:0px;font-size:10px;font-family:'Source Code Pro'">


error: gdb-remote [<hostname>:]<portnum></div><div style="margin:0px;font-size:10px;font-family:'Source Code Pro'">(lldb) gdb-remote <a href="http://127.0.0.1:5039/" target="_blank">127.0.0.1:5039</a></div>


<div style="margin:0px;font-size:10px;font-family:'Source Code Pro'">Process 12260 stopped</div><div style="margin:0px;font-size:10px;font-family:'Source Code Pro'">* thread #1: tid = 0x2fe4, , stop reason = signal SIGTRAP</div>


<div style="margin:0px;font-size:10px;font-family:'Source Code Pro'">    frame #0: </div><div style="margin:0px;font-size:10px;font-family:'Source Code Pro'">(lldb) frame variable</div><div style="margin:0px;font-size:10px;font-family:'Source Code Pro'">


error: invalid frame</div><div style="margin:0px;font-size:10px;font-family:'Source Code Pro'">(lldb) continue</div><div style="margin:0px;font-size:10px;font-family:'Source Code Pro'">Process 12260 resuming</div>


<div style="margin:0px;font-size:10px;font-family:'Source Code Pro'">---- Here I hit Ctrl+C</div><div style="margin:0px;font-size:10px;font-family:'Source Code Pro'">Process 12260 stopped</div><div style="margin:0px;font-size:10px;font-family:'Source Code Pro'">


* thread #1: tid = 0x2fe4, , stop reason = signal SIGINT</div><div style="margin:0px;font-size:10px;font-family:'Source Code Pro'">    frame #0: </div><div style="margin:0px;font-size:10px;font-family:'Source Code Pro'">


(lldb) continue</div><div style="margin:0px;font-size:10px;font-family:'Source Code Pro'">Process 12260 resuming</div><div style="margin:0px;font-size:10px;font-family:'Source Code Pro'">(lldb) process interrupt </div>


<div style="margin:0px;font-size:10px;font-family:'Source Code Pro'">Process 12260 stopped</div><div style="margin:0px;font-size:10px;font-family:'Source Code Pro'">* thread #1: tid = 0x2fe4, , stop reason = signal SIGINT</div>


<div style="margin:0px;font-size:10px;font-family:'Source Code Pro'">    frame #0: </div><div style="margin:0px;font-size:10px;font-family:'Source Code Pro'">(lldb) register read</div><div style="margin:0px;font-size:10px;font-family:'Source Code Pro'">


error: invalid frame</div><div style="margin:0px;font-size:10px;font-family:'Source Code Pro'">(lldb) process status</div><div style="margin:0px;font-size:10px;font-family:'Source Code Pro'">Process 12260 stopped</div>


<div style="margin:0px;font-size:10px;font-family:'Source Code Pro'">* thread #1: tid = 0x2fe4, , stop reason = signal SIGINT</div><div style="margin:0px;font-size:10px;font-family:'Source Code Pro'">    frame #0: </div>


</div><div><br></div><div><br></div><div>Does anyone have already tried to do this kind of things? I'm trying to get it to work before moving to implementing android support in my program with the C++ API...</div><div>


<br></div><div>Thanks in advance,</div><div><br></div><div>S.</div><div><br></div></div><br>_______________________________________________<br>
lldb-dev mailing list<br>
<a href="mailto:lldb-dev@cs.uiuc.edu" target="_blank">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>
<br></blockquote></div><br></div></div>
</blockquote></div><br></div></body></html>