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/target-section.h | |
parent | 68d3bf7d246321407697aeb036036dae1a99a742 (diff) | |
download | binutils-7b323785ef83a7d6f023909fe21b7983651c3f27.zip binutils-7b323785ef83a7d6f023909fe21b7983651c3f27.tar.gz binutils-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/target-section.h')
-rw-r--r-- | gdb/target-section.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/target-section.h b/gdb/target-section.h index 151145b..d7cea4f 100644 --- a/gdb/target-section.h +++ b/gdb/target-section.h @@ -22,7 +22,7 @@ struct bfd; struct objfile; -struct shobj; +struct solib; /* A union representing the possible owner types of a target_section. */ @@ -31,7 +31,7 @@ union target_section_owner target_section_owner () : m_v (nullptr) {} target_section_owner (const bfd *bfd) : bfd (bfd) {} target_section_owner (const objfile *objfile) : objfile (objfile) {} - target_section_owner (const shobj *shobj) : shobj (shobj) {} + target_section_owner (const solib *solib) : solib (solib) {} /* Use this to access the type-erased version of the owner, for comparisons, printing, etc. We don't access the M_V member @@ -46,7 +46,7 @@ union target_section_owner const struct bfd *bfd; const struct objfile *objfile; - const struct shobj *shobj; + const struct solib *solib; private: const void *m_v; @@ -79,7 +79,7 @@ struct target_section It is set by add_target_sections and used by remove_target_sections. For example, for executables it is a pointer to exec_bfd and - for shlibs it is the shobj pointer. */ + for shlibs it is the solib pointer. */ target_section_owner owner; }; |