This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA 04/11] Don't copy a string in mi_cmd_disassemble
- From: Pedro Alves <palves at redhat dot com>
- To: Tom Tromey <tom at tromey dot com>, gdb-patches at sourceware dot org
- Date: Thu, 28 Sep 2017 10:40:06 +0100
- Subject: Re: [RFA 04/11] Don't copy a string in mi_cmd_disassemble
- Authentication-results: sourceware.org; auth=none
- Authentication-results: ext-mx10.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com
- Authentication-results: ext-mx10.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=palves at redhat dot com
- Dmarc-filter: OpenDMARC Filter v1.3.2 mx1.redhat.com 10E131CEACD
- References: <20170912185736.20436-1-tom@tromey.com> <20170912185736.20436-5-tom@tromey.com>
On 09/12/2017 07:57 PM, Tom Tromey wrote:
> This string copy in mi_cmd_disassemble seems not to be needed, so
> don't do it.
I read mi-getopt.h|c and convinced myself that you are right.
OK.
Thanks,
Pedro Alves