Sorry about the late reply, haven't been in the office until now,
Here's what I get from the --verbose option
Android NDK installation path: /cygdrive/d/Android/android-ndk-r4b
Using specific adb command: D:\Android\android-sdk-windows/tools/
adb.exe
ADB version found: Android Debug Bridge version 1.0.26
Using final ADB command: 'D:\Android\android-sdk-windows/tools/
adb.exe'
Using auto-detected project path: .
Found package name: com.mycompany.project
Found debuggable flag: true
ABIs targetted by application: armeabi
Device API Level: 8
Device CPU ABI: armeabi
Compatible device ABI: armeabi
Found device gdbserver: /data/data/com.mycompany.project/lib/gdbserver
Using gdb setup init: /cygdrive/d/projects/phonedev/<project>/main-dev/
android/libs/armeabi/gdb.setup
Using toolchain prefix: /cygdrive/d/Android/android-ndk-r4b/build/
prebuilt/windows/arm-eabi-4.4.0/bin/arm-eabi-
Using app out directory: /cygdrive/d/projects/phonedev/<project>/main-
dev/android/obj/local/armeabi
Found data directory: '/data/data/com.mycompany.project'
Found first launchable activity: ProjectActivity
Launching activity: com.mycompany.project/ProjectActivity
##### NEW COMMAND
D:\Android\android-sdk-windows/tools/adb.exe shell am start -n
com.mycompany.project/ProjectActivity
Starting: Intent { cmp=com.mycompany.project/ProjectActivity }
Error type 3
Error: Activity class {com.mycompany.project/ProjectActivity} does not
exist.
##### NEW COMMAND
D:\Android\android-sdk-windows/tools/adb.exe shell sleep 1
Found running PID: 1759
Launched gdbserver succesfully.
Setup network redirection
##### NEW COMMAND
##### NEW COMMAND
D:\Android\android-sdk-windows/tools/adb.exe shell run-as
com.mycompany.project lib/gdbserver +debug-socket --attach 1759
D:\Android\android-sdk-windows/tools/adb.exe forward tcp:5039
localfilesystem:/data/data/com.mycompany.project/debug-socket
[1] Segmentation fault run-as com.mycom...
##### NEW COMMAND
D:\Android\android-sdk-windows/tools/adb.exe pull /system/bin/
app_process D:/projects/phonedev/<project>/main-dev/android/obj/local/
armeabi/app_process
354 KB/s (0 bytes in 5680.000s)
Pulled from device/emulator.
GNU gdb 6.6
Copyright (C) 2006 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and
you are
welcome to change it and/or distribute copies of it under certain
conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for
details.
This GDB was configured as "--host=i686-pc-cygwin --target=arm-elf-
linux".
/cygdrive/d/projects/phonedev/<project>/main-dev/android/obj/local/
armeabi/gdb.setup:5: Error in sourced command file:
Remote communication error: Connection reset by peer.
(gdb)
I get the same results if I run this with the "wait for debugger"
option enabled or have an infinite loop with the native code, i.e. it
doesn't seem to depend on the state of the app.
Thanks,
Grant
> >
android-ndk...@googlegroups.com<android-ndk%2Bunsubscribe@googlegr
oups.com>
> > .