mirror of
https://github.com/go-delve/delve.git
synced 2025-10-30 10:17:03 +08:00
@ -103,6 +103,9 @@ func (r *SplicedMemory) ReadMemory(buf []byte, addr uintptr) (n int, err error)
|
|||||||
return n, fmt.Errorf("hit unmapped area at %v after %v bytes", addr, n)
|
return n, fmt.Errorf("hit unmapped area at %v after %v bytes", addr, n)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// The reading of the memory has been started after the first iteration
|
||||||
|
started = true
|
||||||
|
|
||||||
// Don't go past the region.
|
// Don't go past the region.
|
||||||
pb := buf
|
pb := buf
|
||||||
if addr+uintptr(len(buf)) > entry.offset+entry.length {
|
if addr+uintptr(len(buf)) > entry.offset+entry.length {
|
||||||
|
|||||||
Reference in New Issue
Block a user