How to get longer stack dump (tombstone) from android?

前端 未结 2 1656
情歌与酒
情歌与酒 2020-12-23 15:29

As I have noticed, logcat returns always 34 lines of crashlog, like this:

4cf7c700  401c0000 
4cf7c704  48463ff0 
4cf7c708  44d11f7c  
4cf7c70c  afd0cd89 
4         


        
2条回答
  •  北海茫月
    2020-12-23 16:00

    I suggest debugging the stack trace found in the tombstone file like the example below.

    Example:

    #00  pc 00010a20  /system/lib/libc.so
    #01  pc 0000b332  /system/lib/libc.so
    #02  pc 0000ca62  /system/lib/bluez-plugin/audio.so
    #03  pc 0000d1ce  /system/lib/bluez-plugin/audio.so
    #04  pc 0000e0ba  /system/lib/bluez-plugin/audio.so
    

    You can use the command below to know the function name, file name and line no.

    $(android-root)prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/addr2line -f -e /out/product/xxx/symbols/system/ 
    

    Example:

    $(android-root)prebuilt/linux-x86/toolchain/arm-eabi-4.4.0/bin/addr2line -f -e /out/product/xxx/symbols/system/libc.so 0x00010a20
    

提交回复
热议问题