diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2023-10-17 15:37:58 -0400 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2023-10-19 11:14:26 -0400 |
commit | 3fe0dfd1604f9bf8d51a7473f7f27e16242986be (patch) | |
tree | 29cbbacf6997fd331d8d383de4546f0482bd87a2 /gdb/solib-rocm.c | |
parent | 30932f40120fa64147f8b5f7d9e4c462825c4e47 (diff) | |
download | gdb-3fe0dfd1604f9bf8d51a7473f7f27e16242986be.zip gdb-3fe0dfd1604f9bf8d51a7473f7f27e16242986be.tar.gz gdb-3fe0dfd1604f9bf8d51a7473f7f27e16242986be.tar.bz2 |
gdb: rename struct so_list to shobj
Now that so_list lists are implemented using intrusive_list, it doesn't
really make sense for the element type to be named "_list". Rename to
just `struct shobj` (`struct so` was deemed to be not greppable enough).
Change-Id: I1063061901298bb40fee73bf0cce44cd12154c0e
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 | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/gdb/solib-rocm.c b/gdb/solib-rocm.c index 3dc9a06..3a971b3 100644 --- a/gdb/solib-rocm.c +++ b/gdb/solib-rocm.c @@ -172,7 +172,7 @@ get_solib_info (inferior *inf) /* Relocate section addresses. */ static void -rocm_solib_relocate_section_addresses (so_list &so, +rocm_solib_relocate_section_addresses (shobj &so, struct target_section *sec) { if (!is_amdgpu_arch (gdbarch_from_bfd (so.abfd.get ()))) @@ -204,14 +204,14 @@ rocm_solib_handle_event () /* Create so_list objects from rocm_so objects in SOS. */ -static intrusive_list<so_list> +static intrusive_list<shobj> so_list_from_rocm_sos (const std::vector<rocm_so> &sos) { - intrusive_list<so_list> dst; + intrusive_list<shobj> dst; for (const rocm_so &so : sos) { - so_list *newobj = new so_list; + struct shobj *newobj = new struct shobj; newobj->lm_info = gdb::make_unique<lm_info_svr4> (*so.lm_info); newobj->so_name = so.name; @@ -223,14 +223,14 @@ so_list_from_rocm_sos (const std::vector<rocm_so> &sos) return dst; } -/* Build a list of `struct so_list' objects describing the shared +/* Build a list of `struct shobj' objects describing the shared objects currently loaded in the inferior. */ -static intrusive_list<so_list> +static intrusive_list<shobj> rocm_solib_current_sos () { /* First, retrieve the host-side shared library list. */ - intrusive_list<so_list> sos = svr4_so_ops.current_sos (); + intrusive_list<shobj> sos = svr4_so_ops.current_sos (); /* Then, the device-side shared library list. */ std::vector<rocm_so> &dev_sos = get_solib_info (current_inferior ())->solib_list; @@ -238,7 +238,7 @@ rocm_solib_current_sos () if (dev_sos.empty ()) return sos; - intrusive_list<so_list> dev_so_list = so_list_from_rocm_sos (dev_sos); + intrusive_list<shobj> dev_so_list = so_list_from_rocm_sos (dev_sos); if (sos.empty ()) return dev_so_list; |