Skip to content

Add "process metadata" Mach-O LC_NOTE for corefiles #7450

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

Conversation

jasonmolenda
Copy link

Add "process metadata" Mach-O LC_NOTE for corefiles

Add a new LC_NOTE for Mach-O corefiles, "proces metadata", which is a JSON string. Currently there may be a threads key in the JSON, and if threads is present, it is an array with the same number of elements as there are LC_THREADs in the corefile. This patch adds support for a thread_id key-value for each thread entry, to supply a thread ID for that LC_THREAD.

Differential Revision: https://reviews.llvm.org/D158785 rdar://113037252

(cherry picked from commit 2cab996)

Add a new LC_NOTE for Mach-O corefiles, "proces metadata", which is a
JSON string.  Currently there may be a `threads` key in the JSON,
and if `threads` is present, it is an array with the same number of
elements as there are LC_THREADs in the corefile.  This patch adds
support for a `thread_id` key-value for each `thread` entry, to
supply a thread ID for that LC_THREAD.

Differential Revision: https://reviews.llvm.org/D158785
rdar://113037252

(cherry picked from commit 2cab996)
@jasonmolenda
Copy link
Author

@swift-ci please test

@JDevlieghere JDevlieghere merged commit 78ee72d into swiftlang:stable/20221013 Sep 13, 2023
@jasonmolenda jasonmolenda deleted the r113037252-process-metadata-lcnote-01013 branch September 13, 2023 00:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants