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:
parent
7c32c381ed
commit
b77acc0bee
1 changed files with 2 additions and 5 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue