How iOS resolves addresses in a crash file

Source: Internet
Author: User

1. store app files in the directory

2. Open File

3. Execute command otool-arch arm64-l./qqstock | grep-b 1-a "LC_SEGM" | grep-b 3-a 8 "__text"

4. Parse command xcrun atos-arch arm64-o./qqstock 0x100633614

You need to calculate the absolute address (base address + offset address)

lideimac:4.0.1 lixiang$

lideimac:4.0.1 lixiang$ Cd/users/lixiang/desktop/crash/4.0.1/qqstock.app

LideiMac:QQStock.app lixiang$ otool-arch arm64-l./qqstock | Grep-b 1-a "Lc_segm" | Grep-b 3-a 8 "__text"

Load Command 1

CMD lc_segment_64

Cmdsize 1032

Segname __text

Vmaddr 0x0000000100000000

Vmsize 0x0000000000ae0000

Fileoff 0

FileSize 11403264

Maxprot 0x00000005

Initprot 0x00000005

Nsects 12

Flags 0x0

LideiMac:QQStock.app lixiang$ xcrun atos-arch arm64-o./qqstock 0x100633614

-[ctipslistviewcontroller Alertview:clickedbuttonatindex:] (in Qqstock) (ctipslistviewcontroller.m:538)

LideiMac:QQStock.app lixiang$

How iOS resolves addresses in a crash file

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.