From 1fc01e0339a2ffbae943acefdc99dbf3bda68274 Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Thu, 7 Jun 2007 14:24:15 +0000 Subject: * target-memory.c (blocks_to_erase): Correct off-by-one error. --- gdb/target-memory.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gdb/target-memory.c') 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) -- cgit v1.2.3-65-gdbad