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-target.c | |
parent | 30932f40120fa64147f8b5f7d9e4c462825c4e47 (diff) | |
download | binutils-3fe0dfd1604f9bf8d51a7473f7f27e16242986be.zip binutils-3fe0dfd1604f9bf8d51a7473f7f27e16242986be.tar.gz binutils-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-target.c')
-rw-r--r-- | gdb/solib-target.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/solib-target.c b/gdb/solib-target.c index 2e1c74f..e93fe8e 100644 --- a/gdb/solib-target.c +++ b/gdb/solib-target.c @@ -227,10 +227,10 @@ solib_target_parse_libraries (const char *library) } #endif -static intrusive_list<so_list> +static intrusive_list<shobj> solib_target_current_sos (void) { - intrusive_list<so_list> sos; + intrusive_list<shobj> sos; /* Fetch the list of shared libraries. */ gdb::optional<gdb::char_vector> library_document @@ -243,10 +243,10 @@ solib_target_current_sos (void) std::vector<lm_info_target_up> library_list = solib_target_parse_libraries (library_document->data ()); - /* Build a struct so_list for each entry on the list. */ + /* Build a struct shobj for each entry on the list. */ for (lm_info_target_up &info : library_list) { - so_list *new_solib = new so_list; + shobj *new_solib = new shobj; /* We don't need a copy of the name in INFO anymore. */ new_solib->so_name = std::move (info->name); @@ -267,7 +267,7 @@ solib_target_solib_create_inferior_hook (int from_tty) } static void -solib_target_relocate_section_addresses (so_list &so, target_section *sec) +solib_target_relocate_section_addresses (shobj &so, target_section *sec) { CORE_ADDR offset; auto *li = gdb::checked_static_cast<lm_info_target *> (so.lm_info.get ()); |