android ndk - ndk-gdb debugging fails to load symbols : says Unable to get location for thread creation breakpoint -


i have android native code, comprises of static library(xxx.a) , final ndk-build command(with ndk_debug set 1) takes above prebuilt static library , creates shared object.

i use nm command shared object particular function definition , seems available( 001ff2f5 t xxxxx).

but when run ndk-gdb on android device running 4.4.2, gdb fails load shared object symbols :

android ndk installation path: /opt/android-ndk-r8 using specific adb command: ~/desktop/adt-bundle-linux-x86-20131030/sdk/platform-tools/adb adb version found: android debug bridge version 1.0.31 using adb flags:  using auto-detected project path: . found package name: com.example.ue2fileviewer abis targetted application: armeabi device api level: 19 device cpu abis: armeabi-v7a armeabi compatible device abi: armeabi using gdb setup init: ./libs/armeabi/gdb.setup using toolchain prefix: /opt/android-ndk-r8/toolchains/arm-linux-androideabi-4.4.3/prebuilt/linux-x86/bin/arm-linux-androideabi- using app out directory: ./obj/local/armeabi found debuggable flag: true found device gdbserver: /data/data/com.example.ue2fileviewer/lib/gdbserver found data directory: '/data/data/com.example.ue2fileviewer' found first launchable activity: .ue2fvsample launching activity: com.example.ue2fileviewer/.ue2fvsample command: ~/desktop/adt-bundle-linux-x86-20131030/sdk/platform-tools/adb shell start -n com.example.ue2fileviewer/.ue2fvsample starting: intent { cmp=com.example.ue2fileviewer/.ue2fvsample } command:~/desktop/adt-bundle-linux-x86-20131030/sdk/platform-tools/adb shell sleep 10 found running pid: 1650 killing existing debugging session command: ~/desktop/adt-bundle-linux-x86-20131030/sdk/platform-tools/adb shell kill -9 29470 /system/bin/sh: kill: 29470: operation not permitted launched gdbserver succesfully. setup network redirection command:~/desktop/adt-bundle-linux-x86-20131030/sdk/platform-tools/adb forward tcp:5039 localfilesystem:/data/data/com.example.ue2fileviewer/debug-socket command: ~/desktop/adt-bundle-linux-x86-20131030/sdk/platform-tools/adb shell run-as com.example.ue2fileviewer lib/gdbserver +debug-socket --attach 1650 command: ~/desktop/adt-bundle-linux-x86-20131030/sdk/platform-tools/adb pull /system/bin/app_process ./obj/local/armeabi/app_process attached; pid = 1650 listening on sockaddr socket debug-socket 106 kb/s (9560 bytes in 0.087s) pulled app_process device/emulator. command: ~/desktop/adt-bundle-linux-x86-20131030/sdk/platform-tools/adb pull /system/lib/libc.so ./obj/local/armeabi/libc.so 780 kb/s (310652 bytes in 0.388s) pulled libc.so device/emulator. gnu gdb 6.6 copyright (c) 2006 free software foundation, inc. gdb free software, covered gnu general public license, , welcome change and/or distribute copies of under conditions. type "show copying" see conditions. there absolutely no warranty gdb.  type "show warranty" details. gdb configured "--host=i386-linux-gnu --target=arm-elf-linux". (no debugging symbols found) warning: unable find dynamic linker breakpoint function. gdb unable debug shared library initializers , track explicitly loaded dynamic code. warning: shared library handler failed enable breakpoint 0x4004f73c in ?? () gdb: unable location thread creation breakpoint: requested event not supported (gdb)  

i running on ubuntu, ndk-r8 ndk version , on android sdk platform android-19.

i have tried posts available in stack overflow none of seems work me. have been trying set breakpoint in function present in static library no success.

can please provide insight of might going wrong , how proceed here ndk-gdb debugging working?

can try compiling app_optim=debug in addition ndk_debug=1 ? also, upgrading latest version of ndk (r9d) may help, there large amount of bug fixes concerning gdb since r8.


Comments

Popular posts from this blog

get url and add instance to a model with prefilled foreign key :django admin -

css - Make div keyboard-scrollable in jQuery Mobile? -

ruby on rails - Seeing duplicate requests handled with Unicorn -