aboutsummaryrefslogtreecommitdiff
path: root/libiberty/bsearch.c
diff options
context:
space:
mode:
authorPedro Alves <palves@redhat.com>2017-04-13 16:15:34 +0100
committerPedro Alves <palves@redhat.com>2017-04-13 16:18:16 +0100
commitc6609450b33960a0e9f8c1df045b02f0677e866a (patch)
tree81f11c86e9e3d8c8a5b6d964d954239aeff07bc7 /libiberty/bsearch.c
parent2a00d7ce26a6ee15e3712b045c8b7932278ea23b (diff)
downloadgdb-c6609450b33960a0e9f8c1df045b02f0677e866a.zip
gdb-c6609450b33960a0e9f8c1df045b02f0677e866a.tar.gz
gdb-c6609450b33960a0e9f8c1df045b02f0677e866a.tar.bz2
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.
Diffstat (limited to 'libiberty/bsearch.c')
0 files changed, 0 insertions, 0 deletions