mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-12 20:03:45 +08:00
gdbserver/server.c: Cast return value of memmem
gdb/gdbserver/ChangeLog: * server.c (handle_search_memory_1): Cast return value of memmem.
This commit is contained in:
parent
f98cd05907
commit
d6f85c8421
@ -1,3 +1,8 @@
|
||||
2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
|
||||
|
||||
* server.c (handle_search_memory_1): Cast return value of
|
||||
memmem.
|
||||
|
||||
2015-10-29 Simon Marchi <simon.marchi@polymtl.ca>
|
||||
|
||||
* server.c (write_qxfer_response): Change type of data to
|
||||
|
@ -891,7 +891,8 @@ handle_search_memory_1 (CORE_ADDR start_addr, CORE_ADDR search_space_len,
|
||||
? search_space_len
|
||||
: search_buf_size);
|
||||
|
||||
found_ptr = memmem (search_buf, nr_search_bytes, pattern, pattern_len);
|
||||
found_ptr = (gdb_byte *) memmem (search_buf, nr_search_bytes, pattern,
|
||||
pattern_len);
|
||||
|
||||
if (found_ptr != NULL)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user