Git Product home page Git Product logo

Comments (2)

sthyuhao avatar sthyuhao commented on June 24, 2024 2

/*

  • By default, the pointer fields in the arm_thread_state64_t structure are
  • opaque on the arm64e architecture and require the use of accessor macros.
  • This mode can also be enabled on the arm64 architecture by building with
  • -D__DARWIN_OPAQUE_ARM_THREAD_STATE64=1.
    */
    #if defined(arm64) && defined(LP64)

#if __has_feature(ptrauth_calls)
#define __DARWIN_OPAQUE_ARM_THREAD_STATE64 1
#define __DARWIN_PTRAUTH_ARM_THREAD_STATE64 1
#endif /* __has_feature(ptrauth_calls) */

#ifndef __DARWIN_OPAQUE_ARM_THREAD_STATE64
#define __DARWIN_OPAQUE_ARM_THREAD_STATE64 0
#endif

#else /* defined(arm64) && defined(LP64) */

#undef __DARWIN_OPAQUE_ARM_THREAD_STATE64
#define __DARWIN_OPAQUE_ARM_THREAD_STATE64 0

#endif /* defined(arm64) && defined(LP64) */

库里的注释说明了在arm64e架构下需要开启_DARWIN_OPAQUE_ARM_THREAD_STATE64,开始天真的以为有__arm64__就会有__arm64e__。通过源码的调用方式修改一下属性就行了

`

uintptr_t bs_mach_framePointer(_STRUCT_MCONTEXT * const machineContext) {

#if __has_feature(ptrauth_calls)

    return machineContext->__ss.__opaque_fp;

#else

    return machineContext->__ss.__fp;

#endif

}

`

from bsbacktracelogger.

sthyuhao avatar sthyuhao commented on June 24, 2024

------------命令(xcodebuild build -workspace gen/App.xcworkspace -scheme XXX -configuration 'Debug' -sdk iphoneos -arch 'arm64e' SYMROOT='../../BuildTemp')执行错误------------

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.