This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [PATCH] Make encode_actions_rsp use std::vector
- From: Simon Marchi <simon dot marchi at polymtl dot ca>
- To: Simon Marchi <simon dot marchi at ericsson dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Wed, 08 Nov 2017 19:49:01 -0500
- Subject: Re: [PATCH] Make encode_actions_rsp use std::vector
- Authentication-results: sourceware.org; auth=none
- References: <1509330588-25109-1-git-send-email-simon.marchi@ericsson.com> <e3540e638ddd2b99579ad92d9373461e@polymtl.ca>
On 2017-10-29 22:33, Simon Marchi wrote:
On 2017-10-29 22:29, Simon Marchi wrote:
Currently, encode_actions_rsp returns two malloc'ed arrays of
malloc'ed
strings (char *) by pointer. Change this to use
std::vector<std::string>. This eliminates some cleanups in remote.c.
...
Woops, I left the local vector name "str_list2", a temporary name I
gave it. I renamed it to "str_list" locally.
This is now pushed.
Simon