Get function names from call stack

后端 未结 3 1456
醉梦人生
醉梦人生 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条回答
  •  猫巷女王i
    2020-11-30 07:30

    You need to generate a map file. The map file contains the function address and memory locations in your executable. Have your build system modified to generate a map file.

    From the map file, you can use a text editor and search for addresses. I once wrote a program to find the two symbols bounding a given address. Worked great for environments like yours.

提交回复
热议问题