mirror of
https://github.com/go-delve/delve.git
synced 2025-11-03 05:47:34 +08:00
Isolate linux specific memory reading in threads file
This commit is contained in:
@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user