* target.c (memory_xfer_partial): Accesses to unmapped overlay
sections should always go to the executable file.
This commit is contained in:
parent
94226e8246
commit
98646950ba
2 changed files with 13 additions and 0 deletions
|
@ -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>
|
||||
|
||||
* 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);
|
||||
}
|
||||
|
||||
/* 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. */
|
||||
region = lookup_mem_region (memaddr);
|
||||
/* region->hi == 0 means there's no upper bound. */
|
||||
|
|
Loading…
Reference in a new issue