[PATCH] gdbserver: constify the 'pid_to_exec_file' target op
Simon Marchi
simon.marchi@polymtl.ca
Mon Apr 12 14:10:26 GMT 2021
On 2021-04-12 8:30 a.m., Tankut Baris Aktemur via Gdb-patches wrote:
> diff --git a/gdbserver/server.cc b/gdbserver/server.cc
> index 2a443305691..156fd4333df 100644
> --- a/gdbserver/server.cc
> +++ b/gdbserver/server.cc
> @@ -1466,7 +1466,7 @@ handle_qxfer_exec_file (const char *annex,
> gdb_byte *readbuf, const gdb_byte *writebuf,
> ULONGEST offset, LONGEST len)
> {
> - char *file;
> + const char *file;
Since you are touching this, let's move the declaration to where the
assignment is done.
Otherwise, LGTM, thanks.
Simon
More information about the Gdb-patches
mailing list