diff options
author | Bhasker Hariharan <bhaskerh@google.com> | 2021-04-01 15:36:11 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2021-04-01 15:40:07 -0700 |
commit | b2ea37401ed41b45f5497d04ab4f837a05204f8a (patch) | |
tree | 37a6ed7da0c82716ee4d40ad426a8a02a96d4a34 /pkg/abi/linux/ptrace_arm64.go | |
parent | 513de4039c9ba8fea3fb81c796312f20242c1c5d (diff) |
Internal changes
PiperOrigin-RevId: 366344805
Diffstat (limited to 'pkg/abi/linux/ptrace_arm64.go')
-rw-r--r-- | pkg/abi/linux/ptrace_arm64.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/abi/linux/ptrace_arm64.go b/pkg/abi/linux/ptrace_arm64.go index da36811d2..3d0906565 100644 --- a/pkg/abi/linux/ptrace_arm64.go +++ b/pkg/abi/linux/ptrace_arm64.go @@ -38,3 +38,8 @@ func (p *PtraceRegs) InstructionPointer() uint64 { func (p *PtraceRegs) StackPointer() uint64 { return p.Sp } + +// SetStackPointer sets the stack pointer to the specified value. +func (p *PtraceRegs) SetStackPointer(sp uint64) { + p.Sp = sp +} |