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 | 8fd9b8a45ffe1efc4fb24c6aeb931524cfa1e7f9 (diff) | |
download | gdb-1fc01e0339a2ffbae943acefdc99dbf3bda68274.zip gdb-1fc01e0339a2ffbae943acefdc99dbf3bda68274.tar.gz gdb-1fc01e0339a2ffbae943acefdc99dbf3bda68274.tar.bz2 |
* 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 056440a..cb6acc5 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) |