diff options
| author | Yao Qi <yao.qi@linaro.org> | 2017-03-29 16:56:31 +0100 | 
|---|---|---|
| committer | Yao Qi <yao.qi@linaro.org> | 2017-03-29 16:56:31 +0100 | 
| commit | 1231656410996d2cc271486adc743a0fafe2ab4d (patch) | |
| tree | 911ae8b65ae5aa44079ce9cf4e979d6fdd4189fe /gdb/python/py-lazy-string.c | |
| parent | 52be03fd13a26ecda4f27c451a434f19eded0ca6 (diff) | |
| download | binutils-1231656410996d2cc271486adc743a0fafe2ab4d.zip binutils-1231656410996d2cc271486adc743a0fafe2ab4d.tar.gz binutils-1231656410996d2cc271486adc743a0fafe2ab4d.tar.bz2 | |
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.
Diffstat (limited to 'gdb/python/py-lazy-string.c')
0 files changed, 0 insertions, 0 deletions
