Remove some dead code from handle_search_memory
handle_search_memory had some code after a call to error. This code is dead, and this patch removes it. gdbserver/ChangeLog 2020-10-07 Tom Tromey <tromey@adacore.com> * server.cc (handle_search_memory): Remove dead code.
This commit is contained in:
parent
55b10d89a4
commit
60b746622b
@ -1,3 +1,7 @@
|
||||
2020-10-07 Tom Tromey <tromey@adacore.com>
|
||||
|
||||
* server.cc (handle_search_memory): Remove dead code.
|
||||
|
||||
2020-10-07 Tom Tromey <tromey@adacore.com>
|
||||
|
||||
* server.cc (handle_search_memory_1): Remove.
|
||||
|
@ -1056,11 +1056,8 @@ handle_search_memory (char *own_buf, int packet_len)
|
||||
|
||||
pattern = (gdb_byte *) malloc (packet_len);
|
||||
if (pattern == NULL)
|
||||
{
|
||||
error ("Unable to allocate memory to perform the search");
|
||||
strcpy (own_buf, "E00");
|
||||
return;
|
||||
}
|
||||
error ("Unable to allocate memory to perform the search");
|
||||
|
||||
if (decode_search_memory_packet (own_buf + cmd_name_len,
|
||||
packet_len - cmd_name_len,
|
||||
&start_addr, &search_space_len,
|
||||
@ -1068,8 +1065,6 @@ handle_search_memory (char *own_buf, int packet_len)
|
||||
{
|
||||
free (pattern);
|
||||
error ("Error in parsing qSearch:memory packet");
|
||||
strcpy (own_buf, "E00");
|
||||
return;
|
||||
}
|
||||
|
||||
auto read_memory = [] (CORE_ADDR addr, gdb_byte *result, size_t len)
|
||||
|
Loading…
x
Reference in New Issue
Block a user