aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorSimon Marchi <simon.marchi@efficios.com>2023-10-02 15:57:46 -0400
committerSimon Marchi <simon.marchi@efficios.com>2023-10-19 10:57:51 -0400
commitae4bf24404a134d96bc1844fc949ca518df698f8 (patch)
tree9a96c655e4c2647a668b21fb722aafef96859216 /gdb
parent94d5c64878a75c573c98502497cd2118720e8bbe (diff)
downloadgdb-ae4bf24404a134d96bc1844fc949ca518df698f8.zip
gdb-ae4bf24404a134d96bc1844fc949ca518df698f8.tar.gz
gdb-ae4bf24404a134d96bc1844fc949ca518df698f8.tar.bz2
gdb: rename lm_info_base to lm_info
The base class doesn't need to have "_base" in its name, all the sub-classes have a specific suffix. Change-Id: I87652105cfedd87898770a81f0eda343ff7f2bdb Approved-By: Pedro Alves <pedro@palves.net> Reviewed-By: Reviewed-By: Lancelot Six <lancelot.six@amd.com>
Diffstat (limited to 'gdb')
-rw-r--r--gdb/solib-aix.c2
-rw-r--r--gdb/solib-darwin.c2
-rw-r--r--gdb/solib-dsbt.c2
-rw-r--r--gdb/solib-frv.c2
-rw-r--r--gdb/solib-svr4.h2
-rw-r--r--gdb/solib-target.c2
-rw-r--r--gdb/solist.h4
7 files changed, 8 insertions, 8 deletions
diff --git a/gdb/solib-aix.c b/gdb/solib-aix.c
index 515d9d6..7e7333e 100644
--- a/gdb/solib-aix.c
+++ b/gdb/solib-aix.c
@@ -28,7 +28,7 @@
/* Our private data in struct so_list. */
-struct lm_info_aix : public lm_info_base
+struct lm_info_aix : public lm_info
{
/* The name of the file mapped by the loader. Apart from the entry
for the main executable, this is usually a shared library (which,
diff --git a/gdb/solib-darwin.c b/gdb/solib-darwin.c
index 0d58991..aebcf81 100644
--- a/gdb/solib-darwin.c
+++ b/gdb/solib-darwin.c
@@ -135,7 +135,7 @@ darwin_load_image_infos (struct darwin_info *info)
/* Link map info to include in an allocated so_list entry. */
-struct lm_info_darwin : public lm_info_base
+struct lm_info_darwin : public lm_info
{
/* The target location of lm. */
CORE_ADDR lm_addr = 0;
diff --git a/gdb/solib-dsbt.c b/gdb/solib-dsbt.c
index bd60c6f..8de2360 100644
--- a/gdb/solib-dsbt.c
+++ b/gdb/solib-dsbt.c
@@ -123,7 +123,7 @@ struct dbst_ext_link_map
/* Link map info to include in an allocated so_list entry */
-struct lm_info_dsbt : public lm_info_base
+struct lm_info_dsbt : public lm_info
{
~lm_info_dsbt ()
{
diff --git a/gdb/solib-frv.c b/gdb/solib-frv.c
index f823aca..caf8a9a 100644
--- a/gdb/solib-frv.c
+++ b/gdb/solib-frv.c
@@ -196,7 +196,7 @@ struct ext_link_map
/* Link map info to include in an allocated so_list entry. */
-struct lm_info_frv : public lm_info_base
+struct lm_info_frv : public lm_info
{
~lm_info_frv ()
{
diff --git a/gdb/solib-svr4.h b/gdb/solib-svr4.h
index ff15603..050c702 100644
--- a/gdb/solib-svr4.h
+++ b/gdb/solib-svr4.h
@@ -29,7 +29,7 @@ extern const struct target_so_ops svr4_so_ops;
/* Link map info to include in an allocated so_list entry. */
-struct lm_info_svr4 : public lm_info_base
+struct lm_info_svr4 : public lm_info
{
/* Amount by which addresses in the binary should be relocated to
match the inferior. The direct inferior value is L_ADDR_INFERIOR.
diff --git a/gdb/solib-target.c b/gdb/solib-target.c
index d2459b5..8e6a440 100644
--- a/gdb/solib-target.c
+++ b/gdb/solib-target.c
@@ -28,7 +28,7 @@
#include "inferior.h"
/* Private data for each loaded library. */
-struct lm_info_target : public lm_info_base
+struct lm_info_target : public lm_info
{
/* The library's name. The name is normally kept in the struct
so_list; it is only here during XML parsing. */
diff --git a/gdb/solist.h b/gdb/solist.h
index 8b80ed4..51b1ceb 100644
--- a/gdb/solist.h
+++ b/gdb/solist.h
@@ -27,7 +27,7 @@
/* Base class for target-specific link map information. */
-struct lm_info_base
+struct lm_info
{
};
@@ -43,7 +43,7 @@ struct so_list
will be a copy of struct link_map from the user process, but
it need not be; it can be any collection of data needed to
traverse the dynamic linker's data structures. */
- lm_info_base *lm_info = nullptr;
+ struct lm_info *lm_info = nullptr;
/* Shared object file name, exactly as it appears in the
inferior's link map. This may be a relative path, or something