From e784e5d56d48303977bcc311ff210acee6e3b058 Mon Sep 17 00:00:00 2001 From: Derek Parker Date: Mon, 8 Dec 2014 17:56:02 -0600 Subject: [PATCH] Isolate linux specific memory reading in threads file --- proctl/threads.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/proctl/threads.go b/proctl/threads.go index 1ca0b6a5..a9615e96 100644 --- a/proctl/threads.go +++ b/proctl/threads.go @@ -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) }