Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Backtracing][Linux] Add Linux crash handler to the runtime. #66334

Merged
merged 5 commits into from Jun 7, 2023

Commits on Jun 5, 2023

  1. [Backtracing][Linux] Add Linux crash handler to the runtime.

    This also adds a function to demangle a symbol, and a way for the
    backtracing code to report warning messages to the same place as
    the main runtime.
    
    I'd like to rename the _swift_isThunkFunction() SPI also, but we
    can't do that until we've made the changes to the _Backtracing
    library, so we'll do that there instead.
    
    rdar://110261430
    al45tair committed Jun 5, 2023
    Copy the full SHA
    2dcaa6f View commit details
    Browse the repository at this point in the history
  2. [Backtracing][Linux] Add missing CrashInfo.h header.

    This was added to a later PR, but not to this one, though we need
    it here.
    
    rdar://110261430
    al45tair committed Jun 5, 2023
    Copy the full SHA
    deb06c8 View commit details
    Browse the repository at this point in the history
  3. [Backtracing][Linux] Disable backtrace-on-crash until enabling PR.

    This should have been disabled until apple#66338.
    
    rdar://110261430
    al45tair committed Jun 5, 2023
    Copy the full SHA
    e5f4c20 View commit details
    Browse the repository at this point in the history

Commits on Jun 6, 2023

  1. [Backtracing][Linux] Tidy a few things up after review.

    Mike and Max made various helpful suggestions, so I've added and updated
    various comments and amended the code to cope with partial reads and
    writes.
    
    rdar://110261430
    al45tair committed Jun 6, 2023
    Copy the full SHA
    14fcdbd View commit details
    Browse the repository at this point in the history
  2. [Backtracing][Linux] Move doc comment to header.

    Moved the comment for `_swift_backtrace_demangle` into the header file
    instead of it being in the implementation.
    
    rdar://110261430
    al45tair committed Jun 6, 2023
    Copy the full SHA
    979b749 View commit details
    Browse the repository at this point in the history