From b77acc0beeaa45d919387d63f2a629623db02b7b Mon Sep 17 00:00:00 2001 From: Ken Ryall Date: Thu, 15 Jun 2006 15:39:45 +0000 Subject: [PATCH] Treat DWARF_DEBUG_STR as optional as not all compilers generate it. --- .../org/eclipse/cdt/utils/debug/dwarf/DwarfReader.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/debug/dwarf/DwarfReader.java b/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/debug/dwarf/DwarfReader.java index 4f445ec3175..8db60e4c0c7 100644 --- a/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/debug/dwarf/DwarfReader.java +++ b/core/org.eclipse.cdt.core/utils/org/eclipse/cdt/utils/debug/dwarf/DwarfReader.java @@ -27,13 +27,13 @@ import org.eclipse.core.runtime.Path; */ 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 = { DWARF_DEBUG_INFO, DWARF_DEBUG_LINE, DWARF_DEBUG_ABBREV, - DWARF_DEBUG_STR + DWARF_DEBUG_STR // this is optional. Some compilers don't generate it. }; 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. printEnabled = false;