<html><head><meta http-equiv="Content-Type" content="text/html charset=us-ascii"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">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 127.0.0.1:5039</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></body></html>