[lldb-dev] gdb-remote to android gdbserver
Virgile Bello
virgile.bello at gmail.com
Sun Aug 25 17:52:14 PDT 2013
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.
I have a patch for that (change is quite small), that I can clean up and
upload soon if you are interested.
On Mon, Aug 26, 2013 at 2:53 AM, Sebastien Metrot <meeloo at gmail.com> wrote:
> Hi,
>
> 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:
>
> mbp:NativeTest meeloo$ lldb
> ../../../ndk/samples/hello-gl2/libs/armeabi/libgl2jni.so
> Current executable set to
> '../../../ndk/samples/hello-gl2/libs/armeabi/libgl2jni.so' (arm).
> (lldb) gdb-remote
> error: gdb-remote [<hostname>:]<portnum>
> (lldb) gdb-remote 127.0.0.1:5039
> Process 12260 stopped
> * thread #1: tid = 0x2fe4, , stop reason = signal SIGTRAP
> frame #0:
> (lldb) frame variable
> error: invalid frame
> (lldb) continue
> Process 12260 resuming
> ---- Here I hit Ctrl+C
> Process 12260 stopped
> * thread #1: tid = 0x2fe4, , stop reason = signal SIGINT
> frame #0:
> (lldb) continue
> Process 12260 resuming
> (lldb) process interrupt
> Process 12260 stopped
> * thread #1: tid = 0x2fe4, , stop reason = signal SIGINT
> frame #0:
> (lldb) register read
> error: invalid frame
> (lldb) process status
> Process 12260 stopped
> * thread #1: tid = 0x2fe4, , stop reason = signal SIGINT
> frame #0:
>
>
> 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...
>
> Thanks in advance,
>
> S.
>
>
> _______________________________________________
> lldb-dev mailing list
> lldb-dev at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/lldb-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/lldb-dev/attachments/20130826/98e99481/attachment.html>
More information about the lldb-dev
mailing list