diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2023-10-10 16:01:08 +0000 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2023-10-19 10:57:51 -0400 |
commit | 200b85632a99e749e14d1c026b7e24c15a5e2776 (patch) | |
tree | fcbe3e2d2cbce7b3c9c1e42359d6f3f1924914ac /gdb/solib-rocm.c | |
parent | ae19ef71d2248d588a9f3a5545e1882f696cb86e (diff) | |
download | gdb-200b85632a99e749e14d1c026b7e24c15a5e2776.zip gdb-200b85632a99e749e14d1c026b7e24c15a5e2776.tar.gz gdb-200b85632a99e749e14d1c026b7e24c15a5e2776.tar.bz2 |
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>
Diffstat (limited to 'gdb/solib-rocm.c')
-rw-r--r-- | gdb/solib-rocm.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/solib-rocm.c b/gdb/solib-rocm.c index 8162374..30e3bea 100644 --- a/gdb/solib-rocm.c +++ b/gdb/solib-rocm.c @@ -175,7 +175,7 @@ static void rocm_solib_relocate_section_addresses (so_list &so, struct target_section *sec) { - if (!is_amdgpu_arch (gdbarch_from_bfd (so.abfd))) + if (!is_amdgpu_arch (gdbarch_from_bfd (so.abfd.get ()))) { svr4_so_ops.relocate_section_addresses (so, sec); return; |