Thank you David for the help. The process didn't crash and the
emulator is displaying "Hello from JNI !". Here is what I get at the
log:
DEBUG/AndroidRuntime(269): >>>>>>>>>>>>>> AndroidRuntime START
<<<<<<<<<<<<<<
DEBUG/AndroidRuntime(269): CheckJNI is ON
DEBUG/AndroidRuntime(269): --- registering native functions ---
INFO/ActivityManager(58): Starting activity: Intent { flg=0x10000000
cmp=com.example.hellojni/.HelloJni }
DEBUG/AndroidRuntime(269): Shutting down VM
DEBUG/dalvikvm(269): Debugger has detached; object registry had 1
entries
INFO/ActivityManager(58): Start proc com.example.hellojni for activity
com.example.hellojni/.HelloJni: pid=276 uid=10031 gids={1015}
INFO/AndroidRuntime(269): NOTE: attach of thread 'Binder Thread #3'
failed
DEBUG/dalvikvm(276): Trying to load lib /data/data/
com.example.hellojni/lib/libhello-jni.so 0x43dc2970
DEBUG/dalvikvm(276): Added shared lib /data/data/com.example.hellojni/
lib/libhello-jni.so 0x43dc2970
DEBUG/dalvikvm(276): No JNI_OnLoad found in /data/data/
com.example.hellojni/lib/libhello-jni.so 0x43dc2970, skipping init
INFO/ActivityManager(58): Displayed activity
com.example.hellojni/.HelloJni: 823 ms (total 823 ms)
DEBUG/dalvikvm(122): GC_EXPLICIT freed 11891 objects / 598608 bytes in
108ms
I hope this helps.
Thanks,
Omar
On May 24, 1:24 am, David Turner <
di...@android.com> wrote:
> "Connection rest by peer" indicates a problem when trying to gdbserver
> running on the device/emulator.
> The most likely problem is that your process crashed before gdbserver could
> attach to it.
>
> On Sun, May 23, 2010 at 10:50 AM,
omarash...@gmail.com <
omarash...@gmail.com
>
>
>
> > wrote:
> > Hi,
>
> > I am not able to start a debug session. I was trying to debug the
> > sample hello-jni, but I get an error message "gdb.setup:4: Error in
> > sourced command file:", "Remote communication error: Connection reset
> > by peer". I followed all the steps for building and made sure all
> > conditions in NDK-GDB.TXT are met. I hope someone can help.
>
> > Thanks,
> > Omar
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "android-ndk" group.
> > To post to this group, send email to
andro...@googlegroups.com.
> > To unsubscribe from this group, send email to
> >
android-ndk...@googlegroups.com<
android-ndk%2Bunsu...@googlegroups.com>
> > .
> For more options, visit this group athttp://
groups.google.com/group/android-ndk?hl=en.