This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] remote: struct remote_state, use op new, fix leaks
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Tue, 22 May 2018 17:12:27 -0400
- Subject: [binutils-gdb] remote: struct remote_state, use op new, fix leaks
*** TEST RESULTS FOR COMMIT de44f5a73576b426b32b605e0d5016d4fae9b4b1 ***
Author: Pedro Alves <palves@redhat.com>
Branch: master
Commit: de44f5a73576b426b32b605e0d5016d4fae9b4b1
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.