diff options
author | Sandra Loosemore <sandra@codesourcery.com> | 2009-10-29 20:12:26 +0000 |
---|---|---|
committer | Sandra Loosemore <sandra@codesourcery.com> | 2009-10-29 20:12:26 +0000 |
commit | 8a35fb51cdadb1abc314e1a3071ec201c30ed523 (patch) | |
tree | 26736cc6fbaf0afe96d0851ce8a33bd24c85cab6 /gdb/gdbserver/server.c | |
parent | e6655fdab471a198013e2f21f16c80ed39dd1318 (diff) | |
download | gdb-8a35fb51cdadb1abc314e1a3071ec201c30ed523.zip gdb-8a35fb51cdadb1abc314e1a3071ec201c30ed523.tar.gz gdb-8a35fb51cdadb1abc314e1a3071ec201c30ed523.tar.bz2 |
2009-10-29 Sandra Loosemore <sandra@codesourcery.com>
PR gdb/10783
gdb/
* target.c (simple_search_memory): Correct read_addr initialization
in loop for searching subsequent chunks.
gdb/gdbserver/
* server.c (handle_search_memory_1): Correct read_addr initialization
in loop for searching subsequent chunks.
Diffstat (limited to 'gdb/gdbserver/server.c')
-rw-r--r-- | gdb/gdbserver/server.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/gdbserver/server.c b/gdb/gdbserver/server.c index 9bf4f3d..14bc7e7 100644 --- a/gdb/gdbserver/server.c +++ b/gdb/gdbserver/server.c @@ -557,7 +557,7 @@ handle_search_memory_1 (CORE_ADDR start_addr, CORE_ADDR search_space_len, if (search_space_len >= pattern_len) { unsigned keep_len = search_buf_size - chunk_size; - CORE_ADDR read_addr = start_addr + keep_len; + CORE_ADDR read_addr = start_addr + chunk_size + keep_len; int nr_to_read; /* Copy the trailing part of the previous iteration to the front |