aboutsummaryrefslogtreecommitdiff
path: root/gdb/coffread.c
diff options
context:
space:
mode:
authorStu Grossman <grossman@cygnus>1991-08-22 22:50:50 +0000
committerStu Grossman <grossman@cygnus>1991-08-22 22:50:50 +0000
commit61a7292f6f9ba0f3885194d2b6f9e91f869e816b (patch)
tree268ce6ecee1f7320490dea73dfe76f78e731c99f /gdb/coffread.c
parentaa69ff846c6c4ec6fb77e148fa1bc1eb4a907799 (diff)
downloadgdb-61a7292f6f9ba0f3885194d2b6f9e91f869e816b.zip
gdb-61a7292f6f9ba0f3885194d2b6f9e91f869e816b.tar.gz
gdb-61a7292f6f9ba0f3885194d2b6f9e91f869e816b.tar.bz2
lint
Diffstat (limited to 'gdb/coffread.c')
-rw-r--r--gdb/coffread.c21
1 files changed, 10 insertions, 11 deletions
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