I have the same problem, either in eclipse and standalone arm-eabi-gdb
app. :(

Krystian

On 2 Lip, 09:59, Hachaso <[email protected]> wrote:
> Hi!
>
> I'm trying to debug my native JNI code located on a shared library.
> I have been trying to debug using gdb/gdbserver.
>
> Here is how I go about, trying to debug:
>
> I need help how to debug JNI native code
> on the Android emulator
> I'm using gdb/gdbserver
> I do this at the emulator terminal
> gdbserver localhost:1234 --attach 737
> Attached; pid = 737
> Listening on port 1234
> Remote debugging from host 10.0.2.2
> on the client PC I do this:
> arm-eabi-gdb libtestJNI.so
> (gdb) set solib-search-path /system/lib
> (gdb) info threads
>   1 Thread 737  JNI_OnLoad (vm=0xafe0af93, reserved=0x0) at
> testJNI.cpp:15
> (gdb) thread 1
> [Switching to thread 1 (Thread 737)]#0  JNI_OnLoad (vm=0xafe0af93,
> reserved=0x0) at testJNI.cpp:15
> 15 jint JNI_OnLoad(JavaVM* vm, void* reserved)
> (gdb) b Java_testJNI_printHello
> Breakpoint 1 at 0xafe0d54c: file testJNI.cpp, line 53.
> (gdb) c
> Continuing.
> ... when I step on the Android Java code so the function
> Java_testJNI_printHello is called, I get this error on the server side
> gdb: Unable to get location for thread creation breakpoint: requested
> event is not supported
>
> please help??
>
> Thanks

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google
Groups "Android Developers" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/android-developers?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to