diff --git a/gcc7-pr81393.patch b/gcc7-pr81393.patch index 5cd2958..106500a 100644 --- a/gcc7-pr81393.patch +++ b/gcc7-pr81393.patch @@ -26,7 +26,7 @@ import "unsafe" @@ -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) { - return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout))) @@ -61,7 +61,7 @@ import "unsafe" @@ -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) { - return ptrace(PTRACE_GETREGS, pid, 0, uintptr(unsafe.Pointer(regsout)))