https://code.google.com/p/android-ndk-stacktrace-analyzer/wiki/Usage
android ndk 내에 ndk-stack 이 있다.
라이브러리에서 생긴 문제가 되는 라인이 어딘지 찾아낸다.
1) adb logcat | ndk-stack -sym <Path to your shared libraries>
2) ndk-stack -sym <Path to your shared libraries> -dump <file name containing the crash logs>
Usage:
------
To do this, you will first need a directory containing symbolic versions of your
application's shared libraries. If you use the NDK build system (i.e. ndk-build),
then these are always located under $PROJECT_PATH/obj/local/<ab>, where
<ab> stands for your device's ABI (i.e. 'armeabi' by default).
You can feed the logcat text either as direct input to the program, e.g.:
adb logcat | $NDK/ndk-stack -sym $PROJECT_PATH/obj/local/armeabi
Or you can use the -dump option to specify the logcat as an input file, e.g.:
adb logcat > /tmp/foo.txt
$NDK/ndk-stack -sym $PROJECT_PATH/obj/local/armeabi -dump foo.txt
추가적으로 tomstone 파일과 합쳐서 보기
cat <tombstone 파일> | ndk-stack –sym /out/target/product/generic/symbols/system/lib >> symbol.txt
'Android Development' 카테고리의 다른 글
| Activity 방향 고정하기 (0) | 2014.10.01 |
|---|---|
| SQLiteOpenHelper Singleton instance creating. (0) | 2013.07.04 |
| Activity unregister / Leaked IntentReceiver issue (0) | 2013.05.09 |
| NFC Guide (0) | 2013.05.08 |
| DDMS thread dump (0) | 2013.03.30 |