Import class-dump info into GDB

后端 未结 3 1353
既然无缘
既然无缘 2020-12-22 21:51

Is there a way to import the output from class-dump into GDB?

Example code:

$ cat > test.m
#include 
#import 

        
3条回答
  •  无人及你
    2020-12-22 22:55

    You can use DSYMCreator.

    1. With DSYMCreator, you can create a symbol file from an iOS executable binary.

      It's a toolchain, so you can use it like this.

      $ ./main.py --only-objc /path/to/binary/xxx

      Then a file /path/to/binary/xxx.symbol will be created, which is a DWARF format symbol. you can import it to lldb by yourself.

    2. Apart from that, DSYMCreator also supports to export symbols from IDA Pro, you can use it like this.

      $ ./main.py /path/to/binary/xxx

      YES, just ignore --only-objc flag. Then the IDA Pro will run automatically, and then a file /path/to/binary/xxx.symbol will be created, which is the symbol file.

    Thanks 0xced for creating objc-symbols, which is a part of DSYMCreator toolchain.

    BTW, https://github.com/tobefuturer/restore-symbol is another choice.

提交回复
热议问题