This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH 1/2] linux-nat: Remove unnecessary xstrdup
- From: Pedro Alves <palves at redhat dot com>
- To: Simon Marchi <simon dot marchi at ericsson dot com>, gdb-patches at sourceware dot org
- Date: Wed, 17 Jan 2018 12:25:36 +0000
- Subject: Re: [PATCH 1/2] linux-nat: Remove unnecessary xstrdup
- Authentication-results: sourceware.org; auth=none
- References: <1514732385-5506-1-git-send-email-simon.marchi@ericsson.com>
On 12/31/2017 02:59 PM, Simon Marchi wrote:
> I think this xstrdup is not useful. We can pass ex.message directly to
> throw_error instead.
>
> gdb/ChangeLog:
>
> * linux-nat.c (linux_nat_attach): Remove xstrdup.
LGTM.
Thanks,
Pedro Alves