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/solist.h | |
parent | 30932f40120fa64147f8b5f7d9e4c462825c4e47 (diff) | |
download | gdb-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/solist.h')
-rw-r--r-- | gdb/solist.h | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/gdb/solist.h b/gdb/solist.h index c9ab49a..fb61ebe 100644 --- a/gdb/solist.h +++ b/gdb/solist.h @@ -36,7 +36,7 @@ struct lm_info using lm_info_up = std::unique_ptr<lm_info>; -struct so_list : intrusive_list_node<so_list> +struct shobj : intrusive_list_node<shobj> { /* Free symbol-file related contents of SO and reset for possible reloading of SO. If we have opened a BFD for SO, close it. If we have placed SO's @@ -97,12 +97,12 @@ struct target_so_ops { /* Adjust the section binding addresses by the base address at which the object was actually mapped. */ - void (*relocate_section_addresses) (so_list &so, target_section *); + void (*relocate_section_addresses) (shobj &so, target_section *); /* Reset private data structures associated with SO. This is called when SO is about to be reloaded. It is also called when SO is about to be freed. */ - void (*clear_so) (const so_list &so); + void (*clear_so) (const shobj &so); /* Free private data structures associated to PSPACE. This method should not free resources associated to individual so_list entries, @@ -117,9 +117,9 @@ struct target_so_ops Note that we only gather information directly available from the inferior --- we don't examine any of the shared library files - themselves. The declaration of `struct so_list' says which fields + themselves. The declaration of `struct shobj' says which fields we provide values for. */ - intrusive_list<so_list> (*current_sos) (); + intrusive_list<shobj> (*current_sos) (); /* Find, open, and read the symbols for the main executable. If FROM_TTY is non-zero, allow messages to be printed. */ @@ -145,7 +145,7 @@ struct target_so_ops if they represent the same library. Falls back to using strcmp on so_original_name field when set to NULL. */ - int (*same) (const so_list &gdb, const so_list &inferior); + int (*same) (const shobj &gdb, const shobj &inferior); /* Return whether a region of memory must be kept in a core file for shared libraries loaded before "gcore" is used to be @@ -170,7 +170,7 @@ struct target_so_ops }; /* A unique pointer to a so_list. */ -using so_list_up = std::unique_ptr<so_list>; +using shobj_up = std::unique_ptr<shobj>; /* Find main executable binary file. */ extern gdb::unique_xmalloc_ptr<char> exec_file_find (const char *in_pathname, |