Remove struct keyword from section_addr_info
authorKeith Seitz <keiths@redhat.com>
Mon, 26 Mar 2018 17:34:28 +0000 (10:34 -0700)
committerKeith Seitz <keiths@redhat.com>
Mon, 26 Mar 2018 17:34:28 +0000 (10:34 -0700)
Buildbot pointed out a failiure in windows-nat.c:

../../binutils-gdb/gdb/windows-nat.c:582:10: error: using typedef-name 'section_addr_info' after 'struct'
   struct section_addr_info *addrs;
          ^~~~~~~~~~~~~~~~~
In file included from ../../binutils-gdb/gdb/windows-nat.c:49:0:
../../binutils-gdb/gdb/symfile.h:75:37: note: 'section_addr_info' has a previous declaration here
 typedef std::vector<other_sections> section_addr_info;
                                     ^~~~~~~~~~~~~~~~~

A recursive grep of the sources for "struct section_addr_info" reveals one
additional reference in a comment.  In both cases, this patch simply removes
the struct keyword.

gdb/ChangeLog:

* symfile.c (place_section): Remove "struct" from section_addr_info
in comment.
* windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
"struct" keyword from section_addr_info.

gdb/ChangeLog
gdb/symfile.c
gdb/windows-nat.c

index 20bf9417cfde8c0cdd2f18c015581701af8c1330..6de315081feb50dabb061ebfee4269e785f73dc8 100644 (file)
@@ -1,3 +1,10 @@
+2018-03-26  Keith Seitz  <keiths@redhat.com>
+
+       * symfile.c (place_section): Remove "struct" from section_addr_info
+       in comment.
+       * windows-nat.c (struct safe_symbol_file_add_args) <addrs>: Remove
+       "struct" keyword from section_addr_info.
+
 2018-03-26  Alan Hayward  <alan.hayward@arm.com>
 
        * regformats/regdef.h (reg): Add constructors.
index 9571664776dffac48c85dd952c04295e94dbe4e1..1e5297ee294215b3b6f5ff86fcc04ea06255e17e 100644 (file)
@@ -412,7 +412,7 @@ place_section (bfd *abfd, asection *sect, void *obj)
   arg->lowest = start_addr + bfd_get_section_size (sect);
 }
 
-/* Store struct section_addr_info as prepared (made relative and with SECTINDEX
+/* Store section_addr_info as prepared (made relative and with SECTINDEX
    filled-in) by addr_info_make_relative into SECTION_OFFSETS of NUM_SECTIONS
    entries.  */
 
index f849f1f322160aa1dbb2032799500fd4c4f670e1..430cc60993b1f7c8d1656feaa8750a076cc3b237 100644 (file)
@@ -579,7 +579,7 @@ struct safe_symbol_file_add_args
 {
   char *name;
   int from_tty;
-  struct section_addr_info *addrs;
+  section_addr_info *addrs;
   int mainline;
   int flags;
   struct ui_file *err, *out;
This page took 0.030891 seconds and 4 git commands to generate.