Git Product home page Git Product logo

Comments (1)

Robinguo2012 avatar Robinguo2012 commented on July 22, 2024

为了去掉指令地址中的指针标签。因为ARMv7 中的地址分为Thumb Mode 和 Normal Mode,对应的指令地址分别是2字节 和 4字节,arm64下指令地址都是4字节,(按照4字节对齐存储,一条指令必须从4的整数倍地址来取)所以指令地址的最后2 bits 肯定都是0,系统一般会在这后两位中插入一个指针标签,要去掉这个标签的值才是真正的指令地址。而x86_64中指令是可变长度的,所有的bits 都是有意义的。
这个宏的作用就是为了适配x86 和 arm平台的指令处理方式不同。
https://github.com/kstenerud/KSCrash/blob/master/Source/KSCrash/Recording/Tools/KSSymbolicator.c

from bsbacktracelogger.

Related Issues (16)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.