到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
总结
以上是内存溢出为你收集整理的addr2line的用法全部内容,希望文章能够帮你解决addr2line的用法所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)