[PATCH v2 4/6] Remove some dead code from handle_search_memory
Christian Biesinger
cbiesinger@google.com
Mon Sep 28 15:13:48 GMT 2020
On Fri, Sep 25, 2020 at 9:49 PM Tom Tromey <tromey@adacore.com> wrote:
> +++ b/gdbserver/server.cc
> @@ -1054,11 +1054,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;
I don't know much about gdbserver but if this code was trying to send
an error back maybe that code is actually needed?
Christian
More information about the Gdb-patches
mailing list