summaryrefslogtreecommitdiffhomepage
path: root/pkg/abi/linux/ptrace_amd64.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/abi/linux/ptrace_amd64.go')
-rw-r--r--pkg/abi/linux/ptrace_amd64.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/abi/linux/ptrace_amd64.go b/pkg/abi/linux/ptrace_amd64.go
index 50e22fe7e..e722971f1 100644
--- a/pkg/abi/linux/ptrace_amd64.go
+++ b/pkg/abi/linux/ptrace_amd64.go
@@ -61,3 +61,8 @@ func (p *PtraceRegs) InstructionPointer() uint64 {
func (p *PtraceRegs) StackPointer() uint64 {
return p.Rsp
}
+
+// SetStackPointer sets the stack pointer to the specified value.
+func (p *PtraceRegs) SetStackPointer(sp uint64) {
+ p.Rsp = sp
+}