mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 02:39:44 +02:00
GP-249 - Task Dialog - fixed issue with task dialog appearing over user input dialog; fixed spin/sleep code
This commit is contained in:
parent
22fd0a24a3
commit
dc7e45762d
8 changed files with 172 additions and 185 deletions
|
@ -47,7 +47,7 @@ class LoadPdbTask extends Task {
|
|||
|
||||
LoadPdbTask(Program program, File pdbFile, boolean useMsDiaParser,
|
||||
PdbApplicatorRestrictions restrictions, DataTypeManagerService service) {
|
||||
super("Loading PDB...", true, false, false);
|
||||
super("Load PDB", true, false, false);
|
||||
this.program = program;
|
||||
this.pdbFile = pdbFile;
|
||||
this.useMsDiaParser = useMsDiaParser;
|
||||
|
@ -88,12 +88,9 @@ class LoadPdbTask extends Task {
|
|||
}
|
||||
};
|
||||
|
||||
|
||||
|
||||
try {
|
||||
AutoAnalysisManager.getAnalysisManager(program)
|
||||
.scheduleWorker(worker, null, true,
|
||||
monitor);
|
||||
.scheduleWorker(worker, null, true, monitor);
|
||||
if (log.hasMessages()) {
|
||||
MultiLineMessageDialog dialog = new MultiLineMessageDialog("Load PDB File",
|
||||
"There were warnings/errors loading the PDB file.", log.toString(),
|
||||
|
@ -151,9 +148,8 @@ class LoadPdbTask extends Task {
|
|||
|
||||
pdbApplicatorOptions.setRestrictions(restrictions);
|
||||
|
||||
try (AbstractPdb pdb =
|
||||
ghidra.app.util.bin.format.pdb2.pdbreader.PdbParser.parse(pdbFile.getAbsolutePath(),
|
||||
pdbReaderOptions, monitor)) {
|
||||
try (AbstractPdb pdb = ghidra.app.util.bin.format.pdb2.pdbreader.PdbParser
|
||||
.parse(pdbFile.getAbsolutePath(), pdbReaderOptions, monitor)) {
|
||||
monitor.setMessage("PDB: Parsing " + pdbFile + "...");
|
||||
pdb.deserialize(monitor);
|
||||
PdbApplicator applicator = new PdbApplicator(pdbFile.getAbsolutePath(), pdb);
|
||||
|
@ -166,7 +162,7 @@ class LoadPdbTask extends Task {
|
|||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
private void analyzeSymbols(TaskMonitor monitor, MessageLog log) {
|
||||
|
||||
MicrosoftDemanglerAnalyzer demanglerAnalyzer = new MicrosoftDemanglerAnalyzer();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue