This is the mail archive of the
gdb-testers@sourceware.org
mailing list for the GDB project.
[binutils-gdb] Add constructor and destructor to thread_info
- From: sergiodj+buildbot at sergiodj dot net
- To: gdb-testers at sourceware dot org
- Date: Wed, 29 Mar 2017 12:25:09 -0400
- Subject: [binutils-gdb] Add constructor and destructor to thread_info
- Authentication-results: sourceware.org; auth=none
*** TEST RESULTS FOR COMMIT 1231656410996d2cc271486adc743a0fafe2ab4d ***
Author: Yao Qi <yao.qi@linaro.org>
Branch: master
Commit: 1231656410996d2cc271486adc743a0fafe2ab4d
Add constructor and destructor to thread_info
This patch adds constructor and destructor to thread_info.
gdb:
2017-03-29 Yao Qi <yao.qi@linaro.org>
* gdbthread.h (struct thread_info): Declare constructor and
destructor. Add some in-class member initializers.
* thread.c (free_thread): Remove.
(init_thread_list): Call delete instead of free_thread.
(new_thread): Call thread_info constructor.
(thread_info::thread_info): New function.
(thread_info::~thread_info): New function.
(delete_thread_1): Call delete instead of free_thread.
(make_cleanup_restore_current_thread): Move tp and frame to
inner block.