Change current_inferior_ to be a inferior_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:53 +0000 (09:21 -0700)
commit51107df53aeb2f6a5a03a1af29eec773b3aca463
tree64ea015b1da68226155c02e7fb9af6b71ee7448b
parent15f4dddd8a29d064a634140a5fcb830715681889
Change current_inferior_ to be a inferior_ref

This changes current_inferior_ to be an inferior_ref, removing some
manual reference counting.

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

* inferior.c (current_inferior_): Change type.
(current_inferior, set_current_inferior, initialize_inferiors):
Update.
gdb/ChangeLog
gdb/inferior.c