Internal changes

PiperOrigin-RevId: 366344805
This commit is contained in:
Bhasker Hariharan
2021-04-01 15:40:07 -07:00
committed by gVisor bot
parent 513de4039c
commit b2ea37401e
2 changed files with 10 additions and 0 deletions
+5
View File
@@ -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
}
+5
View File
@@ -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
}