aboutsummaryrefslogtreecommitdiff
path: root/gdb/gdbserver
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@polymtl.ca>2015-10-29 13:41:13 -0400
committerSimon Marchi <simon.marchi@ericsson.com>2015-10-29 13:43:02 -0400
commitd6f85c8421acaf09fa5a25ae2621819889d54038 (patch)
tree3b4344c6665991f4aa12eb10dba6c6d48608a97d /gdb/gdbserver
parentf98cd059076c64cdb94b9743c544458b2b91716c (diff)
downloadgdb-d6f85c8421acaf09fa5a25ae2621819889d54038.zip
gdb-d6f85c8421acaf09fa5a25ae2621819889d54038.tar.gz
gdb-d6f85c8421acaf09fa5a25ae2621819889d54038.tar.bz2
gdbserver/server.c: Cast return value of memmem
gdb/gdbserver/ChangeLog: * server.c (handle_search_memory_1): Cast return value of memmem.
Diffstat (limited to 'gdb/gdbserver')
-rw-r--r--gdb/gdbserver/ChangeLog5
-rw-r--r--gdb/gdbserver/server.c3
2 files changed, 7 insertions, 1 deletions
diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog
index a071642..4397ff9 100644
--- a/gdb/gdbserver/ChangeLog
+++ b/gdb/gdbserver/ChangeLog
@@ -1,5 +1,10 @@
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
gdb_byte *.
diff --git a/gdb/gdbserver/server.c b/gdb/gdbserver/server.c
index b2f0f67..fd2804b 100644
--- a/gdb/gdbserver/server.c
+++ b/gdb/gdbserver/server.c
@@ -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)
{