diff options
author | Simon Marchi <simon.marchi@efficios.com> | 2024-02-05 15:18:33 -0500 |
---|---|---|
committer | Simon Marchi <simon.marchi@efficios.com> | 2024-02-05 16:10:15 -0500 |
commit | 7b323785ef83a7d6f023909fe21b7983651c3f27 (patch) | |
tree | b1833dfb62b268955f3be8af5aa7493e9ad92c15 /gdb/solib-aix.c | |
parent | 68d3bf7d246321407697aeb036036dae1a99a742 (diff) | |
download | gdb-7b323785ef83a7d6f023909fe21b7983651c3f27.zip gdb-7b323785ef83a7d6f023909fe21b7983651c3f27.tar.gz gdb-7b323785ef83a7d6f023909fe21b7983651c3f27.tar.bz2 |
gdb: rename struct shobj -> struct solib
`struct so_list` was recently renamed to `struct shobj` (in 3fe0dfd1604f
("gdb: rename struct so_list to shobj")). In hindsight, `solib` would
have been a better name. We have solib.c, the implementations in
solib-*.c, many functions with solib in their name, the solib_loaded /
solib_unloaded observables, etc.
Rename shobj to solib.
Change-Id: I0af1c7a9b29bdda027e9af633f6d37e1cfcacd5d
Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/solib-aix.c')
-rw-r--r-- | gdb/solib-aix.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/gdb/solib-aix.c b/gdb/solib-aix.c index dfde05a..70bfe25 100644 --- a/gdb/solib-aix.c +++ b/gdb/solib-aix.c @@ -26,7 +26,7 @@ #include "xcoffread.h" #include "observable.h" -/* Our private data in struct shobj. */ +/* Our private data in struct solib. */ struct lm_info_aix final : public lm_info { @@ -311,7 +311,7 @@ solib_aix_bss_data_overlap (bfd *abfd) /* Implement the "relocate_section_addresses" target_so_ops method. */ static void -solib_aix_relocate_section_addresses (shobj &so, target_section *sec) +solib_aix_relocate_section_addresses (solib &so, target_section *sec) { struct bfd_section *bfd_sect = sec->the_bfd_section; bfd *abfd = bfd_sect->owner; @@ -445,7 +445,7 @@ solib_aix_solib_create_inferior_hook (int from_tty) /* Implement the "current_sos" target_so_ops method. */ -static intrusive_list<shobj> +static intrusive_list<solib> solib_aix_current_sos () { std::optional<std::vector<lm_info_aix>> &library_list @@ -453,14 +453,14 @@ solib_aix_current_sos () if (!library_list.has_value ()) return {}; - intrusive_list<shobj> sos; + intrusive_list<solib> sos; - /* Build a struct shobj for each entry on the list. + /* Build a struct solib for each entry on the list. We skip the first entry, since this is the entry corresponding to the main executable, not a shared library. */ for (int ix = 1; ix < library_list->size (); ix++) { - shobj *new_solib = new shobj; + solib *new_solib = new solib; std::string so_name; lm_info_aix &info = (*library_list)[ix]; |