提交 e784e5d5 编写于 作者: D Derek Parker

Isolate linux specific memory reading in threads file

上级 e299dfde
......@@ -294,7 +294,7 @@ func (thread *ThreadContext) ReturnAddressFromOffset(offset int64) uint64 {
retaddr := int64(regs.SP()) + offset
data := make([]byte, 8)
syscall.PtracePeekText(thread.Id, uintptr(retaddr), data)
ReadMemory(thread.Id, uintptr(retaddr), data)
return binary.LittleEndian.Uint64(data)
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册