-
-
Notifications
You must be signed in to change notification settings - Fork 3k
std.debug
: greatly expand target support for segfault handling/unwinding, and remove public ucontext_t
completely
#25516
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
Merged
Merged
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
c8efebc
std.os.linux: remove dead/wrong msghdr definitions in some arch bits
alexrp 6c760d7
std.os.linux: define PROT.SEM for xtensa
alexrp 98f0bf9
std.debug: fix SelfInfo default for freestanding ELF targets
alexrp 3f5e782
std.debug: fix FP unwinding for LoongArch
alexrp f33d3a5
std.debug: greatly expand target support for segfault handling/unwinding
alexrp 36dbe66
std: stop exposing anything having to do with ucontext_t
alexrp File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Illumos and Solaris haven't supported x86 for a while now. You can run old binaries but it's discouraged to create new ones.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know Solaris hasn't, but illumos seems to still support userspace 32-bit applications? http://www.tribblix.org/32bit.html
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It only matters how you define
can_unwind
:If 2 doesn't matter then you may as well add x86 to Solaris as well. It seems like it doesn't since
sparc64-solaris
isn't there.There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sparc64-solaris
is just a to-do along withsparc64-linux
and others; I'll do a later pull request that adds full SPARC unwinding to all ofstd.debug
(unless @mlugg beats me to it?).In general, I'm going off
test/llvm_targets.zig
for what targets are relevant here. That file in turn boils down to which targets are still supported by the developers/vendor of the OS. If a target is missing here, it's probably because it's missing intest/llvm_targets.zig
, while a@compileError
represents work to be done.That said, I'm not sure I entirely understand point 2; the Zig compiler should in theory be able to emit code for
x86-solaris
,sparc-solaris
,sparc64-solaris
, etc. It's just that if a target is effectively dead and no one cares about it, we're not going to bother maintaining code paths for it.