2007-07-02 Markus Deuling <deuling@de.ibm.com>
[deliverable/binutils-gdb.git] / gdb / target-memory.c
index 64c16e1ac0597cb97d490fbe97956c1cb195e948..cb6acc593a8e53a49066f91ce78460e1166fcbc2 100644 (file)
@@ -1,8 +1,7 @@
 /* Parts of target interface that deal with accessing memory and memory-like
    objects.
 
-   Copyright (C) 2006
-   Free Software Foundation, Inc.
+   Copyright (C) 2006, 2007 Free Software Foundation, Inc.
 
    This file is part of GDB.
 
@@ -167,7 +166,7 @@ blocks_to_erase (VEC(memory_write_request_s) *written)
       CORE_ADDR begin, end;
 
       block_boundaries (ptr->begin, &begin, 0);
-      block_boundaries (ptr->end, 0, &end);
+      block_boundaries (ptr->end - 1, 0, &end);
 
       if (!VEC_empty (memory_write_request_s, result)
          && VEC_last (memory_write_request_s, result)->end >= begin)
This page took 0.023704 seconds and 4 git commands to generate.