parent
513de4039c
commit
b2ea37401e
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue