mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Add a version of getSourceFiles that takes a progress monitor.
This commit is contained in:
parent
3660472c4c
commit
2f25bce3ed
4 changed files with 38 additions and 1 deletions
|
@ -10,6 +10,8 @@
|
||||||
*******************************************************************************/
|
*******************************************************************************/
|
||||||
package org.eclipse.cdt.core;
|
package org.eclipse.cdt.core;
|
||||||
|
|
||||||
|
import org.eclipse.core.runtime.IProgressMonitor;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* A reader that's able to decipher debug symbol formats.
|
* A reader that's able to decipher debug symbol formats.
|
||||||
*
|
*
|
||||||
|
@ -21,4 +23,13 @@ package org.eclipse.cdt.core;
|
||||||
public interface ISymbolReader {
|
public interface ISymbolReader {
|
||||||
|
|
||||||
String[] getSourceFiles();
|
String[] getSourceFiles();
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Gets the source files from this symbol reader.
|
||||||
|
*
|
||||||
|
* @param monitor a progress monitor since this may be a lengthly operation
|
||||||
|
* @return an array of path names to the source files
|
||||||
|
* @since 5.2
|
||||||
|
*/
|
||||||
|
String[] getSourceFiles(IProgressMonitor monitor);
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,6 +16,7 @@ import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.eclipse.cdt.core.ISymbolReader;
|
import org.eclipse.cdt.core.ISymbolReader;
|
||||||
|
import org.eclipse.core.runtime.IProgressMonitor;
|
||||||
|
|
||||||
public class CodeViewReader implements ISymbolReader {
|
public class CodeViewReader implements ISymbolReader {
|
||||||
|
|
||||||
|
@ -164,4 +165,11 @@ public class CodeViewReader implements ISymbolReader {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @since 5.2
|
||||||
|
*/
|
||||||
|
public String[] getSourceFiles(IProgressMonitor monitor) {
|
||||||
|
return getSourceFiles();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -20,12 +20,13 @@ import java.util.List;
|
||||||
|
|
||||||
import org.eclipse.cdt.core.CCorePlugin;
|
import org.eclipse.cdt.core.CCorePlugin;
|
||||||
import org.eclipse.cdt.core.ISymbolReader;
|
import org.eclipse.cdt.core.ISymbolReader;
|
||||||
import org.eclipse.cdt.utils.coff.PE;
|
|
||||||
import org.eclipse.cdt.utils.coff.Coff.SectionHeader;
|
import org.eclipse.cdt.utils.coff.Coff.SectionHeader;
|
||||||
|
import org.eclipse.cdt.utils.coff.PE;
|
||||||
import org.eclipse.cdt.utils.debug.IDebugEntryRequestor;
|
import org.eclipse.cdt.utils.debug.IDebugEntryRequestor;
|
||||||
import org.eclipse.cdt.utils.elf.Elf;
|
import org.eclipse.cdt.utils.elf.Elf;
|
||||||
import org.eclipse.cdt.utils.elf.Elf.Section;
|
import org.eclipse.cdt.utils.elf.Elf.Section;
|
||||||
import org.eclipse.core.runtime.IPath;
|
import org.eclipse.core.runtime.IPath;
|
||||||
|
import org.eclipse.core.runtime.IProgressMonitor;
|
||||||
import org.eclipse.core.runtime.Path;
|
import org.eclipse.core.runtime.Path;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -479,4 +480,12 @@ public class DwarfReader extends Dwarf implements ISymbolReader {
|
||||||
if (stmtList > -1) // this CU has "stmt_list" attribute
|
if (stmtList > -1) // this CU has "stmt_list" attribute
|
||||||
parseSourceInCULineInfo(cuCompDir, stmtList);
|
parseSourceInCULineInfo(cuCompDir, stmtList);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @since 5.2
|
||||||
|
*/
|
||||||
|
public String[] getSourceFiles(IProgressMonitor monitor) {
|
||||||
|
return getSourceFiles();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,6 +15,7 @@ import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
import org.eclipse.cdt.core.ISymbolReader;
|
import org.eclipse.cdt.core.ISymbolReader;
|
||||||
|
import org.eclipse.core.runtime.IProgressMonitor;
|
||||||
|
|
||||||
public class StabsReader implements ISymbolReader {
|
public class StabsReader implements ISymbolReader {
|
||||||
|
|
||||||
|
@ -244,4 +245,12 @@ public class StabsReader implements ISymbolReader {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @since 5.2
|
||||||
|
*/
|
||||||
|
public String[] getSourceFiles(IProgressMonitor monitor) {
|
||||||
|
return getSourceFiles();
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue