7.1.1-6
This commit is contained in:
parent
d898f48f0c
commit
e4d350db67
@ -26,7 +26,7 @@
|
|||||||
import "unsafe"
|
import "unsafe"
|
||||||
@@ -12,10 +29,20 @@ func (r *PtraceRegs) PC() uint64 { retur
|
@@ -12,10 +29,20 @@ func (r *PtraceRegs) PC() uint64 { retur
|
||||||
|
|
||||||
func (r *PtraceRegs) SetPC(pc uint64) { r.Psw.addr = pc }
|
func (r *PtraceRegs) SetPC(pc uint64) { r.Psw.Addr = pc }
|
||||||
|
|
||||||
-func PtraceGetRegs(pid int, regsout *PtraceRegs) (err error) {
|
-func PtraceGetRegs(pid int, regsout *PtraceRegs) (err error) {
|
||||||
- return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout)))
|
- return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout)))
|
||||||
@ -61,7 +61,7 @@
|
|||||||
import "unsafe"
|
import "unsafe"
|
||||||
@@ -12,10 +14,20 @@ func (r *PtraceRegs) PC() uint64 { retur
|
@@ -12,10 +14,20 @@ func (r *PtraceRegs) PC() uint64 { retur
|
||||||
|
|
||||||
func (r *PtraceRegs) SetPC(pc uint64) { r.Psw.addr = uint32(pc) }
|
func (r *PtraceRegs) SetPC(pc uint64) { r.Psw.Addr = uint32(pc) }
|
||||||
|
|
||||||
-func PtraceGetRegs(pid int, regsout *PtraceRegs) (err error) {
|
-func PtraceGetRegs(pid int, regsout *PtraceRegs) (err error) {
|
||||||
- return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout)))
|
- return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout)))
|
||||||
|
Loading…
Reference in New Issue
Block a user