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

Improve test-ptrace portability #549

Merged
merged 2 commits into from
Jun 14, 2023
Merged

Improve test-ptrace portability #549

merged 2 commits into from
Jun 14, 2023

Conversation

lemul
Copy link
Contributor

@lemul lemul commented Jun 14, 2023

Fix for FreeBSD, second try.

Commit 06468ef has changed /bin/ls to ls for NixOS compatibility,
however this is wrong for FreeBSD which is uses execve syscall.
For better portability use execvpe if present or fallback to execve.
Unfortunately, FreeBSD, in addition to PT_SYSCALL, also defines PTRACE_SYSCALL
with a different meaning. Prefer PT_SYSCALL if present.
@bregma bregma merged commit 3af57cd into libunwind:master Jun 14, 2023
@lemul lemul deleted the ptrace2 branch June 14, 2023 21:01
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