ndk-stack 으로 so 파일 debugging 하기

2013. 5. 13. 23:10·Android Development
반응형
refer to : http://yssays.wordpress.com/2011/12/27/android-ndk-stack-tool/
https://code.google.com/p/android-ndk-stacktrace-analyzer/wiki/Usage
http://www.codexperiments.com/android/2010/08/tips-tricks-debugging-android-ndk-stack-traces/

 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/&lt;ab&gt;, where

&lt;ab&gt; 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 &gt; /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
'Android Development' 카테고리의 다른 글
  • Activity 방향 고정하기
  • SQLiteOpenHelper Singleton instance creating.
  • Activity unregister / Leaked IntentReceiver issue
  • NFC Guide
fogthegreat
fogthegreat
아주 오랫동안 이것 저것 개발하면서 배우고 찾아 본 것들을 적거나 모았습니다. 불편한 점이 있다면 알려주세요. (과거에 불펌한 글들을 모두 제거하고 있는 중이에요. 🙏)
  • fogthegreat
    꿈소년의 개발 이야기
    fogthegreat
  • 전체
    오늘
    어제
    • 전체보기 (242)
      • Software Engineering (56)
      • Android Development (78)
      • 일상다반사 (63)
      • 책에 대한 거의 모든 것 (11)
      • 영어공부 (1)
      • ETC (0)
      • 챌린지 (1)
      • Do it 스터디! (32)
  • 블로그 메뉴

    • 홈
    • 태그
    • 방명록
  • 링크

    • 향로
    • 청하가 제안하는 소프트웨어 엔지니어로써 재미있게 사는 …
    • WhoRU? Story...♡
    • Snapshot
    • 두잇! - 이지스퍼블리싱
    • 제이펍의 참 똑똑한 2비트 책 이야기
    • Inpa Dev
  • 공지사항

  • 인기 글

  • 태그

    탐지기법
    안드로이드 개발
    Eclipse
    보안
    안드로이드
    html
    구글
    google
    gradle
    js
    JavaScript
    리눅스
    자바
    ActiveX
    css
    안철수
    Android
    hcj
    linux
    개발
    Android 4.1
    java
    노개북
    build.gradle
    OOM
    git
    하버드
    kotlin
    코틀린
    C++
  • 최근 댓글

  • 최근 글

  • hELLO· Designed By정상우.v4.10.6
fogthegreat
ndk-stack 으로 so 파일 debugging 하기
상단으로

티스토리툴바