aboutsummaryrefslogtreecommitdiff
path: root/gdb/solib-darwin.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2023-10-17 15:37:58 -0400
committerSimon Marchi <simon.marchi@efficios.com>2023-10-19 11:14:26 -0400
commit3fe0dfd1604f9bf8d51a7473f7f27e16242986be (patch)
tree29cbbacf6997fd331d8d383de4546f0482bd87a2 /gdb/solib-darwin.c
parent30932f40120fa64147f8b5f7d9e4c462825c4e47 (diff)
downloadgdb-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-darwin.c')
-rw-r--r--gdb/solib-darwin.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/solib-darwin.c b/gdb/solib-darwin.c
index 57e61f9..4f9ba99 100644
--- a/gdb/solib-darwin.c
+++ b/gdb/solib-darwin.c
@@ -212,7 +212,7 @@ open_symbol_file_object (int from_tty)
/* Build a list of currently loaded shared objects. See solib-svr4.c. */
-static intrusive_list<so_list>
+static intrusive_list<shobj>
darwin_current_sos ()
{
type *ptr_type
@@ -230,7 +230,7 @@ darwin_current_sos ()
image_info_size = ptr_len * 3;
- intrusive_list<so_list> sos;
+ intrusive_list<shobj> sos;
/* Read infos for each solib.
The first entry was rumored to be the executable itself, but this is not
@@ -271,8 +271,8 @@ darwin_current_sos ()
if (file_path == nullptr)
break;
- /* Create and fill the new so_list element. */
- so_list *newobj = new so_list;
+ /* Create and fill the new struct shobj element. */
+ shobj *newobj = new shobj;
auto li = gdb::make_unique<lm_info_darwin> ();
@@ -605,7 +605,7 @@ darwin_clear_solib (program_space *pspace)
Relocate these VMAs according to solib info. */
static void
-darwin_relocate_section_addresses (so_list &so, target_section *sec)
+darwin_relocate_section_addresses (shobj &so, target_section *sec)
{
auto *li = gdb::checked_static_cast<lm_info_darwin *> (so.lm_info.get ());