From 996ccb3043d9237ea8e6e79d6a7c6121b15f9e61 Mon Sep 17 00:00:00 2001 From: Jim Kingdon Date: Thu, 2 Sep 1993 01:41:40 +0000 Subject: * symtab.c, symfile.c, c-exp.y, ch-exp.y, m2-exp.y, buildsym.c, symfile.h, stabsread.c, minsyms.c, solib.c, nlmread.c, dwarfread.c partial-stab.h, symmisc.c, gdbtypes.c: Lint. Remove (or put inside #if) unused variables and labels. Fix unclosed comment. Deal with enumeration values unhandled in switch statements. Make sure non-void functions return values. Include appropriate headers. * dbxread.c (elfstab_build_psymtabs): Don't check for unsigned value < 0. --- gdb/dbxread.c | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'gdb/dbxread.c') diff --git a/gdb/dbxread.c b/gdb/dbxread.c index 42bd4b4..e50cd04 100644 --- a/gdb/dbxread.c +++ b/gdb/dbxread.c @@ -1356,7 +1356,6 @@ read_ofile_symtab (pst) unsigned char type; unsigned max_symnum; register bfd *abfd; - struct symtab *rtn; struct objfile *objfile; int sym_offset; /* Offset to start of symbols to read */ int sym_size; /* Size of symbols to read */ @@ -2077,8 +2076,7 @@ elfstab_build_psymtabs (objfile, section_offsets, mainline, DBX_STRINGTAB_SIZE (objfile) = stabstrsize; DBX_SYMTAB_OFFSET (objfile) = staboffset; - if (stabstrsize < 0 /* FIXME: stabstrsize is unsigned; never true! */ - || stabstrsize > bfd_get_size (sym_bfd)) + if (stabstrsize > bfd_get_size (sym_bfd)) error ("ridiculous string table size: %d bytes", stabstrsize); DBX_STRINGTAB (objfile) = (char *) obstack_alloc (&objfile->psymbol_obstack, stabstrsize+1); -- cgit v1.1