]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* paread.c, coffread.c, elfread.c: Include <time.h> before libbfd.h.
authorJim Kingdon <jkingdon@engr.sgi.com>
Tue, 14 Sep 1993 18:10:42 +0000 (18:10 +0000)
committerJim Kingdon <jkingdon@engr.sgi.com>
Tue, 14 Sep 1993 18:10:42 +0000 (18:10 +0000)
gdb/ChangeLog
gdb/coffread.c
gdb/elfread.c

index a0e684125f076ae6fbc39a9d31e06f622e937b1d..ecb459d57f03ae6fb67338979c7ebc133a25a20e 100644 (file)
@@ -1,6 +1,6 @@
 Tue Sep 14 09:12:17 1993  Jim Kingdon  (kingdon@cirdan.cygnus.com)
 
-       * paread.c: Include <time.h> before libbfd.h.
+       * paread.c, coffread.c, elfread.c: Include <time.h> before libbfd.h.
 
        * paread.c: Define BYTES_IN_WORD before including aout/aout64.h.
 
index 766868274150f0b58839abe00dc94368e12cc8ec..05e9a08d7d2644326203c33a545a7302a22c45ae 100644 (file)
@@ -32,6 +32,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 
 #include <string.h>
 
+#include <time.h> /* For time_t in libbfd.h.  */
 #include "libbfd.h"            /* FIXME secret internal data from BFD */
 #include "coff/internal.h"     /* Internal format of COFF symbols in BFD */
 #include "libcoff.h"           /* FIXME secret internal data from BFD */
@@ -316,7 +317,7 @@ coff_alloc_type (index)
   return type;
 }
 \f
-/* Manage the vector of line numbers.  */
+/* Manage the vector of line numbers.  FIXME:  Use record_line instead.  */
 
 static void
 coff_record_line (line, pc)
@@ -406,6 +407,11 @@ coff_end_symtab (objfile)
 
   last_source_start_addr = cur_src_start_addr;
 
+  /* For no good reason, this file stores the number of entries in a
+     separate variable instead of in line_vector->nitems.  Fix it.  */
+  if (line_vector)
+    line_vector->nitems = line_vector_index;
+
   /* For COFF, we only have one subfile, so we can just look at
      subfiles and not worry about there being other elements in the
      chain.  We fill in various fields now because we didn't know them
@@ -1951,7 +1957,7 @@ coff_read_enum_type (index, length, lastsym)
 
 /* Fake up support for relocating symbol addresses.  FIXME.  */
 
-struct section_offsets coff_symfile_faker = {0};
+struct section_offsets coff_symfile_faker = {{0}};
 
 struct section_offsets *
 coff_symfile_offsets (objfile, addr)
index 84d4f1fdb4e5d487516a5a3aba813e803838d57e..aefb678545cb45f8707538cf9e04af691e29d14b 100644 (file)
@@ -20,6 +20,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 
 #include "defs.h"
 #include "bfd.h"
+#include <time.h> /* For time_t in libbfd.h.  */
 #include "libbfd.h"            /* For bfd_elf_find_section */
 #include "libelf.h"
 #include "symtab.h"