Use thread_info_ref in stop_context
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:54 +0000 (09:21 -0700)
commitd634cd0bcef830f2c8b9a544f1f0621fa382e2cc
tree0ee3b57e6577e4f3f77aa5b595a66494300214bb
parent51107df53aeb2f6a5a03a1af29eec773b3aca463
Use thread_info_ref in stop_context

This changes stop_context to use a thread_info_ref, removing some
manual reference counting.

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

* infrun.c (struct stop_context) <thread>: Now a thread_info_ref.
(stop_context::stop_context): Update.
(stop_context::~stop_context): Remove.
gdb/ChangeLog
gdb/infrun.c