mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 19:42:36 +02:00
GP-2367 - PDB U - cleanup: remove Abstract from some names, incorporate filename and monitor into MSF and make available to PDB and other classes, better employ monitor in reader, fix some javadoc
This commit is contained in:
parent
6842712129
commit
e7846664a8
67 changed files with 1583 additions and 1559 deletions
|
@ -63,7 +63,7 @@ public class PdbDeveloperDumpScript extends GhidraScript {
|
|||
monitor.setMessage(message);
|
||||
Msg.info(this, message);
|
||||
try (AbstractPdb pdb = PdbParser.parse(pdbFileName, new PdbReaderOptions(), monitor)) {
|
||||
pdb.deserialize(monitor);
|
||||
pdb.deserialize();
|
||||
FileWriter fileWriter = new FileWriter(dumpFile);
|
||||
BufferedWriter bufferedWriter = new BufferedWriter(fileWriter);
|
||||
outputHeaderMessage(bufferedWriter, pdbFileName);
|
||||
|
|
|
@ -86,7 +86,7 @@ public class PdbDeveloperDumpSetScript extends GhidraScript {
|
|||
println("Processing PDB Dump of: " + entry.input());
|
||||
try (AbstractPdb pdb =
|
||||
PdbParser.parse(entry.input(), new PdbReaderOptions(), monitor)) {
|
||||
pdb.deserialize(monitor);
|
||||
pdb.deserialize();
|
||||
try (BufferedWriter bufferedWriter =
|
||||
new BufferedWriter(new FileWriter(new File(entry.output())))) {
|
||||
outputHeaderMessage(bufferedWriter, entry.input());
|
||||
|
|
|
@ -61,7 +61,7 @@ public class PdbFactory {
|
|||
try {
|
||||
AbstractPdb pdb = PdbParser.parse(filename, new PdbReaderOptions(), monitor);
|
||||
PdbIdentifiers identifiers = pdb.getIdentifiers();
|
||||
pdb.deserialize(monitor);
|
||||
pdb.deserialize();
|
||||
PdbReaderMetrics metrics = pdb.getPdbReaderMetrics();
|
||||
pdbInfo = new PdbInfo(filename, identifiers, pdb, metrics);
|
||||
pdbInfoByFile.put(filename, pdbInfo);
|
||||
|
|
|
@ -41,7 +41,7 @@ public class PdbQuery {
|
|||
*/
|
||||
public static AbstractMsType getDataTypeRecord(GhidraScript script, AbstractPdb pdb,
|
||||
int number) {
|
||||
AbstractTypeProgramInterface tpi = pdb.getTypeProgramInterface();
|
||||
TypeProgramInterface tpi = pdb.getTypeProgramInterface();
|
||||
if (tpi == null) {
|
||||
println(script, "PDB does not contain a TPI... aborting search.");
|
||||
return null;
|
||||
|
@ -75,7 +75,7 @@ public class PdbQuery {
|
|||
*/
|
||||
public static AbstractMsType getItemTypeRecord(GhidraScript script, AbstractPdb pdb,
|
||||
int number) {
|
||||
AbstractTypeProgramInterface ipi = pdb.getItemProgramInterface();
|
||||
TypeProgramInterface ipi = pdb.getItemProgramInterface();
|
||||
if (ipi == null) {
|
||||
println(script, "PDB does not contain an IPI... aborting search.");
|
||||
return null;
|
||||
|
@ -102,7 +102,7 @@ public class PdbQuery {
|
|||
|
||||
/**
|
||||
* Searches PDB data type records that contain the search string. Outputs results to the
|
||||
* console.
|
||||
* console
|
||||
* @param script the script for which we are working
|
||||
* @param pdb the PDB to search
|
||||
* @param searchString the search string
|
||||
|
@ -110,7 +110,7 @@ public class PdbQuery {
|
|||
*/
|
||||
public static void searchDataTypes(GhidraScript script, AbstractPdb pdb, String searchString)
|
||||
throws CancelledException {
|
||||
AbstractTypeProgramInterface tpi = pdb.getTypeProgramInterface();
|
||||
TypeProgramInterface tpi = pdb.getTypeProgramInterface();
|
||||
if (tpi == null) {
|
||||
println(script, "PDB does not contain a TPI... aborting search.");
|
||||
}
|
||||
|
@ -140,7 +140,7 @@ public class PdbQuery {
|
|||
|
||||
/**
|
||||
* Searches PDB item records that contain the search string. Outputs results to the
|
||||
* console.
|
||||
* console
|
||||
* @param script the script for which we are working
|
||||
* @param pdb the PDB to search
|
||||
* @param searchString the search string
|
||||
|
@ -148,7 +148,7 @@ public class PdbQuery {
|
|||
*/
|
||||
public static void searchItemTypes(GhidraScript script, AbstractPdb pdb, String searchString)
|
||||
throws CancelledException {
|
||||
AbstractTypeProgramInterface ipi = pdb.getItemProgramInterface();
|
||||
TypeProgramInterface ipi = pdb.getItemProgramInterface();
|
||||
if (ipi == null) {
|
||||
println(script, "PDB does not contain an IPI... aborting search.");
|
||||
return;
|
||||
|
@ -179,7 +179,7 @@ public class PdbQuery {
|
|||
|
||||
/**
|
||||
* Searches PDB symbol records that contain the search string. Outputs results to the
|
||||
* console.
|
||||
* console
|
||||
* @param script the script for which we are working
|
||||
* @param pdb the PDB to search
|
||||
* @param searchString the search string
|
||||
|
@ -238,7 +238,7 @@ public class PdbQuery {
|
|||
|
||||
/**
|
||||
* Method for outputting a message to the console (if script is not null); otherwise outputs
|
||||
* the message to Msg.info().
|
||||
* the message to Msg.info()
|
||||
* @param script the script
|
||||
* @param message the message to output to the console
|
||||
*/
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue