]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
PR symtab/2161
authorDaniel Jacobowitz <drow@false.org>
Sun, 1 Jul 2007 22:35:55 +0000 (22:35 +0000)
committerDaniel Jacobowitz <drow@false.org>
Sun, 1 Jul 2007 22:35:55 +0000 (22:35 +0000)
* target.c (memory_xfer_partial): Do not continue past targets with
all memory.

gdb/ChangeLog
gdb/target.c

index 94f98e5b55ccb9e20f7c00e431978e157fcb0c65..3cc6fb712bc537dfcfee779edda6bb17990d4901 100644 (file)
@@ -1,3 +1,9 @@
+2007-07-01  Daniel Jacobowitz  <dan@codesourcery.com>
+
+       PR symtab/2161
+       * target.c (memory_xfer_partial): Do not continue past targets with
+       all memory.
+
 2007-06-30  Andreas Schwab  <schwab@suse.de>
 
        * m68k-tdep.c (m68k_ps_type): New.
index 496cd920e64e78f144e528d2ccfb26261ca5227c..2bb50e6f6b8ed196e1476870ff9e3b08aeb67589 100644 (file)
@@ -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);