atos and dwarfdump won't symbolicate my address

前端 未结 6 901
粉色の甜心
粉色の甜心 2020-12-02 07:55

I received a crash report via AirBrake.io that isn\'t symbolicated. Since the crash report is not in exactly the same format as an Apple crashlog I can\'t just drop it on XC

6条回答
  •  醉酒成梦
    2020-12-02 08:22

    For whom that certain times doesn't have the value for Load Address like this:

    Jan 14 11:02:39 Dennins-iPhone AppName[584] : Stack Trace: (
        0   CoreFoundation                      0x2c3084b7  + 150
        1   libobjc.A.dylib                     0x39abec8b objc_exception_throw + 38
        2   CoreFoundation                      0x2c21cc35 CFRunLoopRemoveTimer + 0
        3   AppName                             0x0005a7db AppName + 272347  
    

    I've created a simple bash to help me debug:

    #! /bin/bash
    read -p "[Path] [App Name] [Stack Address] [Relative Address] " path appName runtimeAddress relativeAddress
    loadAddress=`echo "obase=16;ibase=10;$((runtimeAddress-relativeAddress))" | bc`
    atos -o $path/Payload/$appName.app/$appName -l $loadAddress $runtimeAddress -arch armv7
    

    It just reads the path for the app, the app name, the runtime address, and the value after "+" signal (the decimal value) and then find the value for load address to run atos command.

提交回复
热议问题