gdb: make so_list::abfd a gdb_bfd_ref_ptr
authorSimon Marchi <simon.marchi@efficios.com>
Tue, 10 Oct 2023 16:01:08 +0000 (16:01 +0000)
committerSimon Marchi <simon.marchi@efficios.com>
Thu, 19 Oct 2023 14:57:51 +0000 (10:57 -0400)
commit200b85632a99e749e14d1c026b7e24c15a5e2776
treefcbe3e2d2cbce7b3c9c1e42359d6f3f1924914ac
parentae19ef71d2248d588a9f3a5545e1882f696cb86e
gdb: make so_list::abfd a gdb_bfd_ref_ptr

Change the field from a `bfd *` to a gdb_bfd_ref_ptr to automatically
manage the reference.

Change-Id: I3ace18bea985bc194c5e67bb559eec567e258950
Approved-By: Pedro Alves <pedro@palves.net>
Reviewed-By: Reviewed-By: Lancelot Six <lancelot.six@amd.com>
gdb/solib-frv.c
gdb/solib-rocm.c
gdb/solib-target.c
gdb/solib.c
gdb/solist.h