Remove scoped_inc_dec_ref
authorTom Tromey <tom@tromey.com>
Fri, 11 Dec 2020 16:21:53 +0000 (09:21 -0700)
committerTom Tromey <tom@tromey.com>
Fri, 11 Dec 2020 16:21:55 +0000 (09:21 -0700)
commitbfcb9db853c41ffff74c77d338b8b1378781aa0e
tree528ca883d8200bcbbac7b80e2be980679cc8f4af
parentd634cd0bcef830f2c8b9a544f1f0621fa382e2cc
Remove scoped_inc_dec_ref

We can remove scoped_inc_dec_ref by changing the sole user to instead
keep a vector of thread_info_ref objects.  This removes some manual
reference counting and simplifies the code a bit.

gdb/ChangeLog
2020-12-11  Tom Tromey  <tom@tromey.com>

* thread.c (class scoped_inc_dec_ref): Remove.
(tp_array_compar_ascending, tp_array_compar_descending): Change
parameter types.
(thread_apply_all_command): Use thread_info_ref.
gdb/ChangeLog
gdb/thread.c