crash - How do I use addr2line for Android? -
my code (a game using andengine physicsbox2dextension on android) crashing , has been suggested use addr2line, have absolutely not idea how , many "tutorials" i've looked @ extraordinarily vague. perhaps give me step step instructions?
i'm using windows 7 , eclipse indigo. i've downloaded android ndk r8 , saved c:\program files (x86)\android ndk\android-ndk-r8. project saved c:\users\reese\workspace\testgfx5.
the stacktrace:
07-06 13:25:27.469: i/debug(19582): #00 pc 00011f74 /system/lib/libc.so 07-06 13:25:27.473: i/debug(19582): #01 pc 0001921e /system/lib/libc.so 07-06 13:25:27.473: i/debug(19582): #02 pc 00026558 /data/data/com.prattia.webs.testgfx5/lib/libandenginephysicsbox2dextension.so 07-06 13:25:27.473: i/debug(19582): #03 pc 00013e7c /data/data/com.prattia.webs.testgfx5/lib/libandenginephysicsbox2dextension.so 07-06 13:25:27.473: i/debug(19582): #04 pc 00016e34 /system/lib/libdvm.so
beyond that, i'm lost. please?
use ndk-stack
instead. save native log crash in file, says log.txt , use
$ndk_home/ndk-stack -sym $project_home/obj/local/armeabi -dump log.txt
of course, native library has compiled debug symbols.
from doc:
'ndk-stack' simple tool allows filter stack traces appear in output of 'adb logcat' , replace address inside shared library corresponding "source-file : line-number" values.
Comments
Post a Comment