C++fy thread_apply_all_command
authorPedro Alves <palves@redhat.com>
Thu, 13 Apr 2017 15:15:34 +0000 (16:15 +0100)
committerPedro Alves <palves@redhat.com>
Thu, 13 Apr 2017 15:18:16 +0000 (16:18 +0100)
commitc6609450b33960a0e9f8c1df045b02f0677e866a
tree81f11c86e9e3d8c8a5b6d964d954239aeff07bc7
parent2a00d7ce26a6ee15e3712b045c8b7932278ea23b
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.
gdb/ChangeLog
gdb/thread.c
This page took 0.044761 seconds and 4 git commands to generate.