Get function names from call stack

后端 未结 3 1448
醉梦人生
醉梦人生 2020-11-30 06:49

I am working on an Android program which calls in to native code. That native code is segfaulting, and since getting debugging working through the android NDK is not really

3条回答
  •  自闭症患者
    2020-11-30 07:41

    You should have a copy of arm-eabi-addr2line available in the NDK bin directory. You can use this with a command like:

    arm-eabi-addr2line -f -e /path/to/lib/with/symbols.so 0x001fb18a

    That will crawl through the debug symbols in the shared lib to get file and line number information. For best results hand it a library that hasn't had the debugging stuff stripped out.

提交回复
热议问题