aboutsummaryrefslogtreecommitdiff
path: root/gdb/solib-svr4.c
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2024-02-05 15:18:34 -0500
committerSimon Marchi <simon.marchi@efficios.com>2024-02-05 16:10:15 -0500
commit6cedf3bcbf9d8ac88147fdb9b0765a206191a282 (patch)
treee6ba766a7f51f3b0aba680c7182e54d6345baafa /gdb/solib-svr4.c
parent7b323785ef83a7d6f023909fe21b7983651c3f27 (diff)
downloadfsf-binutils-gdb-6cedf3bcbf9d8ac88147fdb9b0765a206191a282.zip
fsf-binutils-gdb-6cedf3bcbf9d8ac88147fdb9b0765a206191a282.tar.gz
fsf-binutils-gdb-6cedf3bcbf9d8ac88147fdb9b0765a206191a282.tar.bz2
gdb: rename target_so_ops to solib_ops
I don't like the name `target_so_ops`, because: - The name `target` is so overloaded, and in this case it's not even related to target_ops or anything else called "target". - We do have an implementation that actually fetches solibs from the target (solib_target_so_op in solib-target.c), so it's confusing for the "base class" to be called target_something as well. Rename to solib_ops. Change-Id: I46a983d44e81400470e22deb09aaf26ad8a3587f Approved-By: Tom Tromey <tom@tromey.com>
Diffstat (limited to 'gdb/solib-svr4.c')
-rw-r--r--gdb/solib-svr4.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/solib-svr4.c b/gdb/solib-svr4.c
index eb726a2..2377ed3 100644
--- a/gdb/solib-svr4.c
+++ b/gdb/solib-svr4.c
@@ -977,7 +977,7 @@ svr4_free_objfile_observer (struct objfile *objfile)
probes_table_remove_objfile_probes (objfile);
}
-/* Implement target_so_ops.clear_so. */
+/* Implement solib_ops.clear_so. */
static void
svr4_clear_so (const solib &so)
@@ -1386,7 +1386,7 @@ svr4_collect_probes_sos (svr4_info *info)
return res;
}
-/* Implement the main part of the "current_sos" target_so_ops
+/* Implement the main part of the "current_sos" solib_ops
method. */
static intrusive_list<solib>
@@ -1414,7 +1414,7 @@ svr4_current_sos_1 (svr4_info *info)
return sos;
}
-/* Implement the "current_sos" target_so_ops method. */
+/* Implement the "current_sos" solib_ops method. */
static intrusive_list<solib>
svr4_current_sos ()
@@ -3353,7 +3353,7 @@ svr4_iterate_over_objfiles_in_search_order
}
}
-const struct target_so_ops svr4_so_ops =
+const struct solib_ops svr4_so_ops =
{
svr4_relocate_section_addresses,
svr4_clear_so,