Fix search of large memory area in gdbserver
authorHannes Domani <ssbssa@yahoo.de>
Wed, 22 Apr 2020 17:05:07 +0000 (19:05 +0200)
committerHannes Domani <ssbssa@yahoo.de>
Wed, 22 Apr 2020 19:23:39 +0000 (21:23 +0200)
commit51ac8e22655ba777498249ae0c776fd794a2c298
tree1d88e1d2d36923a69e941b9e6c1eaf007d112b8d
parent33b5a83027f1eb5a7a628f010667f470b21d5aa8
Fix search of large memory area in gdbserver

If the search area is bigger than SEARCH_CHUNK_SIZE (16000), then you get
an error in gdbserver:
gdb: (gdb) find /w 0x3c43f0,+20000,0x04030201
gdb: Pattern not found.
gdbserver: Unable to access 3997 bytes of target memory at 0x3c8273, halting search.

The return value of any additional gdb_read_memory calls were compared with the
wrong value, this fixes it.

gdbserver/ChangeLog:

2020-04-22  Hannes Domani  <ssbssa@yahoo.de>

* server.cc (handle_search_memory_1): Fix gdb_read_memory return value
comparison.
gdbserver/ChangeLog
gdbserver/server.cc
This page took 0.024029 seconds and 4 git commands to generate.