提交 460bedf4 编写于 作者: D Derek Parker

Use generic ReadMemory isntead of Ptrace

上级 e784e5d5
......@@ -6,7 +6,6 @@ import (
"fmt"
"strconv"
"strings"
"syscall"
"unsafe"
"github.com/derekparker/delve/dwarf/op"
......@@ -627,7 +626,7 @@ func (thread *ThreadContext) readFloat(addr uintptr, size int64) (string, error)
func (thread *ThreadContext) readMemory(addr uintptr, size uintptr) ([]byte, error) {
buf := make([]byte, size)
_, err := syscall.PtracePeekData(thread.Id, addr, buf)
_, err := ReadMemory(thread.Id, addr, buf)
if err != nil {
return nil, err
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册