forked from Imagelibrary/binutils-gdb
* target.c (memory_xfer_partial): Accesses to unmapped overlay
sections should always go to the executable file.
This commit is contained in:
@@ -1,3 +1,8 @@
|
|||||||
|
2007-07-24 Ulrich Weigand <uweigand@de.ibm.com>
|
||||||
|
|
||||||
|
* target.c (memory_xfer_partial): Accesses to unmapped overlay
|
||||||
|
sections should always go to the executable file.
|
||||||
|
|
||||||
2004-07-20 Chris Dearman <chris@mips.com>
|
2004-07-20 Chris Dearman <chris@mips.com>
|
||||||
|
|
||||||
* mips-tdep.c (heuristic_proc_start): Add more MIPS16 function
|
* mips-tdep.c (heuristic_proc_start): Add more MIPS16 function
|
||||||
|
|||||||
@@ -1017,6 +1017,14 @@ memory_xfer_partial (struct target_ops *ops, void *readbuf, const void *writebuf
|
|||||||
return xfer_memory (memaddr, readbuf, len, 0, NULL, ops);
|
return xfer_memory (memaddr, readbuf, len, 0, NULL, ops);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/* Likewise for accesses to unmapped overlay sections. */
|
||||||
|
if (readbuf != NULL && overlay_debugging)
|
||||||
|
{
|
||||||
|
asection *section = find_pc_overlay (memaddr);
|
||||||
|
if (pc_in_unmapped_range (memaddr, section))
|
||||||
|
return xfer_memory (memaddr, readbuf, len, 0, NULL, ops);
|
||||||
|
}
|
||||||
|
|
||||||
/* Try GDB's internal data cache. */
|
/* Try GDB's internal data cache. */
|
||||||
region = lookup_mem_region (memaddr);
|
region = lookup_mem_region (memaddr);
|
||||||
/* region->hi == 0 means there's no upper bound. */
|
/* region->hi == 0 means there's no upper bound. */
|
||||||
|
|||||||
Reference in New Issue
Block a user