Make sys/amd64/linux/linux_ptrace.c machine-independent,
in preparation to move it into sys/compat/linux/.
Details
Details
- Reviewers
jhb kib - Group Reviewers
Linux Emulation - Commits
- rGab52de447881: linux: Make linux_ptrace.c portable
rGc91d0e59be10: linux: Make linux_ptrace.c portable
Diff Detail
Diff Detail
- Repository
- rS FreeBSD src repository - subversion
- Lint
Lint Passed - Unit
No Test Coverage - Build Status
Buildable 42520 Build 39408: arc lint + arc unit
Event Timeline
sys/amd64/linux/linux_ptrace.c | ||
---|---|---|
221 | RAX/RIP are only meaningful for amd64 (and for some stretch i386). If you intent is to only enable this code for amd64 , use #ifdef amd64, not #ifndef. | |
367 | Can we have small per-arch helpers called there, instead of adding more ifdefs (BTW it should be #ifdef amd64). |
sys/amd64/linux/linux_ptrace.c | ||
---|---|---|
367 | I'd prefer to add the per-arch hooks in a separate commit, together with adding some ARM-specific code, after moving this part into sys/compat/. |
Comment Actions
i386 has its own implementation, which I don't intend to touch, apart from moving it so things continue to build (https://reviews.freebsd.org/D32757). We don't support 32-bit Linux ptrace(2) on 64-bit architectures.