其他分享
首页 > 其他分享> > addr2line的用法

addr2line的用法

作者:互联网

到ndk找到addr2line,例如:

 /Users/yangjun/Library/Android/sdk/ndk/android-ndk-r9d/toolchains/x86-4.8/prebuilt/darwin-x86_64/bin/i686-linux-android-addr2line

然后执行:

./i686-linux-android-addr2line -f -C -e 带符号so的文件路径 地址

 

 

示例:

./i686-linux-android-addr2line -f -C -e /Users/yangjun/git/dingtalk/TBLiveStream-Android/artc-core/src/main/obj/local/armeabi-v7a/libTaoLive.so 0x33308

_JNIEnv::NewStringUTF(char const*)

/Users/liuyouxue/Library/Android/sdk/ndk/android-ndk-r9d/platforms/android-16/arch-arm/usr/include/jni.h:873

 

./i686-linux-android-addr2line -f -C -e /Users/yangjun/git/dingtalk/TBLiveStream-Android/artc-core/src/main/obj/local/armeabi-v7a/libTaoLive.so 0x476e4

TaoLivePublishEngine_Impl::onCsd(int, Buffer_Struct const&)

/Users/liuyouxue/work/android/dingding/c-bug/TBLiveStream-Android/artc-core/src/main/jni/LiveMediaFramework/fw/engine/TaoLivePublishEngine_Impl.cpp:856

 

./i686-linux-android-addr2line -f -C -e /Users/yangjun/git/dingtalk/TBLiveStream-Android/artc-core/src/main/obj/local/armeabi-v7a/libTaoLive.so 0x49cd8

FAACEncoder::configure(encode_param const&)

/Users/liuyouxue/work/android/dingding/c-bug/TBLiveStream-Android/artc-core/src/main/jni/LiveMediaFramework/fw/codec/FAACEncoder.cpp:82

 

 

 

标签:Users,TBLiveStream,用法,Android,linux,addr2line,android
来源: https://www.cnblogs.com/albert1017/p/14292355.html