aboutsummaryrefslogtreecommitdiff
path: root/gdb/target.c
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2007-07-01 22:35:55 +0000
committerDaniel Jacobowitz <drow@false.org>2007-07-01 22:35:55 +0000
commit5ad3a4ca203f5ec10d4c5eb801077f494e2a095e (patch)
tree61d95c0b6b003886ba88747bb70f699d83bedda5 /gdb/target.c
parent159fcc13bb1e275041f2a2166be3319ce3fe4dc0 (diff)
downloadgdb-5ad3a4ca203f5ec10d4c5eb801077f494e2a095e.zip
gdb-5ad3a4ca203f5ec10d4c5eb801077f494e2a095e.tar.gz
gdb-5ad3a4ca203f5ec10d4c5eb801077f494e2a095e.tar.bz2
PR symtab/2161
* target.c (memory_xfer_partial): Do not continue past targets with all memory.
Diffstat (limited to 'gdb/target.c')
-rw-r--r--gdb/target.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/gdb/target.c b/gdb/target.c
index 496cd92..2bb50e6 100644
--- a/gdb/target.c
+++ b/gdb/target.c
@@ -1084,6 +1084,11 @@ memory_xfer_partial (struct target_ops *ops, void *readbuf, const void *writebuf
if (res > 0)
return res;
+ /* We want to continue past core files to executables, but not
+ past a running target's memory. */
+ if (ops->to_has_all_memory)
+ return res;
+
ops = ops->beneath;
}
while (ops != NULL);