mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2024-11-25 21:51:47 +00:00
GP-1101 Added missing isPDBLoaded flag assignment to the RTTIWindowsClassRecoverer which was inadvertently left out during refactoring.
This commit is contained in:
parent
9a1e83d9ce
commit
b8e8c094a1
@ -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() {
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user