aboutsummaryrefslogtreecommitdiff
path: root/gdb/arc-tdep.c
diff options
context:
space:
mode:
authorShahab Vahedi <shahab@synopsys.com>2020-10-05 17:10:47 +0200
committerShahab Vahedi <shahab@synopsys.com>2020-10-07 17:46:23 +0200
commite4bd363f994cf12017cb17dddeb2bc35698ee349 (patch)
tree31f7e68d86ce6f061c86920360298ff9363d8032 /gdb/arc-tdep.c
parent4849105512548d9f362b7111e50ff22c3184326a (diff)
downloadgdb-e4bd363f994cf12017cb17dddeb2bc35698ee349.zip
gdb-e4bd363f994cf12017cb17dddeb2bc35698ee349.tar.gz
gdb-e4bd363f994cf12017cb17dddeb2bc35698ee349.tar.bz2
arc: Rename "arc_gdbarch_features" struct
"arc_gdbarch_features" is a data structure containing information about the ARC architecture: ISA version, register size, etc. This name is misleading, because although it carries the phrase "gdbarch", it has nothing to do with the type/interface in GDB. Traditionaly, "gdbarch" structures are only used for that purpose. To rectify this, this patch changes the name to "arc_arch_features". gdb/ChangeLog: * arch/arc.h: Rename "arc_gdbarch_features" to "arc_arch_features". * arc-tdep.h: Likewise. * arc-tdep.c: Likewise.
Diffstat (limited to 'gdb/arc-tdep.c')
-rw-r--r--gdb/arc-tdep.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/gdb/arc-tdep.c b/gdb/arc-tdep.c
index 6878875..ec624bc 100644
--- a/gdb/arc-tdep.c
+++ b/gdb/arc-tdep.c
@@ -1883,11 +1883,11 @@ mach_type_to_arc_isa (const unsigned long mach)
}
}
-/* Common construction code for ARC_GDBARCH_FEATURES struct. If there
+/* Common construction code for ARC_ARCH_FEATURES struct. If there
is no ABFD, then a FEATURE with default values is returned. */
-static arc_gdbarch_features
-arc_gdbarch_features_create (const bfd *abfd, const unsigned long mach)
+static arc_arch_features
+arc_arch_features_create (const bfd *abfd, const unsigned long mach)
{
/* Use 4 as a fallback value. */
int reg_size = 4;
@@ -1915,7 +1915,7 @@ arc_gdbarch_features_create (const bfd *abfd, const unsigned long mach)
case). */
arc_isa isa = mach_type_to_arc_isa (mach);
- return arc_gdbarch_features (reg_size, isa);
+ return arc_arch_features (reg_size, isa);
}
/* Look for obsolete core feature names in TDESC. */
@@ -2085,9 +2085,9 @@ arc_tdesc_init (struct gdbarch_info info, const struct target_desc **tdesc,
/* If target doesn't provide a description, use the default ones. */
if (!tdesc_has_registers (tdesc_loc))
{
- arc_gdbarch_features features
- = arc_gdbarch_features_create (info.abfd,
- info.bfd_arch_info->mach);
+ arc_arch_features features
+ = arc_arch_features_create (info.abfd,
+ info.bfd_arch_info->mach);
tdesc_loc = arc_lookup_target_description (features);
}
gdb_assert (tdesc_loc != nullptr);