remote: struct remote_state, use op new, fix leaks
authorPedro Alves <palves@redhat.com>
Tue, 22 May 2018 17:22:06 +0000 (18:22 +0100)
committerPedro Alves <palves@redhat.com>
Tue, 22 May 2018 17:22:06 +0000 (18:22 +0100)
commitde44f5a73576b426b32b605e0d5016d4fae9b4b1
tree569c12241fe47fd735b4bbffdc3738f754dcddad
parentb1b60145aedb8adcb0b9dcf43a5ae735c2f03b51
remote: struct remote_state, use op new, fix leaks

A bit of C++ification.  Also plugs a few leaks, since currently
nothing is freeing a few fields of remote_state.  They're now freed in
the added destructor.

gdb/ChangeLog:
2018-05-22  Pedro Alves  <palves@redhat.com>

(struct vCont_action_support): Use bool and initialize all fields.
(struct readahead_cache): Initialize all fields.
(remote_state): Use bool and initialize all fields.
(remote_state::remote_state, remote_state::~remote_state): New.
(new_remote_state): Delete.
(_initialize_remote): Use new to allocate remote_state.
gdb/ChangeLog
gdb/remote.c