Open vinjn opened 11 years ago
Android architecture consists of the following layers:
To direct printf to logcat
echo "log.redirect-stdio = true" > /data/local.prop
adb shell cat /data/tombstones/tombstone_00 | ndk-stack -sym solution/obj/local/armeabi/
print human-readable callstack
You don't need to use -O0 or -g switches. You need to do one of following:
Can you try running gdb manually, without gdb script? It involves following steps:
set solib-search-path obj/local/armeabi
file obj/local/armeabi/libMySharedLib.so
target remote :5055
And see if you can debug then.
If you want see symbols for other shared libraries your library is using like libc.so
, then pull them from device (from /system/lib folder) to your obj/local/armeabi folder.
ndk-gdb --start com.nvidia.trex.TREXActivity --force --verbose
C:\Downloads\adt-bundle-windows-x86-20130219\sdk\tools\monitor.bat