[binutils-gdb] C++fy thread_apply_all_command

sergiodj+buildbot@sergiodj.net sergiodj+buildbot@sergiodj.net
Thu Apr 13 17:43:00 GMT 2017


*** TEST RESULTS FOR COMMIT c6609450b33960a0e9f8c1df045b02f0677e866a ***

Author: Pedro Alves <palves@redhat.com>
Branch: master
Commit: c6609450b33960a0e9f8c1df045b02f0677e866a

C++fy thread_apply_all_command

This eliminates a couple cleanups.

gdb/ChangeLog:
2017-04-13  Pedro Alves  <palves@redhat.com>

	* thread.c: Include <algorithm>.
	(thread_array_cleanup): Delete.
	(scoped_inc_dec_ref): New class.
	(live_threads_count): New function.
	(set_thread_refcount): Delete.
	(tp_array_compar_ascending): Now a bool.
	(tp_array_compar): Convert to a std::sort comparison function.
	(thread_apply_all_command): Use std::vector and scoped_inc_dec_ref
	and live_threads_count.



More information about the Gdb-testers mailing list