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. |
This commit adds the z/OS implementation of ptrace as well as other minor changes: