GP-1101 Added missing isPDBLoaded flag assignment to the RTTIWindowsClassRecoverer which was inadvertently left out during refactoring.

This commit is contained in:
ghidra007 2021-07-06 14:35:02 -04:00
parent 9a1e83d9ce
commit b8e8c094a1
2 changed files with 4 additions and 10 deletions

View File

@ -275,12 +275,8 @@ public class RecoverClassesFromRTTIScript extends GhidraScript {
private boolean isPDBLoadedInProgram() {
Options options = currentProgram.getOptions("Program Information");
isPDBLoaded = false;
Object isPDBLoadedObject = options.getObject("PDB Loaded", null);
if (isPDBLoadedObject != null) {
isPDBLoaded = (boolean) isPDBLoadedObject;
}
return isPDBLoaded;
return options.getBoolean("PDB Loaded", false);
}
public String validate() {

View File

@ -91,6 +91,8 @@ public class RTTIWindowsClassRecoverer extends RTTIClassRecoverer {
super(program, location, tool, api, createBookmarks, useShortTemplates, nameVFunctions,
monitor);
this.isPDBLoaded = isPDBLoaded;
}
@Override
@ -147,8 +149,6 @@ public class RTTIWindowsClassRecoverer extends RTTIClassRecoverer {
@Override
public List<RecoveredClass> createRecoveredClasses() {
//TODO: check the classPath var for null and return null if it is null
List<Symbol> vftableSymbols;
try {
vftableSymbols = getListOfVftableSymbols();
@ -254,8 +254,6 @@ public class RTTIWindowsClassRecoverer extends RTTIClassRecoverer {
return false;
}
/**
* Method to determine if the current program has RTTI data applied to it
* @return true if the current program has RTTI data applied to it