aboutsummaryrefslogtreecommitdiff
path: root/gdb/rs6000-aix-tdep.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@adacore.com>2022-05-10 09:13:42 -0600
committerTom Tromey <tromey@adacore.com>2022-06-02 09:04:45 -0600
commitc01e28360d30a9dd750b8c27157a12c99d1a6188 (patch)
tree90e4e0ef9530c6f1bd20841634cd6ee5ae369a63 /gdb/rs6000-aix-tdep.c
parent7e9d9756db9e4243a219d8837f2691572bcd5819 (diff)
downloadgdb-c01e28360d30a9dd750b8c27157a12c99d1a6188.zip
gdb-c01e28360d30a9dd750b8c27157a12c99d1a6188.tar.gz
gdb-c01e28360d30a9dd750b8c27157a12c99d1a6188.tar.bz2
ODR warning for struct field_info
This renames one of the instance of "struct field_info" to avoid an ODR warning. Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=22395
Diffstat (limited to 'gdb/rs6000-aix-tdep.c')
-rw-r--r--gdb/rs6000-aix-tdep.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/gdb/rs6000-aix-tdep.c b/gdb/rs6000-aix-tdep.c
index ead03bf..867f21d 100644
--- a/gdb/rs6000-aix-tdep.c
+++ b/gdb/rs6000-aix-tdep.c
@@ -849,7 +849,7 @@ rs6000_aix_osabi_sniffer (bfd *abfd)
/* A structure encoding the offset and size of a field within
a struct. */
-struct field_info
+struct ldinfo_field
{
int offset;
int size;
@@ -861,13 +861,13 @@ struct field_info
struct ld_info_desc
{
- struct field_info ldinfo_next;
- struct field_info ldinfo_fd;
- struct field_info ldinfo_textorg;
- struct field_info ldinfo_textsize;
- struct field_info ldinfo_dataorg;
- struct field_info ldinfo_datasize;
- struct field_info ldinfo_filename;
+ struct ldinfo_field ldinfo_next;
+ struct ldinfo_field ldinfo_fd;
+ struct ldinfo_field ldinfo_textorg;
+ struct ldinfo_field ldinfo_textsize;
+ struct ldinfo_field ldinfo_dataorg;
+ struct ldinfo_field ldinfo_datasize;
+ struct ldinfo_field ldinfo_filename;
};
/* The following data has been generated by compiling and running