unix: extend z/OS support - #282
Conversation
- Adds a ptrace implementation that provides a linux-compatible api as closely as possible - Core ptrace operations are implemented using z/OS's BPX4PTR syscall. Memory operations use PT_READ_BLOCK/PT_WRITE_BLOCK. Register operations use PT_READ_GPR/PT_WRITE_GPR for 64-bit values. - z/OS lacks native single-step support so it is emulated using temporary breakpoints. - Unsupported operations return ENOSYS
Move z/OS LE interaction functions from unix package to runtime package in order to reduce code duplication.
- Changes bpxcall to use R15 instead of R9, reducing register pressure.
|
This PR (HEAD: 63d45cb) has been imported to Gerrit for code review. Please visit Gerrit at https://go-review.googlesource.com/c/sys/+/796660. Important tips:
|
|
Message from Gopher Robot: Patch Set 1: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/796660. |
|
Message from Gopher Robot: Patch Set 1: Congratulations on opening your first change. Thank you for your contribution! Next steps: Most changes in the Go project go through a few rounds of revision. This can be During May-July and Nov-Jan the Go project is in a code freeze, during which Please don’t reply on this GitHub thread. Visit golang.org/cl/796660. |
|
Message from Bill O'Farrell: Patch Set 1: Code-Review+1 Commit-Queue+1 (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/796660. |
|
Message from golang-scoped@luci-project-accounts.iam.gserviceaccount.com: Patch Set 1: Dry run: CV is trying the patch. Bot data: {"action":"start","triggered_at":"2026-07-27T16:54:35Z","revision":"4898aa9641dcabb3e92783dc271deb3303703226"} Please don’t reply on this GitHub thread. Visit golang.org/cl/796660. |
|
Message from Bill O'Farrell: Patch Set 1: -Commit-Queue (Performed by <GERRIT_ACCOUNT_60063> on behalf of <GERRIT_ACCOUNT_11191>) Please don’t reply on this GitHub thread. Visit golang.org/cl/796660. |
|
Message from golang-scoped@luci-project-accounts.iam.gserviceaccount.com: Patch Set 1: This CL has passed the run Please don’t reply on this GitHub thread. Visit golang.org/cl/796660. |
|
Message from golang-scoped@luci-project-accounts.iam.gserviceaccount.com: Patch Set 1: LUCI-TryBot-Result+1 Please don’t reply on this GitHub thread. Visit golang.org/cl/796660. |
|
Message from Joon Lee: Patch Set 2: (1 comment) Please don’t reply on this GitHub thread. Visit golang.org/cl/796660. |
This commit adds the z/OS implementation of ptrace as
well as other minor changes: