[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [PATCH v1 6/9] gdbstub/linux-user: support debugging over a unix soc
From: |
Richard Henderson |
Subject: |
Re: [PATCH v1 6/9] gdbstub/linux-user: support debugging over a unix socket |
Date: |
Fri, 1 May 2020 07:43:01 -0700 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.7.0 |
On 4/30/20 12:01 PM, Alex Bennée wrote:
> @@ -814,7 +814,7 @@ int main(int argc, char **argv)
> exit(1);
> }
> } else if (!strcmp(r, "g")) {
> - gdbstub_port = atoi(argv[optind++]);
> + gdbstub = g_strdup(argv[optind++]);
You've got one too many strdup.
The one here in bsd-user main, and a similar one in linux-user handle_arg_gdb,
are redundant with...
> + gdbserver_state.socket_path = g_strdup(port_or_path);
... this one, in gdbserver_start.
Otherwise,
Reviewed-by: Richard Henderson <address@hidden>
r~
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- Re: [PATCH v1 6/9] gdbstub/linux-user: support debugging over a unix socket,
Richard Henderson <=