aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2007-06-07 14:24:15 +0000
committerDaniel Jacobowitz <drow@false.org>2007-06-07 14:24:15 +0000
commit1fc01e0339a2ffbae943acefdc99dbf3bda68274 (patch)
treebc407379bbae839403a79eaf0f8cfc96bb30dbb9 /gdb/target-memory.c
parentCleanup white spaces and fix an entry. (diff)
downloadbinutils-gdb-1fc01e0339a2ffbae943acefdc99dbf3bda68274.tar.gz
binutils-gdb-1fc01e0339a2ffbae943acefdc99dbf3bda68274.tar.bz2
binutils-gdb-1fc01e0339a2ffbae943acefdc99dbf3bda68274.zip
* target-memory.c (blocks_to_erase): Correct off-by-one error.
Diffstat (limited to 'gdb/target-memory.c')
-rw-r--r--gdb/target-memory.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/target-memory.c b/gdb/target-memory.c
index 056440ace9f..cb6acc593a8 100644
--- a/gdb/target-memory.c
+++ b/gdb/target-memory.c
@@ -166,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)