Class DwarfReader
java.lang.Object
org.eclipse.cdt.utils.debug.dwarf.Dwarf
org.eclipse.cdt.utils.debug.dwarf.DwarfReader
- All Implemented Interfaces:
AutoCloseable
,ICompileOptionsFinder
,ISymbolReader
Light-weight parser of Dwarf2 data which is intended for getting only
source files that contribute to the given executable.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetCompileOptions
(String fileName) Get the set of command line flags used for a particular file name.String[]
String[]
getSourceFiles
(org.eclipse.core.runtime.IProgressMonitor monitor) Gets the source files from this symbol reader.void
void
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.eclipse.cdt.core.ISymbolReader
close
-
Constructor Details
-
DwarfReader
- Throws:
IOException
-
DwarfReader
- Throws:
IOException
-
DwarfReader
- Throws:
IOException
- Since:
- 6.9
-
-
Method Details
-
init
- Overrides:
init
in classDwarf
- Throws:
IOException
-
init
- Overrides:
init
in classDwarf
- Throws:
IOException
-
getSourceFiles
- Specified by:
getSourceFiles
in interfaceISymbolReader
-
getSourceFiles
Description copied from interface:ISymbolReader
Gets the source files from this symbol reader.- Specified by:
getSourceFiles
in interfaceISymbolReader
- Parameters:
monitor
- a progress monitor since this may be a lengthly operation- Returns:
- an array of path names to the source files
- Since:
- 5.2
-
getCompileOptions
Get the set of command line flags used for a particular file name.- Specified by:
getCompileOptions
in interfaceICompileOptionsFinder
- Parameters:
fileName
- - name of file- Returns:
- string containing all macros used on command line to compile the file
- Since:
- 5.7
-