From e1ce8aa5ed46310d716472d19d2e87da2833d599 Mon Sep 17 00:00:00 2001 From: Jim Kingdon Date: Thu, 2 May 1991 04:28:42 +0000 Subject: The list of changes is too long to fit in the cvs log (since it truncates!). Look at the ChangeLog for Apr 30 and May 1. --- gdb/coffread.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'gdb/coffread.c') diff --git a/gdb/coffread.c b/gdb/coffread.c index 0472591..9ef0092 100644 --- a/gdb/coffread.c +++ b/gdb/coffread.c @@ -394,7 +394,7 @@ make_blockvector () /* Manage the vector of line numbers. */ -static +static void record_line (line, pc) int line; CORE_ADDR pc; @@ -616,6 +616,7 @@ coff_symfile_init (sf) of the line table (minimum and maximum file offset) so that the mainline code can read the whole thing for efficiency. */ +/* ARGSUSED */ static void find_linenos (abfd, asect, vpinfo) bfd *abfd; @@ -653,6 +654,11 @@ find_linenos (abfd, asect, vpinfo) } +/* The BFD for this file -- only good while we're actively reading + symbols into a psymtab or a symtab. */ + +static bfd *symfile_bfd; + /* Read a symbol file, after initialization by coff_symfile_init. */ /* FIXME! Addr and Mainline are not used yet -- this will not work for shared libraries or add_file! */ @@ -1897,6 +1903,7 @@ read_struct_type (index, length, lastsym) /* Read a definition of an enumeration type, and create and return a suitable type object. Also defines the symbols that represent the values of the type. */ +/* Currently assumes it's sizeof (int) and doesn't use length. */ static struct type * read_enum_type (index, length, lastsym) @@ -1960,6 +1967,7 @@ read_enum_type (index, length, lastsym) /* Now fill in the fields of the type-structure. */ + /* FIXME: Should be sizeof (int) on target, not host. */ TYPE_LENGTH (type) = sizeof (int); TYPE_CODE (type) = TYPE_CODE_ENUM; TYPE_NFIELDS (type) = nsyms; -- cgit v1.1