I struggled with this for several days, and I got closer, but still no luck. I am trying to create an android application via ndk-build NDK_DEBUG = 1, which works fine. I can start from eclipse and run it, but I want to debug from the command line. So I tried different approaches with ndk-gdb and no luck. I tried "ndk-gdb --start --nowait --verbose", "ndk-gdb --start --verbose", "ndk-debug" and nothing works. I get a slightly different conclusion if I uncheck the "no-wait" flag, however the same errors appear ...
no flag no wait:
Claudias-MacBook-Pro:Android claudia$ ndk-gdb --start --verbose Android NDK installation path: /Applications/Intel/INDE/Framework/NDK Using default adb command: /Applications/Intel/INDE/Framework/ADT/sdk/platform-tools/adb ADB version found: Android Debug Bridge version 1.0.31 Using ADB flags: Using JDB command: /usr/bin/jdb Using auto-detected project path: . Found package name: com.yourcompany.neckrowfish ABIs targetted by application: armeabi armeabi-v7a Device API Level: 19 Device CPU ABIs: x86 armeabi-v7a Compatible device ABI: armeabi-v7a Using gdb setup init: ./libs/armeabi-v7a/gdb.setup Using toolchain prefix: /Applications/Intel/INDE/Framework/NDK/toolchains/arm-linux-androideabi-4.8/prebuilt/darwin-x86_64/bin/arm-linux-androideabi- Using app out directory: ./obj/local/armeabi-v7a Found debuggable flag: true Found data directory: '/data/data/com.yourcompany.neckrowfish' Found device gdbserver: /data/data/com.yourcompany.neckrowfish/lib/gdbserver Found first launchable activity: .neckrowfish Launching activity: com.yourcompany.neckrowfish/.neckrowfish
This triggers a notification about waiting for a debugger on my Android device, so with the flag that I get:
Claudias-MacBook-Pro:Android claudia$ ndk-gdb --start --nowait --verbose Android NDK installation path: /Applications/Intel/INDE/Framework/NDK Using default adb command: /Applications/Intel/INDE/Framework/ADT/sdk/platform-tools/adb ADB version found: Android Debug Bridge version 1.0.31 Using ADB flags: Using JDB command: /usr/bin/jdb Using auto-detected project path: . Found package name: com.yourcompany.neckrowfish ABIs targetted by application: armeabi armeabi-v7a Device API Level: 19 Device CPU ABIs: x86 armeabi-v7a Compatible device ABI: armeabi-v7a Using gdb setup init: ./libs/armeabi-v7a/gdb.setup Using toolchain prefix: /Applications/Intel/INDE/Framework/NDK/toolchains/arm-linux-androideabi-4.8/prebuilt/darwin-x86_64/bin/arm-linux-androideabi- Using app out directory: ./obj/local/armeabi-v7a Found debuggable flag: true Found data directory: '/data/data/com.yourcompany.neckrowfish' Found device gdbserver: /data/data/com.yourcompany.neckrowfish/lib/gdbserver Found first launchable activity: .neckrowfish Launching activity: com.yourcompany.neckrowfish/.neckrowfish
Does anyone know what my problem might be? Thanks!
source share