1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-23 14:42:11 +02:00

Treat DWARF_DEBUG_STR as optional as not all compilers generate it.

This commit is contained in:
Ken Ryall 2006-06-15 15:39:45 +00:00
parent 7c32c381ed
commit b77acc0bee

View file

@ -27,13 +27,13 @@ import org.eclipse.core.runtime.Path;
*/ */
public class DwarfReader extends Dwarf implements ISymbolReader { public class DwarfReader extends Dwarf implements ISymbolReader {
// These are sections that must be parsed to get the source file list. // These are sections that need be parsed to get the source file list.
final static String[] DWARF_SectionsToParse = final static String[] DWARF_SectionsToParse =
{ {
DWARF_DEBUG_INFO, DWARF_DEBUG_INFO,
DWARF_DEBUG_LINE, DWARF_DEBUG_LINE,
DWARF_DEBUG_ABBREV, DWARF_DEBUG_ABBREV,
DWARF_DEBUG_STR DWARF_DEBUG_STR // this is optional. Some compilers don't generate it.
}; };
ArrayList fileList; ArrayList fileList;
@ -68,9 +68,6 @@ public class DwarfReader extends Dwarf implements ISymbolReader {
} }
} }
if (dwarfSections.size() < DWARF_SectionsToParse.length)
throw new IOException("No enough Dwarf data.");
// Don't print during parsing. // Don't print during parsing.
printEnabled = false; printEnabled = false;