diff options
author | Daniel Jacobowitz <drow@false.org> | 2007-06-07 14:24:15 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2007-06-07 14:24:15 +0000 |
commit | 1fc01e0339a2ffbae943acefdc99dbf3bda68274 (patch) | |
tree | bc407379bbae839403a79eaf0f8cfc96bb30dbb9 /gdb/target-memory.c | |
parent | Cleanup white spaces and fix an entry. (diff) | |
download | binutils-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.c | 2 |
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) |