diff options
author | Simon Marchi <simon.marchi@ericsson.com> | 2017-11-08 19:42:08 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@ericsson.com> | 2017-11-08 19:42:08 -0500 |
commit | b44ec61915f10a953ca85da5bf7a97911554f1aa (patch) | |
tree | 421334d6ae1d6e425e1ee1d496979304d7b75067 /gdb/ada-exp.y | |
parent | dc8d2d90da3f191ae0461900ab98e3b29cc2b280 (diff) | |
download | fsf-binutils-gdb-b44ec61915f10a953ca85da5bf7a97911554f1aa.zip fsf-binutils-gdb-b44ec61915f10a953ca85da5bf7a97911554f1aa.tar.gz fsf-binutils-gdb-b44ec61915f10a953ca85da5bf7a97911554f1aa.tar.bz2 |
Make encode_actions_rsp use std::vector
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.
Regtested on the buildbot.
gdb/ChangeLog:
* tracepoint.h (class collection_list) <stringify>: Return
std::vector<std::string>.
(encode_actions_rsp): Change parameters to
std::vector<std::string> *.
* tracepoint.c (collection_list::stringify): Return
std::vector<std::string> and adjust accordingly.
(encode_actions_rsp): Changee parameters to
std::vector<std::string> and adjust accordingly.
* remote.c (free_actions_list),
free_actions_list_cleanup_wrapper): Remove.
(remote_download_tracepoint): Adjust to std::vector.
Diffstat (limited to 'gdb/ada-exp.y')
0 files changed, 0 insertions, 0 deletions