From 61a7292f6f9ba0f3885194d2b6f9e91f869e816b Mon Sep 17 00:00:00 2001 From: Stu Grossman Date: Thu, 22 Aug 1991 22:50:50 +0000 Subject: lint --- gdb/coffread.c | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) (limited to 'gdb/coffread.c') diff --git a/gdb/coffread.c b/gdb/coffread.c index 54ca80b..c695056 100644 --- a/gdb/coffread.c +++ b/gdb/coffread.c @@ -689,6 +689,7 @@ static bfd *symfile_bfd; /* FIXME! Addr and Mainline are not used yet -- this will not work for shared libraries or add_file! */ +/* ARGSUSED */ void coff_symfile_read (sf, addr, mainline) struct sym_fns *sf; @@ -756,7 +757,7 @@ coff_symfile_read (sf, addr, mainline) /* Go over the misc symbol bunches and install them in vector. */ - condense_misc_bunches (0); + condense_misc_bunches (!mainline); /* Make a default for file to list. */ @@ -764,12 +765,6 @@ coff_symfile_read (sf, addr, mainline) } void -coff_symfile_discard () -{ - /* There seems to be nothing to do here. */ -} - -void coff_new_init () { /* There seems to be nothing to do except free_all_symtabs and set @@ -1322,6 +1317,12 @@ init_lineno (chan, offset, size) { int val; + linetab_offset = offset; + linetab_size = size; + + if (size == 0) + return 0; + if (lseek (chan, offset, 0) < 0) return -1; @@ -1331,8 +1332,6 @@ init_lineno (chan, offset, size) if (val != size) return -1; - linetab_offset = offset; - linetab_size = size; make_cleanup (free, linetab); /* Be sure it gets de-allocated. */ return 0; } @@ -1935,6 +1934,7 @@ read_struct_type (index, length, lastsym) Also defines the symbols that represent the values of the type. */ /* Currently assumes it's sizeof (int) and doesn't use length. */ +/* ARGSUSED */ static struct type * read_enum_type (index, length, lastsym) int index; @@ -2033,8 +2033,7 @@ static struct sym_fns coff_sym_fns = #else /* not TDESC */ "coff", 4, #endif /* not TDESC */ - coff_new_init, coff_symfile_init, - coff_symfile_read, coff_symfile_discard + coff_new_init, coff_symfile_init, coff_symfile_read, }; void -- cgit v1.1