ODR warning for struct ext_link_map
authorTom Tromey <tromey@adacore.com>
Tue, 10 May 2022 15:23:27 +0000 (09:23 -0600)
committerTom Tromey <tromey@adacore.com>
Thu, 2 Jun 2022 15:04:45 +0000 (09:04 -0600)
This renames the solib-dsbt.c copy of "struct ext_link_map" to avoid
an ODR warning.

Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=22395

gdb/solib-dsbt.c

index 0b03f9446086dd0696ac73dc9ac3f3a9ada3a713..6af472172612f69a28ad874521af9f4ecc6c4bb8 100644 (file)
@@ -107,7 +107,7 @@ struct ext_elf32_dsbt_loadaddr
   ext_ptr map;                 /* struct elf32_dsbt_loadmap *map; */
 };
 
-struct ext_link_map
+struct dbst_ext_link_map
 {
   struct ext_elf32_dsbt_loadaddr l_addr;
 
@@ -546,7 +546,7 @@ dsbt_current_sos (void)
      building the solist chain.  */
   while (lm_addr)
     {
-      struct ext_link_map lm_buf;
+      struct dbst_ext_link_map lm_buf;
       ext_Elf32_Word indexword;
       CORE_ADDR map_addr;
       int dsbt_index;