Ghidra is a software reverse engineering (SRE) framework
GT-2895 changes from first review
ghizard43fb55ffb772
diff --git a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/PdbMessageLog.java b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/PdbLog.javasimilarity index 85%rename from Ghidra/Features/PDB/src/main/java/ghidra/pdb/PdbMessageLog.javarename to Ghidra/Features/PDB/src/main/java/ghidra/pdb/PdbLog.javaindex a236bfb855..89fed84f31 100644--- a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/PdbMessageLog.java+++ b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/PdbLog.java@@ -22,10 +22,11 @@ import generic.io.NullWriter;import ghidra.framework.Application;/**- * A utility class providing logging PDB parsing and analyzing data and metrics for the purposes- * of debugging and aiding in continued research and development of this package.+ * A utility class providing logging for: PDB parsing and PDB analysis. It includes data and+ * metrics for the purposes of debugging and aiding in continued research and development of+ * this package.*/-public class PdbMessageLog {+public class PdbLog {private static File logFile;private static Writer nullWriter = new NullWriter();@@ -61,10 +62,9 @@ public class PdbMessageLog {* uses a format string and a variable arguments list of lambdas to allow for deferred* processing of the message to output. Thus, when message output is disabled, the client* does not endure as much cost in supplying a message string that is not used.- * Note: User must supply appropriate new lines.* @param format a {@link String} format list as would be used to a printf() function, but* which must only specify {@code %s} {@link String} outputs.- * @param suppliers variable number of {@link Supplier}<{@link String}> arguments. The+ * @param suppliers variable number of {@link Supplier}<{@link String}> arguments. The* number must match the number of {@code %s} outputs in the format string.* @throws IOException upon problem with {@link Writer#append(CharSequence)} or* {@link Writer#flush()}.@@ -85,17 +85,17 @@ public class PdbMessageLog {varArgs[i] = var;}writer.append(String.format(format, varArgs));+ writer.append("\n");writer.flush();}/*** Outputs a message to the PDB log if messaging has been enable, else ignored. This method- * uses a {@link Supplier}<{@link String}> to allow for deferred processing of the message+ * uses a {@link Supplier}<{@link String}> to allow for deferred processing of the message* to output. Thus, when message output is disabled, the client does not endure as much cost* in supplying a message string that is not used.- * Note: User must supply appropriate new lines.- * @param supplier a {@link Supplier}<{@link String}> that supplies a {@link String} message- * to be output.+ * @param supplier a {@link Supplier}<{@link String}> that supplies a {@link String}+ * message to be output.* @throws IOException upon problem with {@link Writer#append(CharSequence)} or* {@link Writer#flush()}.* @see #setEnabled(boolean)@@ -106,23 +106,20 @@ public class PdbMessageLog {}writer.append(supplier.get());+ writer.append("\n");writer.flush();}/*** Outputs a {@link String} message to the PDB log if messaging has been enable, else ignored.- * Note: User must supply appropriate new lines.* @param message a {@link String} message to be output.* @throws IOException upon problem with {@link Writer#append(CharSequence)} or* {@link Writer#flush()}.* @see #setEnabled(boolean)*/public static void message(String message) throws IOException {- if (!enabled) {- return;- }-writer.append(message);+ writer.append("\n");writer.flush();}@@ -135,10 +132,6 @@ public class PdbMessageLog {fileWriter.close();fileWriter = null;}- if (nullWriter != null) {- nullWriter.close();- nullWriter = null;- }}/**@@ -148,6 +141,11 @@ public class PdbMessageLog {*/private static Writer createFileWriter() throws IOException {+ /*+ * Since we want this logging to be used sparingly and on a case-by-case basis, we+ * delete the log at the start of each JVM session. New log writing always uses the+ * same log file name with not date or process ID attributes.+ */logFile = new File(Application.getUserSettingsDirectory(), "pdb.analyzer.log");if (logFile.exists()) {logFile.delete();diff --git a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/msfreader/MsfParser.java b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/msfreader/MsfParser.javaindex 69cfd5785c..5d4ed2b472 100644--- a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/msfreader/MsfParser.java+++ b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/msfreader/MsfParser.java@@ -17,8 +17,7 @@ package ghidra.pdb.msfreader;import java.io.IOException;import java.io.RandomAccessFile;--import org.apache.commons.lang3.Validate;+import java.util.Objects;import ghidra.pdb.PdbException;import ghidra.pdb.pdbreader.PdbReaderOptions;@@ -31,9 +30,6 @@ import ghidra.util.task.TaskMonitor;*/public class MsfParser {- //==============================================================================================- // API- //==============================================================================================/*** Detects, creates, and returns the appropriate {@link AbstractMsf} object found for* the filename given.@@ -45,11 +41,11 @@ public class MsfParser {* @throws PdbException If an appropriate object cannot be created.* @throws CancelledException Upon user cancellation.*/- public static AbstractMsf parse(String filename, PdbReaderOptions pdbOptions, TaskMonitor monitor)- throws IOException, PdbException, CancelledException {- Validate.notNull(filename, "filename cannot be null)");- Validate.notNull(pdbOptions, "pdbOptions cannot be null)");- Validate.notNull(monitor, "monitor cannot be null)");+ public static AbstractMsf parse(String filename, PdbReaderOptions pdbOptions,+ TaskMonitor monitor) throws IOException, PdbException, CancelledException {+ Objects.requireNonNull(filename, "filename cannot be null");+ Objects.requireNonNull(pdbOptions, "pdbOptions cannot be null");+ Objects.requireNonNull(monitor, "monitor cannot be null");AbstractMsf msf;RandomAccessFile file = new RandomAccessFile(filename, "r");diff --git a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/AbstractDatabaseInterface.java b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/AbstractDatabaseInterface.javaindex 2cec6ba283..745d8da84c 100644--- a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/AbstractDatabaseInterface.java+++ b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/AbstractDatabaseInterface.java@@ -19,8 +19,6 @@ import java.io.IOException;import java.io.Writer;import java.util.*;-import org.apache.commons.lang3.Validate;-import ghidra.pdb.PdbByteReader;import ghidra.pdb.PdbException;import ghidra.pdb.pdbreader.symbol.AbstractMsSymbol;@@ -86,7 +84,7 @@ public abstract class AbstractDatabaseInterface {* @param streamNumber The stream number of the stream containing the Database Interface.*/public AbstractDatabaseInterface(AbstractPdb pdb, int streamNumber) {- Validate.notNull(pdb, "pdb cannot be null)");+ Objects.requireNonNull(pdb, "pdb cannot be null");this.pdb = pdb;this.streamNumber = streamNumber;globalSymbolInformation = new GlobalSymbolInformation(pdb);@@ -175,22 +173,22 @@ public abstract class AbstractDatabaseInterface {}/**- * Returns the list of regular symbols.- * @return {@link Map}<{@link Long},{@link AbstractMsSymbol}> of buffer offsets to+ * Returns the list of combined global/public symbols.+ * @return {@link Map}<{@link Long},{@link AbstractMsSymbol}> of buffer offsets to* symbols.*/- public Map<Long, AbstractMsSymbol> getSymbolMap() {- return symbolRecords.getSymbolMap();+ public Map<Long, AbstractMsSymbol> getSymbolsByOffset() {+ return symbolRecords.getSymbolsByOffset();}/*** Returns the buffer-offset-to-symbol map for the module as specified by moduleNumber.* @param moduleNumber The number ID of the module for which to return the list.- * @return {@link Map}<{@link Long},{@link AbstractMsSymbol}> of buffer offsets to+ * @return {@link Map}<{@link Long},{@link AbstractMsSymbol}> of buffer offsets to* symbols for the specified module.*/- public Map<Long, AbstractMsSymbol> getModuleSymbolMap(int moduleNumber) {- return symbolRecords.getModuleSymbolMap(moduleNumber);+ public Map<Long, AbstractMsSymbol> getModuleSymbolsByOffset(int moduleNumber) {+ return symbolRecords.getModuleSymbolsByOffset(moduleNumber);}/**@@ -436,14 +434,13 @@ public abstract class AbstractDatabaseInterface {assert false;}int numRefs = substreamReader.parseUnsignedShortVal();- int x = 0;- for (int i = 0; i < numInformationModules; i++) {+ for (int i = 0, x = 0; i < numInformationModules; i++) {monitor.checkCanceled();int refIndex = substreamReader.parseUnsignedShortVal();AbstractModuleInformation module = moduleInformationList.get(i);int num = module.getNumFilesContributing();if (refIndex != x) {- assert false;+ throw new PdbException("Corrupt file information data");}x += num;}diff --git a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/AbstractOffset.java b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/AbstractOffset.javaindex 90023da2dd..440564b159 100644--- a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/AbstractOffset.java+++ b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/AbstractOffset.java@@ -23,14 +23,8 @@ import ghidra.pdb.*;*/public abstract class AbstractOffset extends AbstractParsableItem {- //==============================================================================================- // Internals- //==============================================================================================protected int offsetVal;- //==============================================================================================- // API- //==============================================================================================/*** Returns the offset value.* @return Offset value. Defaults to zero if not parsed.@@ -48,9 +42,6 @@ public abstract class AbstractOffset extends AbstractParsableItem {offsetVal = doParse(reader);}- //==============================================================================================- // Abstract Methods- //==============================================================================================/*** Parses the offset value from the {@link PdbByteReader}.* @param reader {@link PdbByteReader}.diff --git a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/AbstractPdb.java b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/AbstractPdb.javaindex 00f24d014a..3bb40d1d1b 100644--- a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/AbstractPdb.java+++ b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/AbstractPdb.java@@ -88,7 +88,7 @@ public abstract class AbstractPdb implements AutoCloseable {private TypeParser typeParser;private SymbolParser symbolParser;//==============================================================================================- private Stack<CategoryIndex> dependencyStack = new Stack<>();+ private Deque<CategoryIndex> dependencyStack = new ArrayDeque<>();private DependencyGraph<CategoryIndex> dependencyGraph = new DependencyGraph<>();private List<CategoryIndex> orderedDependenyIndices = new ArrayList<>();@@ -238,6 +238,14 @@ public abstract class AbstractPdb implements AutoCloseable {return targetProcessor;}+ /**+ * Returns whether there is minimal debug information.+ * @return {@code true} if there is minimal debug information.+ */+ public boolean hasMinimalDebugInfo() {+ return minimalDebugInfo;+ }+/*** Set the index number of the target processor used for compilation.* @param targetProcessorIn Processor identifier.@@ -381,10 +389,10 @@ public abstract class AbstractPdb implements AutoCloseable {}/**- * Returns the {@link DependencyGraph}<{@link CategoryIndex}>. Dependency order is not+ * Returns the {@link DependencyGraph}<{@link CategoryIndex}>. Dependency order is not* a PDB feature. It is something we added (and might be removed in the future) as we* have investigated how to analyze and apply the PDB.- * @return {@link DependencyGraph}<{@link CategoryIndex}>.+ * @return {@link DependencyGraph}<{@link CategoryIndex}>.*/public DependencyGraph<CategoryIndex> getDependencyGraphCopy() {return dependencyGraph.copy();@@ -426,9 +434,10 @@ public abstract class AbstractPdb implements AutoCloseable {}/**- * Method to be called during the creation of {@link DependencyGraph}<{@link CategoryIndex}>- * whenever a node (see {@link #pushDependencyStack(CategoryIndex)}) will have no more- * dependents of its own (or is done being processed).+ * Method to be called during the creation of+ * {@link DependencyGraph}<{@link CategoryIndex}> whenever a node+ * (see {@link #pushDependencyStack(CategoryIndex)}) will have no more dependents of its own+ * (or is done being processed).*/public void popDependencyStack() {dependencyStack.pop();@@ -464,8 +473,8 @@ public abstract class AbstractPdb implements AutoCloseable {}/**- * Dumps the {@link DependencyGraph}<{@link CategoryIndex}> information. The- * {@link DependencyGraph}<{@link CategoryIndex}> is not a PDB feature. It is+ * Dumps the {@link DependencyGraph}<{@link CategoryIndex}> information. The+ * {@link DependencyGraph}<{@link CategoryIndex}> is not a PDB feature. It is* something we added (and might be removed in the future) as we have investigated how to* analyze and apply the PDB. This package-protected method is for debugging only.* @return {@link String} of pretty output.@@ -507,9 +516,9 @@ public abstract class AbstractPdb implements AutoCloseable {/*** Dumps the Dependency Order information as found in the- * {@link DependencyGraph}<{@link CategoryIndex}>. Dependency order is not a PDB feature.- * It is something we added (and might be removed in the future) as we have investigated- * how to analyze and apply the PDB. This package-protected method is for debugging only.+ * {@link DependencyGraph}<{@link CategoryIndex}>. Dependency order is not a PDB feature.+ * It is something we added (and might be removed in the future) as we have investigated+ * how to analyze and apply the PDB. This package-protected method is for debugging only.* @return {@link String} of pretty output.*/protected String dumpDependencyOrder() {diff --git a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/AbstractString.java b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/AbstractString.javaindex a7e19e04e9..ab645dc5f5 100644--- a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/AbstractString.java+++ b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/AbstractString.java@@ -15,7 +15,7 @@*/package ghidra.pdb.pdbreader;-import org.apache.commons.lang3.Validate;+import java.util.Objects;import ghidra.pdb.*;@@ -25,22 +25,15 @@ import ghidra.pdb.*;*/public abstract class AbstractString extends AbstractParsableItem {- //==============================================================================================- // Internals- //==============================================================================================protected AbstractPdb pdb;protected String string = "";- //==============================================================================================- // API- //==============================================================================================-/*** Constructor.* @param pdb {@link AbstractPdb} to which this type belongs.*/public AbstractString(AbstractPdb pdb) {- Validate.notNull(pdb, "pdb cannot be null)");+ Objects.requireNonNull(pdb, "pdb cannot be null");this.pdb = pdb;}@@ -66,9 +59,6 @@ public abstract class AbstractString extends AbstractParsableItem {string = doParse(reader);}- //==============================================================================================- // Abstract Methods- //==============================================================================================/*** Parses the string from the {@link PdbByteReader}.* @param reader {@link PdbByteReader}.diff --git a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/AbstractTypeIndex.java b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/AbstractTypeIndex.javaindex f7ba7f6d6e..99ec94dd67 100644--- a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/AbstractTypeIndex.java+++ b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/AbstractTypeIndex.java@@ -23,14 +23,8 @@ import ghidra.pdb.*;*/public abstract class AbstractTypeIndex extends AbstractParsableItem {- //==============================================================================================- // Internals- //==============================================================================================protected int indexVal;- //==============================================================================================- // API- //==============================================================================================/*** Returns the index value.* @return The value of the index. Defaults to zero if not parsed.@@ -48,9 +42,6 @@ public abstract class AbstractTypeIndex extends AbstractParsableItem {indexVal = doParse(reader);}- //==============================================================================================- // Abstract Methods- //==============================================================================================/*** Parses the index value from the {@link PdbByteReader}.* @param reader {@link PdbByteReader} from which to read the value.diff --git a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/AbstractTypeProgramInterface.java b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/AbstractTypeProgramInterface.javaindex 63a0138a37..8a7f954e6a 100644--- a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/AbstractTypeProgramInterface.java+++ b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/AbstractTypeProgramInterface.java@@ -19,8 +19,6 @@ import java.io.IOException;import java.io.Writer;import java.util.*;-import org.apache.commons.lang3.Validate;-import ghidra.pdb.PdbByteReader;import ghidra.pdb.PdbException;import ghidra.pdb.pdbreader.type.AbstractMsType;@@ -55,7 +53,7 @@ public abstract class AbstractTypeProgramInterface {protected int typeIndexMaxExclusive;protected int dataLength;- protected Map<Integer, PrimitiveMsType> primitivesMap = new HashMap<>();+ protected Map<Integer, PrimitiveMsType> primitiveTypesByRecordNumber = new HashMap<>();protected List<AbstractMsType> typeList = new ArrayList<>();protected int versionNumber = 0;@@ -73,7 +71,7 @@ public abstract class AbstractTypeProgramInterface {* {@link AbstractTypeProgramInterface} data.*/public AbstractTypeProgramInterface(AbstractPdb pdb, int streamNumber) {- Validate.notNull(pdb, "pdb cannot be null)");+ Objects.requireNonNull(pdb, "pdb cannot be null");this.pdb = pdb;this.streamNumber = streamNumber;}@@ -133,10 +131,10 @@ public abstract class AbstractTypeProgramInterface {*/public AbstractMsType getRecord(int recordNumber) {if (recordNumber < typeIndexMin) {- PrimitiveMsType primitive = primitivesMap.get(recordNumber);+ PrimitiveMsType primitive = primitiveTypesByRecordNumber.get(recordNumber);if (primitive == null) {primitive = new PrimitiveMsType(pdb, recordNumber);- primitivesMap.put(recordNumber, primitive);+ primitiveTypesByRecordNumber.put(recordNumber, primitive);}return primitive;}@@ -194,7 +192,7 @@ public abstract class AbstractTypeProgramInterface {* @param typeIndexMaxExclusive One greater than the MaxIndex to set/use.*/AbstractTypeProgramInterface(AbstractPdb pdb, int typeIndexMin, int typeIndexMaxExclusive) {- Validate.notNull(pdb, "pdb cannot be null)");+ Objects.requireNonNull(pdb, "pdb cannot be null");this.pdb = pdb;this.typeIndexMin = typeIndexMin;this.typeIndexMaxExclusive = typeIndexMaxExclusive;diff --git a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/CategoryIndex.java b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/CategoryIndex.javaindex 7a8796e0b8..d8bc7d001d 100644--- a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/CategoryIndex.java+++ b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/CategoryIndex.java@@ -33,15 +33,9 @@ public class CategoryIndex implements Comparable<CategoryIndex> {DATA, ITEM, SYMBOL}- //==============================================================================================- // Internals- //==============================================================================================private Category category;private int index;- //==============================================================================================- // API- //==============================================================================================/*** Constructor.* @param category {@link CategoryIndex.Category} to be assigned.diff --git a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/DatabaseInterface.java b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/DatabaseInterface.javaindex bc0dedf558..7c9db709f3 100644--- a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/DatabaseInterface.java+++ b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/DatabaseInterface.java@@ -71,10 +71,10 @@ class DatabaseInterface extends AbstractDatabaseInterface {// TODO: evaluate. I don't think we need GlobalSymbolInformation (hash) or the// PublicSymbolInformation (hash), as they are both are search mechanisms.symbolRecords.deserialize(monitor);- globalSymbolInformation.deserialize(- pdb.databaseInterface.getGlobalSymbolsHashMaybeStreamNumber(), false, monitor);- publicSymbolInformation.deserialize(- pdb.databaseInterface.getPublicStaticSymbolsHashMaybeStreamNumber(), true, monitor);+ globalSymbolInformation.deserialize(getGlobalSymbolsHashMaybeStreamNumber(), false,+ monitor);+ publicSymbolInformation.deserialize(getPublicStaticSymbolsHashMaybeStreamNumber(), true,+ monitor);//TODO: SectionContributions has information about code sections and refers to// debug streams for each.}diff --git a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/DatabaseInterfaceNew.java b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/DatabaseInterfaceNew.javaindex 55a2520182..05439eba68 100644--- a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/DatabaseInterfaceNew.java+++ b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/DatabaseInterfaceNew.java@@ -34,6 +34,8 @@ public class DatabaseInterfaceNew extends AbstractDatabaseInterface {//==============================================================================================// Internals//==============================================================================================+ private static final long HEADER_MAGIC = 0xeffeeffeL;+protected Hasher hasher; //Might belong in parent? Used in parent (even older Hasher?)// The source of these values can overlay other fields in older versions of this type.@@ -144,10 +146,10 @@ public class DatabaseInterfaceNew extends AbstractDatabaseInterface {// TODO: evaluate. I don't think we need GlobalSymbolInformation (hash) or the// PublicSymbolInformation (hash), as they are both are search mechanisms.symbolRecords.deserialize(monitor);- globalSymbolInformation.deserialize(- pdb.databaseInterface.getGlobalSymbolsHashMaybeStreamNumber(), false, monitor);- publicSymbolInformation.deserialize(- pdb.databaseInterface.getPublicStaticSymbolsHashMaybeStreamNumber(), true, monitor);+ globalSymbolInformation.deserialize(getGlobalSymbolsHashMaybeStreamNumber(), false,+ monitor);+ publicSymbolInformation.deserialize(getPublicStaticSymbolsHashMaybeStreamNumber(), true,+ monitor);//TODO: Process further information that might be found from ProcessTypeServerMap,// and processEditAndContinueInformation.debugData.deserialize(monitor);@@ -286,7 +288,7 @@ public class DatabaseInterfaceNew extends AbstractDatabaseInterface {//System.out.println(substreamReader.dump(0x1000));long hdr = substreamReader.parseUnsignedIntVal();int ver = substreamReader.parseInt(); // spec says unsigned, but I believe small vals.- if (hdr != 0xeffeeffeL) {+ if (hdr != HEADER_MAGIC) {return; //For now... we are not going to try to populate this with a conversion.}switch (ver) {diff --git a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/DatabaseInterfaceParser.java b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/DatabaseInterfaceParser.javaindex 8a3786547c..0a118b3577 100644--- a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/DatabaseInterfaceParser.java+++ b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/DatabaseInterfaceParser.java@@ -66,7 +66,7 @@ public class DatabaseInterfaceParser {// In support of debug.debugReader = reader;- PdbMessageLog.message(this::debug1);+ PdbLog.message(this::debugDump);int headerSignature = reader.parseInt();int versionNumber = reader.parseInt();@@ -91,7 +91,7 @@ public class DatabaseInterfaceParser {return databaseInterface;}- private String debug1() {+ private String debugDump() {return "DatabaseInterfaceParser data on stream " + getStreamNumber() + ":\n" +debugReader.dump() + "\n";}diff --git a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/DebugData.java b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/DebugData.javaindex fdc90b342b..57a7d2ef41 100644--- a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/DebugData.java+++ b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/DebugData.java@@ -17,10 +17,7 @@ package ghidra.pdb.pdbreader;import java.io.IOException;import java.io.Writer;-import java.util.ArrayList;-import java.util.List;--import org.apache.commons.lang3.Validate;+import java.util.*;import ghidra.pdb.PdbByteReader;import ghidra.pdb.PdbException;@@ -87,12 +84,12 @@ public class DebugData {* @param pdb {@link AbstractPdb} that owns this {@link DebugData}.*/public DebugData(AbstractPdb pdb) {- Validate.notNull(pdb, "pdb cannot be null)");+ Objects.requireNonNull(pdb, "pdb cannot be null");this.pdb = pdb;}/**- * Returns the {@link List}<{@link ImageSectionHeader}>.+ * Returns the {@link List}<{@link ImageSectionHeader}>.* @return the imageSectionHeaders.*/public List<ImageSectionHeader> getImageSectionHeaders() {diff --git a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/DebugHeader.java b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/DebugHeader.javaindex 72581d8ee0..ca8ddfcfec 100644--- a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/DebugHeader.java+++ b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/DebugHeader.java@@ -24,17 +24,10 @@ import ghidra.pdb.PdbException;*/public class DebugHeader {- //==============================================================================================- // Internals- //==============================================================================================private long headerVersion;private long headerLength;private long dataLength;- //==============================================================================================- // API- //==============================================================================================-/*** Returns the version of the header.* @return the header version.diff --git a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/DenseIntegerArray.java b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/DenseIntegerArray.javaindex 3177c58dc2..dab216775f 100644--- a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/DenseIntegerArray.java+++ b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/DenseIntegerArray.java@@ -40,9 +40,6 @@ public class DenseIntegerArray {List<Integer> array = new ArrayList<>();- //==============================================================================================- // API- //==============================================================================================/*** Deserializes this {@link DenseIntegerArray}.* @param reader {@link PdbByteReader} from which to deserialize the data.diff --git a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/GlobalSymbolInformation.java b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/GlobalSymbolInformation.javaindex 9d326b8e06..66e5723685 100644--- a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/GlobalSymbolInformation.java+++ b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/GlobalSymbolInformation.java@@ -67,8 +67,8 @@ public class GlobalSymbolInformation {List<Integer> hashBucketOffsets = new ArrayList<>();Set<SymbolHashRecord> hashRecords = new TreeSet<>();List<Integer> symbolOffsets = new ArrayList<>();- Map<Integer, Integer> mapTableOffsetToTargetOffset = new HashMap<>();- Map<Integer, Integer> sectionNumToAbsoluteOffset = new HashMap<>();+ Map<Integer, Integer> targetOffsetsByTableOffset = new HashMap<>();+ Map<Integer, Integer> absoluteOffsetsBySectionNumber = new HashMap<>();List<AbstractMsSymbol> symbols = new ArrayList<>();@@ -159,7 +159,7 @@ public class GlobalSymbolInformation {*/void deserialize(int streamNumber, boolean pub, TaskMonitor monitor)throws IOException, PdbException, CancelledException {- if (pdb.minimalDebugInfo) {+ if (pdb.hasMinimalDebugInfo()) {hashRecordsBitMapLength = 0x8000;numExtraBytes = 0; // I believe;numHashRecords = 0x3ffff;@@ -184,7 +184,7 @@ public class GlobalSymbolInformation {PdbByteReader thunkMapReader = reader.getSubPdbByteReader(thunkMapLength);deserializeThunkMap(thunkMapReader, monitor);- /**+ /** See note in {@link #deserializePubHeader(PdbByteReader)} regarding spurious data* for numSections. Because of this, we will assume the rest of the data in the* reader belongs to the section map and set the appropriate variable values here.@@ -268,7 +268,7 @@ public class GlobalSymbolInformation {monitor.checkCanceled();int targetOffset = reader.parseInt();int mapTableOffset = count * thunkSize + offsetThunkTable;- mapTableOffsetToTargetOffset.put(mapTableOffset, targetOffset);+ targetOffsetsByTableOffset.put(mapTableOffset, targetOffset);}}@@ -286,7 +286,7 @@ public class GlobalSymbolInformation {int offset = reader.parseInt();int section = reader.parseUnsignedShortVal();reader.skip(2); // padding- sectionNumToAbsoluteOffset.put(section, offset);+ absoluteOffsetsBySectionNumber.put(section, offset);}}@@ -354,7 +354,7 @@ public class GlobalSymbolInformation {numSections = (int) val;// Calculated values.- /**+ /** We should calculate and store these as long values, but* {@link #PdbByteReader.getSubPdbByteReader(int)} does not support long, so we are* checking here and throwing exception if we cannot support it.@@ -455,6 +455,7 @@ public class GlobalSymbolInformation {* by a flat set of hash buckets that will be set at those indices in the order provided.* @param reader {@link PdbByteReader} containing the data buffer to process.* @param monitor {@link TaskMonitor} used for checking cancellation.+ * @throws PdbException Upon not enough data left to parse.* @throws CancelledException Upon user cancellation.*/private void deserializedCompressedHashBuckets(PdbByteReader reader, TaskMonitor monitor)@@ -514,16 +515,16 @@ public class GlobalSymbolInformation {/*** Generates a list of symbols from the information that we have.* @param monitor {@link TaskMonitor} used for checking cancellation.- * @throws PdbException Upon not enough data left to parse.+ * @throws PdbException Upon PDB corruption.* @throws CancelledException Upon user cancellation.*/private void generateSymbolsList(TaskMonitor monitor) throws PdbException, CancelledException {symbols = new ArrayList<>();- Map<Long, AbstractMsSymbol> map = pdb.getDatabaseInterface().getSymbolMap();+ Map<Long, AbstractMsSymbol> symbolsByOffset = pdb.getDatabaseInterface().getSymbolsByOffset();for (SymbolHashRecord record : hashRecords) {monitor.checkCanceled();long offset = record.getOffset();- AbstractMsSymbol symbol = map.get(offset);+ AbstractMsSymbol symbol = symbolsByOffset.get(offset);if (symbol == null) {throw new PdbException("PDB corrupted");}diff --git a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/ImageFunctionEntry.java b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/ImageFunctionEntry.javaindex 696d8beb2c..8eaeaffef0 100644--- a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/ImageFunctionEntry.java+++ b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/ImageFunctionEntry.java@@ -23,17 +23,10 @@ import ghidra.pdb.PdbException;*/public class ImageFunctionEntry {- //==============================================================================================- // Internals- //==============================================================================================private long startingAddress;private long endingAddress;private long endOfPrologueAddress;- //==============================================================================================- // API- //==============================================================================================-/*** Returns the starting address.* @return the starting address.diff --git a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/ImageSectionHeader.java b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/ImageSectionHeader.javaindex c32929d7e0..77d99d0100 100644--- a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/ImageSectionHeader.java+++ b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/ImageSectionHeader.java@@ -17,8 +17,7 @@ package ghidra.pdb.pdbreader;import java.io.IOException;import java.io.Writer;--import org.apache.commons.lang3.Validate;+import java.util.Objects;import ghidra.pdb.PdbByteReader;import ghidra.pdb.PdbException;@@ -32,20 +31,14 @@ import ghidra.pdb.PdbException;*/public class ImageSectionHeader {- //==============================================================================================- // Internals- //==============================================================================================private AbstractPdb pdb;- //==============================================================================================- // API- //==============================================================================================/*** Constructor.* @param pdb {@link AbstractPdb} to which this type belongs.*/public ImageSectionHeader(AbstractPdb pdb) {- Validate.notNull(pdb, "pdb cannot be null)");+ Objects.requireNonNull(pdb, "pdb cannot be null");this.pdb = pdb;}diff --git a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/ItemProgramInterfaceParser.java b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/ItemProgramInterfaceParser.javaindex a626d777c9..de35228225 100644--- a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/ItemProgramInterfaceParser.java+++ b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/ItemProgramInterfaceParser.java@@ -24,9 +24,6 @@ public class ItemProgramInterfaceParser extends TypeProgramInterfaceParser {private static final int ITEM_PROGRAM_INTERFACE_STREAM_NUMBER = 4;- //==============================================================================================- // Internal Data Methods- //==============================================================================================/*** Returns the standard stream number that contains the serialized Item Program Interface.* @return The standard stream number that contains the Item Program Interface.diff --git a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/LinkerUnwindInfo.java b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/LinkerUnwindInfo.javaindex fcfa734e4c..feba2965f8 100644--- a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/LinkerUnwindInfo.java+++ b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/LinkerUnwindInfo.java@@ -23,17 +23,10 @@ import ghidra.pdb.PdbException;*/public class LinkerUnwindInfo {- //==============================================================================================- // Internals- //==============================================================================================private int version; // unsigned shortprivate int flags; // unsigned shortprivate long dataLength; // unsigned int- //==============================================================================================- // API- //==============================================================================================-/*** Returns the version.* @return the version.diff --git a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/ModuleInformation500.java b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/ModuleInformation500.javaindex f422ac5762..c94803f109 100644--- a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/ModuleInformation500.java+++ b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/ModuleInformation500.java@@ -15,7 +15,7 @@*/package ghidra.pdb.pdbreader;-import org.apache.commons.lang3.Validate;+import java.util.Objects;import ghidra.pdb.PdbByteReader;import ghidra.pdb.PdbException;@@ -34,7 +34,7 @@ public class ModuleInformation500 extends AbstractModuleInformation {// API//==============================================================================================public ModuleInformation500(AbstractPdb pdb) {- Validate.notNull(pdb, "pdb cannot be null)");+ Objects.requireNonNull(pdb, "pdb cannot be null");this.pdb = pdb;sectionContribution = new SectionContribution400();}diff --git a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/ModuleInformation600.java b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/ModuleInformation600.javaindex 8c08515d51..e4412cf359 100644--- a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/ModuleInformation600.java+++ b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/ModuleInformation600.java@@ -15,7 +15,7 @@*/package ghidra.pdb.pdbreader;-import org.apache.commons.lang3.Validate;+import java.util.Objects;import ghidra.pdb.PdbByteReader;import ghidra.pdb.PdbException;@@ -34,7 +34,7 @@ public class ModuleInformation600 extends AbstractModuleInformation {// API//==============================================================================================public ModuleInformation600(AbstractPdb pdb) {- Validate.notNull(pdb, "pdb cannot be null)");+ Objects.requireNonNull(pdb, "pdb cannot be null");this.pdb = pdb;sectionContribution = new SectionContribution600();}diff --git a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/NameTable.java b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/NameTable.javaindex cf2ef1b176..113b4122c0 100644--- a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/NameTable.java+++ b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/NameTable.java@@ -16,10 +16,7 @@package ghidra.pdb.pdbreader;import java.io.IOException;-import java.util.HashMap;-import java.util.Map;--import org.apache.commons.lang3.Validate;+import java.util.*;import ghidra.pdb.PdbByteReader;import ghidra.pdb.PdbException;@@ -49,11 +46,11 @@ public class NameTable {private DenseIntegerArray deletedList = new DenseIntegerArray();private String[] names;private int[] streamNumbers;- private Map<String, Integer> mapNameToStreamNumber = new HashMap<>();- private Map<Integer, String> mapStreamNumberToName = new HashMap<>();- private Map<Integer, Map<Integer, String>> mapStreamNumberToStringTable = new HashMap<>();+ private Map<String, Integer> streamNumbersByName = new HashMap<>();+ private Map<Integer, String> namesByStreamNumber = new HashMap<>();+ private Map<Integer, Map<Integer, String>> stringTablesByStreamNumber = new HashMap<>();- private Map<Integer, String> namesMap;+ private Map<Integer, String> namesByOffset;//==============================================================================================// API@@ -63,7 +60,7 @@ public class NameTable {* @param pdb {@link AbstractPdb} that owns this Name Table.*/public NameTable(AbstractPdb pdb) {- Validate.notNull(pdb, "pdb cannot be null)");+ Objects.requireNonNull(pdb, "pdb cannot be null");this.pdb = pdb;}@@ -73,7 +70,7 @@ public class NameTable {* @return Name retrieved for the index.*/public String getNameFromStreamNumber(int index) {- return mapStreamNumberToName.get(index);+ return namesByStreamNumber.get(index);}/**@@ -82,7 +79,7 @@ public class NameTable {* @return Index of the name.*/public int getStreamNumberFromName(String name) {- Integer x = mapNameToStreamNumber.getOrDefault(name, -1);+ Integer x = streamNumbersByName.getOrDefault(name, -1);return x;}@@ -93,10 +90,10 @@ public class NameTable {* @return Name found at offset.*/public String getNameStringFromOffset(int offset) {- if (namesMap == null) {+ if (namesByOffset == null) {return null;}- return namesMap.get(offset);+ return namesByOffset.get(offset);}/**@@ -106,10 +103,10 @@ public class NameTable {* @param name Name part of pair.*/public void forTestingOnlyAddOffsetNamePair(int offset, String name) {- if (namesMap == null) {- namesMap = new HashMap<>();+ if (namesByOffset == null) {+ namesByOffset = new HashMap<>();}- namesMap.put(offset, name);+ namesByOffset.put(offset, name);}@@ -176,8 +173,8 @@ public class NameTable {pdb.getPdbReaderOptions().getOneByteCharset());streamNumbers[i] = streamNumber;names[i] = name;- mapStreamNumberToName.put(streamNumber, name);- mapNameToStreamNumber.put(name, streamNumber);+ namesByStreamNumber.put(streamNumber, name);+ streamNumbersByName.put(name, streamNumber);}deserializeNameTableStreams(monitor);}@@ -198,7 +195,7 @@ public class NameTable {throws IOException, PdbException, CancelledException {for (int streamNumber : streamNumbers) {monitor.checkCanceled();- Map<Integer, String> mapOffsetToString = new HashMap<>();+ Map<Integer, String> stringsByOffset = new HashMap<>();PdbByteReader reader = pdb.getReaderForStreamNumber(streamNumber, monitor);if (reader.getLimit() >= 12) {long hdrMagic = reader.parseUnsignedIntVal();@@ -213,7 +210,7 @@ public class NameTable {monitor.checkCanceled();int offset = stringReader.getIndex();String string = stringReader.parseNullTerminatedUtf8String();- mapOffsetToString.put(offset, string);+ stringsByOffset.put(offset, string);}// TODO: ? process the rest of the data in reader ?break;@@ -229,11 +226,11 @@ public class NameTable {// TODO: unknown format}}- mapStreamNumberToStringTable.put(streamNumber, mapOffsetToString);+ stringTablesByStreamNumber.put(streamNumber, stringsByOffset);}int namesStreamNumber = getStreamNumberFromName("/names");- namesMap = mapStreamNumberToStringTable.get(namesStreamNumber);+ namesByOffset = stringTablesByStreamNumber.get(namesStreamNumber);}@@ -283,17 +280,17 @@ public class NameTable {}builder.append("}\n");builder.append("------------------------------------------------------------\n");- for (String name : mapNameToStreamNumber.keySet()) {+ for (String name : streamNumbersByName.keySet()) {builder.append(name);builder.append(" : ");- builder.append(mapNameToStreamNumber.get(name));+ builder.append(streamNumbersByName.get(name));builder.append("\n");}builder.append("------------------------------------------------------------\n");- for (int streamNumber : mapStreamNumberToName.keySet()) {+ for (int streamNumber : namesByStreamNumber.keySet()) {builder.append(streamNumber);builder.append(" : ");- builder.append(mapStreamNumberToName.get(streamNumber));+ builder.append(namesByStreamNumber.get(streamNumber));builder.append("\n");}// TODO: output map entries for each table.diff --git a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/Offset16.java b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/Offset16.javaindex 4c52bfecfe..45401e0cf1 100644--- a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/Offset16.java+++ b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/Offset16.java@@ -24,9 +24,6 @@ import ghidra.pdb.PdbException;*/public class Offset16 extends AbstractOffset {- //==============================================================================================- // Abstract Methods- //==============================================================================================@Overrideprotected int doParse(PdbByteReader reader) throws PdbException {return reader.parseUnsignedShortVal();diff --git a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/Offset32.java b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/Offset32.javaindex fbd1afd825..5ca92edcfb 100644--- a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/Offset32.java+++ b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/Offset32.java@@ -24,9 +24,6 @@ import ghidra.pdb.PdbException;*/public class Offset32 extends AbstractOffset {- //==============================================================================================- // Abstract Methods- //==============================================================================================@Overrideprotected int doParse(PdbByteReader reader) throws PdbException {return reader.parseInt();diff --git a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/PdbParser.java b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/PdbParser.javaindex 55ffa44d14..d8084f6774 100644--- a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/PdbParser.java+++ b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/PdbParser.java@@ -16,8 +16,7 @@package ghidra.pdb.pdbreader;import java.io.IOException;--import org.apache.commons.lang3.Validate;+import java.util.Objects;import ghidra.pdb.PdbException;import ghidra.pdb.msfreader.AbstractMsf;@@ -42,9 +41,6 @@ public class PdbParser {public static final int VC110_ID = 20091201; // 0x01329141public static final int VC140_ID = 20140508; // 0x013351dc- //==============================================================================================- // API- //==============================================================================================/*** Static method to open a PDB file, determine its version, and return an {@link AbstractPdb}* appropriate for that version; it will not have been deserialized. The main method@@ -59,11 +55,11 @@ public class PdbParser {* @throws PdbException on parsing issues.* @throws CancelledException Upon user cancellation.*/- public static AbstractPdb parse(String filename, PdbReaderOptions pdbOptions, TaskMonitor monitor)- throws IOException, PdbException, CancelledException {- Validate.notNull(filename, "filename cannot be null)");- Validate.notNull(pdbOptions, "pdbOptions cannot be null)");- Validate.notNull(monitor, "monitor cannot be null)");+ public static AbstractPdb parse(String filename, PdbReaderOptions pdbOptions,+ TaskMonitor monitor) throws IOException, PdbException, CancelledException {+ Objects.requireNonNull(filename, "filename cannot be null");+ Objects.requireNonNull(pdbOptions, "pdbOptions cannot be null");+ Objects.requireNonNull(monitor, "monitor cannot be null");// Do not do a try with resources here, as the msf must live within the PDB that is// created below.diff --git a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/PdbReaderOptions.java b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/PdbReaderOptions.javaindex 92925c7a68..ae9fcea0f0 100644--- a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/PdbReaderOptions.java+++ b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/PdbReaderOptions.java@@ -54,7 +54,7 @@ public class PdbReaderOptions extends Exception {}/**- * Returns list of Charsets that encode one byte characters.+ * Returns list of Charsets names that encode one byte characters.* @return Charsets that encode one byte characters.*/public static List<String> getOneByteCharsetNames() {@@ -62,7 +62,7 @@ public class PdbReaderOptions extends Exception {}/**- * Returns list of Charsets that encode two byte characters.+ * Returns list of Charsets names that encode two byte characters.* @return Charsets that encode two byte characters.*/public static List<String> getTwoByteCharsetNames() {@@ -133,7 +133,7 @@ public class PdbReaderOptions extends Exception {* Enable/disable developmental debug.* @param debug {@code true} to turn debug on; default is {@code false}.*/- public void setEnabled(boolean debug) {+ public void setDebug(boolean debug) {this.debug = debug;}@@ -141,7 +141,7 @@ public class PdbReaderOptions extends Exception {* Returns true if debug is "on."* @return {@code true} if debug is "on."*/- public boolean doDebug() {+ public boolean isDebug() {return debug;}diff --git a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/RegisterName.java b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/RegisterName.javaindex 53b66412e9..aabbb328b1 100644--- a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/RegisterName.java+++ b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/RegisterName.java@@ -15,10 +15,7 @@*/package ghidra.pdb.pdbreader;-import java.util.HashMap;-import java.util.Map;--import org.apache.commons.lang3.Validate;+import java.util.*;import ghidra.pdb.AbstractParsableItem;@@ -117,735 +114,735 @@ public class RegisterName extends AbstractParsableItem {"???", "???", "pc", "sr", "???", "???", "???", "???", "???", "???", "???", "???", "bara","basra", "bamra", "bbra", "barb", "basrb", "bamrb", "bbr", "bdrb", "bdmrb", "brcr" };- private static final Map<Integer, String> regIa64Map = new HashMap<>();+ private static final Map<Integer, String> ia64RegistersById = new HashMap<>();static {- regIa64Map.put(0, "None");+ ia64RegistersById.put(0, "None");// Branch Registers- regIa64Map.put(512, "br0");- regIa64Map.put(513, "br1");- regIa64Map.put(514, "br2");- regIa64Map.put(515, "br3");- regIa64Map.put(516, "br4");- regIa64Map.put(517, "br5");- regIa64Map.put(518, "br6");- regIa64Map.put(519, "br7");+ ia64RegistersById.put(512, "br0");+ ia64RegistersById.put(513, "br1");+ ia64RegistersById.put(514, "br2");+ ia64RegistersById.put(515, "br3");+ ia64RegistersById.put(516, "br4");+ ia64RegistersById.put(517, "br5");+ ia64RegistersById.put(518, "br6");+ ia64RegistersById.put(519, "br7");// Predicate Registers- regIa64Map.put(704, "");- regIa64Map.put(705, "");- regIa64Map.put(706, "");- regIa64Map.put(707, "");- regIa64Map.put(708, "");- regIa64Map.put(709, "");- regIa64Map.put(710, "");- regIa64Map.put(711, "");- regIa64Map.put(712, "");- regIa64Map.put(713, "");- regIa64Map.put(714, "");- regIa64Map.put(715, "");- regIa64Map.put(716, "");- regIa64Map.put(717, "");- regIa64Map.put(718, "");- regIa64Map.put(719, "");- regIa64Map.put(720, "");- regIa64Map.put(721, "");- regIa64Map.put(722, "");- regIa64Map.put(723, "");- regIa64Map.put(724, "");- regIa64Map.put(725, "");- regIa64Map.put(726, "");- regIa64Map.put(727, "");- regIa64Map.put(728, "");- regIa64Map.put(729, "");- regIa64Map.put(730, "");- regIa64Map.put(731, "");- regIa64Map.put(732, "");- regIa64Map.put(733, "");- regIa64Map.put(734, "");- regIa64Map.put(735, "");- regIa64Map.put(736, "");- regIa64Map.put(737, "");- regIa64Map.put(738, "");- regIa64Map.put(739, "");- regIa64Map.put(740, "");- regIa64Map.put(741, "");- regIa64Map.put(742, "");- regIa64Map.put(743, "");- regIa64Map.put(744, "");- regIa64Map.put(745, "");- regIa64Map.put(746, "");- regIa64Map.put(747, "");- regIa64Map.put(748, "");- regIa64Map.put(749, "");- regIa64Map.put(750, "");- regIa64Map.put(751, "");- regIa64Map.put(752, "");- regIa64Map.put(753, "");- regIa64Map.put(754, "");- regIa64Map.put(755, "");- regIa64Map.put(756, "");- regIa64Map.put(757, "");- regIa64Map.put(758, "");- regIa64Map.put(759, "");- regIa64Map.put(760, "");- regIa64Map.put(761, "");- regIa64Map.put(762, "");- regIa64Map.put(763, "");- regIa64Map.put(764, "");- regIa64Map.put(765, "");- regIa64Map.put(766, "");- regIa64Map.put(767, "");- regIa64Map.put(768, "preds");+ ia64RegistersById.put(704, "");+ ia64RegistersById.put(705, "");+ ia64RegistersById.put(706, "");+ ia64RegistersById.put(707, "");+ ia64RegistersById.put(708, "");+ ia64RegistersById.put(709, "");+ ia64RegistersById.put(710, "");+ ia64RegistersById.put(711, "");+ ia64RegistersById.put(712, "");+ ia64RegistersById.put(713, "");+ ia64RegistersById.put(714, "");+ ia64RegistersById.put(715, "");+ ia64RegistersById.put(716, "");+ ia64RegistersById.put(717, "");+ ia64RegistersById.put(718, "");+ ia64RegistersById.put(719, "");+ ia64RegistersById.put(720, "");+ ia64RegistersById.put(721, "");+ ia64RegistersById.put(722, "");+ ia64RegistersById.put(723, "");+ ia64RegistersById.put(724, "");+ ia64RegistersById.put(725, "");+ ia64RegistersById.put(726, "");+ ia64RegistersById.put(727, "");+ ia64RegistersById.put(728, "");+ ia64RegistersById.put(729, "");+ ia64RegistersById.put(730, "");+ ia64RegistersById.put(731, "");+ ia64RegistersById.put(732, "");+ ia64RegistersById.put(733, "");+ ia64RegistersById.put(734, "");+ ia64RegistersById.put(735, "");+ ia64RegistersById.put(736, "");+ ia64RegistersById.put(737, "");+ ia64RegistersById.put(738, "");+ ia64RegistersById.put(739, "");+ ia64RegistersById.put(740, "");+ ia64RegistersById.put(741, "");+ ia64RegistersById.put(742, "");+ ia64RegistersById.put(743, "");+ ia64RegistersById.put(744, "");+ ia64RegistersById.put(745, "");+ ia64RegistersById.put(746, "");+ ia64RegistersById.put(747, "");+ ia64RegistersById.put(748, "");+ ia64RegistersById.put(749, "");+ ia64RegistersById.put(750, "");+ ia64RegistersById.put(751, "");+ ia64RegistersById.put(752, "");+ ia64RegistersById.put(753, "");+ ia64RegistersById.put(754, "");+ ia64RegistersById.put(755, "");+ ia64RegistersById.put(756, "");+ ia64RegistersById.put(757, "");+ ia64RegistersById.put(758, "");+ ia64RegistersById.put(759, "");+ ia64RegistersById.put(760, "");+ ia64RegistersById.put(761, "");+ ia64RegistersById.put(762, "");+ ia64RegistersById.put(763, "");+ ia64RegistersById.put(764, "");+ ia64RegistersById.put(765, "");+ ia64RegistersById.put(766, "");+ ia64RegistersById.put(767, "");+ ia64RegistersById.put(768, "preds");// Banked General Registers- regIa64Map.put(832, "h0");- regIa64Map.put(833, "h1");- regIa64Map.put(834, "h2");- regIa64Map.put(835, "h3");- regIa64Map.put(836, "h4");- regIa64Map.put(837, "h5");- regIa64Map.put(838, "h6");- regIa64Map.put(839, "h7");- regIa64Map.put(840, "h8");- regIa64Map.put(841, "h9");- regIa64Map.put(842, "h10");- regIa64Map.put(843, "h11");- regIa64Map.put(844, "h12");- regIa64Map.put(845, "h13");- regIa64Map.put(846, "h14");- regIa64Map.put(847, "h15");+ ia64RegistersById.put(832, "h0");+ ia64RegistersById.put(833, "h1");+ ia64RegistersById.put(834, "h2");+ ia64RegistersById.put(835, "h3");+ ia64RegistersById.put(836, "h4");+ ia64RegistersById.put(837, "h5");+ ia64RegistersById.put(838, "h6");+ ia64RegistersById.put(839, "h7");+ ia64RegistersById.put(840, "h8");+ ia64RegistersById.put(841, "h9");+ ia64RegistersById.put(842, "h10");+ ia64RegistersById.put(843, "h11");+ ia64RegistersById.put(844, "h12");+ ia64RegistersById.put(845, "h13");+ ia64RegistersById.put(846, "h14");+ ia64RegistersById.put(847, "h15");// Special Registers- regIa64Map.put(1016, "ip");- regIa64Map.put(1017, "umask");- regIa64Map.put(1018, "cfm");- regIa64Map.put(1019, "psr");+ ia64RegistersById.put(1016, "ip");+ ia64RegistersById.put(1017, "umask");+ ia64RegistersById.put(1018, "cfm");+ ia64RegistersById.put(1019, "psr");// Banked General Registers- regIa64Map.put(1020, "nats");- regIa64Map.put(1021, "nats2");- regIa64Map.put(1022, "nats3");+ ia64RegistersById.put(1020, "nats");+ ia64RegistersById.put(1021, "nats2");+ ia64RegistersById.put(1022, "nats3");// General-Purpose Registers// Integer registers- regIa64Map.put(1023, "r0");-- regIa64Map.put(1024, "r0");- regIa64Map.put(1025, "r1");- regIa64Map.put(1026, "r2");- regIa64Map.put(1027, "r3");- regIa64Map.put(1028, "r4");- regIa64Map.put(1029, "r5");- regIa64Map.put(1030, "r6");- regIa64Map.put(1031, "r7");- regIa64Map.put(1032, "r8");- regIa64Map.put(1033, "r9");- regIa64Map.put(1034, "r10");- regIa64Map.put(1035, "r11");- regIa64Map.put(1036, "r12");- regIa64Map.put(1037, "r13");- regIa64Map.put(1038, "r14");- regIa64Map.put(1039, "r15");- regIa64Map.put(1040, "r16");- regIa64Map.put(1041, "r17");- regIa64Map.put(1042, "r18");- regIa64Map.put(1043, "r19");- regIa64Map.put(1044, "r20");- regIa64Map.put(1045, "r21");- regIa64Map.put(1046, "r22");- regIa64Map.put(1047, "r23");- regIa64Map.put(1048, "r24");- regIa64Map.put(1049, "r25");- regIa64Map.put(1050, "r26");- regIa64Map.put(1051, "r27");- regIa64Map.put(1052, "r28");- regIa64Map.put(1053, "r29");- regIa64Map.put(1054, "r30");- regIa64Map.put(1055, "r31");+ ia64RegistersById.put(1023, "r0");++ ia64RegistersById.put(1024, "r0");+ ia64RegistersById.put(1025, "r1");+ ia64RegistersById.put(1026, "r2");+ ia64RegistersById.put(1027, "r3");+ ia64RegistersById.put(1028, "r4");+ ia64RegistersById.put(1029, "r5");+ ia64RegistersById.put(1030, "r6");+ ia64RegistersById.put(1031, "r7");+ ia64RegistersById.put(1032, "r8");+ ia64RegistersById.put(1033, "r9");+ ia64RegistersById.put(1034, "r10");+ ia64RegistersById.put(1035, "r11");+ ia64RegistersById.put(1036, "r12");+ ia64RegistersById.put(1037, "r13");+ ia64RegistersById.put(1038, "r14");+ ia64RegistersById.put(1039, "r15");+ ia64RegistersById.put(1040, "r16");+ ia64RegistersById.put(1041, "r17");+ ia64RegistersById.put(1042, "r18");+ ia64RegistersById.put(1043, "r19");+ ia64RegistersById.put(1044, "r20");+ ia64RegistersById.put(1045, "r21");+ ia64RegistersById.put(1046, "r22");+ ia64RegistersById.put(1047, "r23");+ ia64RegistersById.put(1048, "r24");+ ia64RegistersById.put(1049, "r25");+ ia64RegistersById.put(1050, "r26");+ ia64RegistersById.put(1051, "r27");+ ia64RegistersById.put(1052, "r28");+ ia64RegistersById.put(1053, "r29");+ ia64RegistersById.put(1054, "r30");+ ia64RegistersById.put(1055, "r31");// Register Stack- regIa64Map.put(1056, "r32");- regIa64Map.put(1057, "r33");- regIa64Map.put(1058, "r34");- regIa64Map.put(1059, "r35");- regIa64Map.put(1060, "r36");- regIa64Map.put(1061, "r37");- regIa64Map.put(1062, "r38");- regIa64Map.put(1063, "r39");- regIa64Map.put(1064, "r40");- regIa64Map.put(1065, "r41");- regIa64Map.put(1066, "r42");- regIa64Map.put(1067, "r43");- regIa64Map.put(1068, "r44");- regIa64Map.put(1069, "r45");- regIa64Map.put(1070, "r46");- regIa64Map.put(1071, "r47");- regIa64Map.put(1072, "r48");- regIa64Map.put(1073, "r49");- regIa64Map.put(1074, "r50");- regIa64Map.put(1075, "r51");- regIa64Map.put(1076, "r52");- regIa64Map.put(1077, "r53");- regIa64Map.put(1078, "r54");- regIa64Map.put(1079, "r55");- regIa64Map.put(1080, "r56");- regIa64Map.put(1081, "r57");- regIa64Map.put(1082, "r58");- regIa64Map.put(1083, "r59");- regIa64Map.put(1084, "r60");- regIa64Map.put(1085, "r61");- regIa64Map.put(1086, "r62");- regIa64Map.put(1087, "r63");- regIa64Map.put(1088, "r64");- regIa64Map.put(1089, "r65");- regIa64Map.put(1090, "r66");- regIa64Map.put(1091, "r67");- regIa64Map.put(1092, "r68");- regIa64Map.put(1093, "r69");- regIa64Map.put(1094, "r70");- regIa64Map.put(1095, "r71");- regIa64Map.put(1096, "r72");- regIa64Map.put(1097, "r73");- regIa64Map.put(1098, "r74");- regIa64Map.put(1099, "r75");- regIa64Map.put(1100, "r76");- regIa64Map.put(1101, "r77");- regIa64Map.put(1102, "r78");- regIa64Map.put(1103, "r79");- regIa64Map.put(1104, "r80");- regIa64Map.put(1105, "r81");- regIa64Map.put(1106, "r82");- regIa64Map.put(1107, "r83");- regIa64Map.put(1108, "r84");- regIa64Map.put(1109, "r85");- regIa64Map.put(1110, "r86");- regIa64Map.put(1111, "r87");- regIa64Map.put(1112, "r88");- regIa64Map.put(1113, "r89");- regIa64Map.put(1114, "r90");- regIa64Map.put(1115, "r91");- regIa64Map.put(1116, "r92");- regIa64Map.put(1117, "r93");- regIa64Map.put(1118, "r94");- regIa64Map.put(1119, "r95");- regIa64Map.put(1120, "r96");- regIa64Map.put(1121, "r97");- regIa64Map.put(1122, "r98");- regIa64Map.put(1123, "r99");- regIa64Map.put(1124, "r100");- regIa64Map.put(1125, "r101");- regIa64Map.put(1126, "r102");- regIa64Map.put(1127, "r103");- regIa64Map.put(1128, "r104");- regIa64Map.put(1129, "r105");- regIa64Map.put(1130, "r106");- regIa64Map.put(1131, "r107");- regIa64Map.put(1132, "r108");- regIa64Map.put(1133, "r109");- regIa64Map.put(1134, "r110");- regIa64Map.put(1135, "r111");- regIa64Map.put(1136, "r112");- regIa64Map.put(1137, "r113");- regIa64Map.put(1138, "r114");- regIa64Map.put(1139, "r115");- regIa64Map.put(1140, "r116");- regIa64Map.put(1141, "r117");- regIa64Map.put(1142, "r118");- regIa64Map.put(1143, "r119");- regIa64Map.put(1144, "r120");- regIa64Map.put(1145, "r121");- regIa64Map.put(1146, "r122");- regIa64Map.put(1147, "r123");- regIa64Map.put(1148, "r124");- regIa64Map.put(1149, "r125");- regIa64Map.put(1150, "r126");- regIa64Map.put(1151, "r127");+ ia64RegistersById.put(1056, "r32");+ ia64RegistersById.put(1057, "r33");+ ia64RegistersById.put(1058, "r34");+ ia64RegistersById.put(1059, "r35");+ ia64RegistersById.put(1060, "r36");+ ia64RegistersById.put(1061, "r37");+ ia64RegistersById.put(1062, "r38");+ ia64RegistersById.put(1063, "r39");+ ia64RegistersById.put(1064, "r40");+ ia64RegistersById.put(1065, "r41");+ ia64RegistersById.put(1066, "r42");+ ia64RegistersById.put(1067, "r43");+ ia64RegistersById.put(1068, "r44");+ ia64RegistersById.put(1069, "r45");+ ia64RegistersById.put(1070, "r46");+ ia64RegistersById.put(1071, "r47");+ ia64RegistersById.put(1072, "r48");+ ia64RegistersById.put(1073, "r49");+ ia64RegistersById.put(1074, "r50");+ ia64RegistersById.put(1075, "r51");+ ia64RegistersById.put(1076, "r52");+ ia64RegistersById.put(1077, "r53");+ ia64RegistersById.put(1078, "r54");+ ia64RegistersById.put(1079, "r55");+ ia64RegistersById.put(1080, "r56");+ ia64RegistersById.put(1081, "r57");+ ia64RegistersById.put(1082, "r58");+ ia64RegistersById.put(1083, "r59");+ ia64RegistersById.put(1084, "r60");+ ia64RegistersById.put(1085, "r61");+ ia64RegistersById.put(1086, "r62");+ ia64RegistersById.put(1087, "r63");+ ia64RegistersById.put(1088, "r64");+ ia64RegistersById.put(1089, "r65");+ ia64RegistersById.put(1090, "r66");+ ia64RegistersById.put(1091, "r67");+ ia64RegistersById.put(1092, "r68");+ ia64RegistersById.put(1093, "r69");+ ia64RegistersById.put(1094, "r70");+ ia64RegistersById.put(1095, "r71");+ ia64RegistersById.put(1096, "r72");+ ia64RegistersById.put(1097, "r73");+ ia64RegistersById.put(1098, "r74");+ ia64RegistersById.put(1099, "r75");+ ia64RegistersById.put(1100, "r76");+ ia64RegistersById.put(1101, "r77");+ ia64RegistersById.put(1102, "r78");+ ia64RegistersById.put(1103, "r79");+ ia64RegistersById.put(1104, "r80");+ ia64RegistersById.put(1105, "r81");+ ia64RegistersById.put(1106, "r82");+ ia64RegistersById.put(1107, "r83");+ ia64RegistersById.put(1108, "r84");+ ia64RegistersById.put(1109, "r85");+ ia64RegistersById.put(1110, "r86");+ ia64RegistersById.put(1111, "r87");+ ia64RegistersById.put(1112, "r88");+ ia64RegistersById.put(1113, "r89");+ ia64RegistersById.put(1114, "r90");+ ia64RegistersById.put(1115, "r91");+ ia64RegistersById.put(1116, "r92");+ ia64RegistersById.put(1117, "r93");+ ia64RegistersById.put(1118, "r94");+ ia64RegistersById.put(1119, "r95");+ ia64RegistersById.put(1120, "r96");+ ia64RegistersById.put(1121, "r97");+ ia64RegistersById.put(1122, "r98");+ ia64RegistersById.put(1123, "r99");+ ia64RegistersById.put(1124, "r100");+ ia64RegistersById.put(1125, "r101");+ ia64RegistersById.put(1126, "r102");+ ia64RegistersById.put(1127, "r103");+ ia64RegistersById.put(1128, "r104");+ ia64RegistersById.put(1129, "r105");+ ia64RegistersById.put(1130, "r106");+ ia64RegistersById.put(1131, "r107");+ ia64RegistersById.put(1132, "r108");+ ia64RegistersById.put(1133, "r109");+ ia64RegistersById.put(1134, "r110");+ ia64RegistersById.put(1135, "r111");+ ia64RegistersById.put(1136, "r112");+ ia64RegistersById.put(1137, "r113");+ ia64RegistersById.put(1138, "r114");+ ia64RegistersById.put(1139, "r115");+ ia64RegistersById.put(1140, "r116");+ ia64RegistersById.put(1141, "r117");+ ia64RegistersById.put(1142, "r118");+ ia64RegistersById.put(1143, "r119");+ ia64RegistersById.put(1144, "r120");+ ia64RegistersById.put(1145, "r121");+ ia64RegistersById.put(1146, "r122");+ ia64RegistersById.put(1147, "r123");+ ia64RegistersById.put(1148, "r124");+ ia64RegistersById.put(1149, "r125");+ ia64RegistersById.put(1150, "r126");+ ia64RegistersById.put(1151, "r127");// Floating-Point Registers// Low Floating Point Registers- regIa64Map.put(2048, "f0");- regIa64Map.put(2049, "f1");- regIa64Map.put(2050, "f2");- regIa64Map.put(2051, "f3");- regIa64Map.put(2052, "f4");- regIa64Map.put(2053, "f5");- regIa64Map.put(2054, "f6");- regIa64Map.put(2055, "f7");- regIa64Map.put(2056, "f8");- regIa64Map.put(2057, "f9");- regIa64Map.put(2058, "f10");- regIa64Map.put(2059, "f11");- regIa64Map.put(2060, "f12");- regIa64Map.put(2061, "f13");- regIa64Map.put(2062, "f14");- regIa64Map.put(2063, "f15");- regIa64Map.put(2064, "f16");- regIa64Map.put(2065, "f17");- regIa64Map.put(2066, "f18");- regIa64Map.put(2067, "f19");- regIa64Map.put(2068, "f20");- regIa64Map.put(2069, "f21");- regIa64Map.put(2070, "f22");- regIa64Map.put(2071, "f23");- regIa64Map.put(2072, "f24");- regIa64Map.put(2073, "f25");- regIa64Map.put(2074, "f26");- regIa64Map.put(2075, "f27");- regIa64Map.put(2076, "f28");- regIa64Map.put(2077, "f29");- regIa64Map.put(2078, "f30");- regIa64Map.put(2079, "f31");- regIa64Map.put(2080, "f32");- regIa64Map.put(2081, "f33");- regIa64Map.put(2082, "f34");- regIa64Map.put(2083, "f35");- regIa64Map.put(2084, "f36");- regIa64Map.put(2085, "f37");- regIa64Map.put(2086, "f38");- regIa64Map.put(2087, "f39");- regIa64Map.put(2088, "f40");- regIa64Map.put(2089, "f41");- regIa64Map.put(2090, "f42");- regIa64Map.put(2091, "f43");- regIa64Map.put(2092, "f44");- regIa64Map.put(2093, "f45");- regIa64Map.put(2094, "f46");- regIa64Map.put(2095, "f47");- regIa64Map.put(2096, "f48");- regIa64Map.put(2097, "f49");- regIa64Map.put(2098, "f50");- regIa64Map.put(2099, "f51");- regIa64Map.put(2100, "f52");- regIa64Map.put(2101, "f53");- regIa64Map.put(2102, "f54");- regIa64Map.put(2103, "f55");- regIa64Map.put(2104, "f56");- regIa64Map.put(2105, "f57");- regIa64Map.put(2106, "f58");- regIa64Map.put(2107, "f59");- regIa64Map.put(2108, "f60");- regIa64Map.put(2109, "f61");- regIa64Map.put(2110, "f62");- regIa64Map.put(2111, "f63");- regIa64Map.put(2112, "f64");- regIa64Map.put(2113, "f65");- regIa64Map.put(2114, "f66");- regIa64Map.put(2115, "f67");- regIa64Map.put(2116, "f68");- regIa64Map.put(2117, "f69");- regIa64Map.put(2118, "f70");- regIa64Map.put(2119, "f71");- regIa64Map.put(2120, "f72");- regIa64Map.put(2121, "f73");- regIa64Map.put(2122, "f74");- regIa64Map.put(2123, "f75");- regIa64Map.put(2124, "f76");- regIa64Map.put(2125, "f77");- regIa64Map.put(2126, "f78");- regIa64Map.put(2127, "f79");- regIa64Map.put(2128, "f80");- regIa64Map.put(2129, "f81");- regIa64Map.put(2130, "f82");- regIa64Map.put(2131, "f83");- regIa64Map.put(2132, "f84");- regIa64Map.put(2133, "f85");- regIa64Map.put(2134, "f86");- regIa64Map.put(2135, "f87");- regIa64Map.put(2136, "f88");- regIa64Map.put(2137, "f89");- regIa64Map.put(2138, "f90");- regIa64Map.put(2139, "f91");- regIa64Map.put(2140, "f92");- regIa64Map.put(2141, "f93");- regIa64Map.put(2142, "f94");- regIa64Map.put(2143, "f95");- regIa64Map.put(2144, "f96");- regIa64Map.put(2145, "f97");- regIa64Map.put(2146, "f98");- regIa64Map.put(2147, "f99");- regIa64Map.put(2148, "f100");- regIa64Map.put(2149, "f101");- regIa64Map.put(2150, "f102");- regIa64Map.put(2151, "f103");- regIa64Map.put(2152, "f104");- regIa64Map.put(2153, "f105");- regIa64Map.put(2154, "f106");- regIa64Map.put(2155, "f107");- regIa64Map.put(2156, "f108");- regIa64Map.put(2157, "f109");- regIa64Map.put(2158, "f110");- regIa64Map.put(2159, "f111");- regIa64Map.put(2160, "f112");- regIa64Map.put(2161, "f113");- regIa64Map.put(2162, "f114");- regIa64Map.put(2163, "f115");- regIa64Map.put(2164, "f116");- regIa64Map.put(2165, "f117");- regIa64Map.put(2166, "f118");- regIa64Map.put(2167, "f119");- regIa64Map.put(2168, "f120");- regIa64Map.put(2169, "f121");- regIa64Map.put(2170, "f122");- regIa64Map.put(2171, "f123");- regIa64Map.put(2172, "f124");- regIa64Map.put(2173, "f125");- regIa64Map.put(2174, "f126");- regIa64Map.put(2175, "f127");+ ia64RegistersById.put(2048, "f0");+ ia64RegistersById.put(2049, "f1");+ ia64RegistersById.put(2050, "f2");+ ia64RegistersById.put(2051, "f3");+ ia64RegistersById.put(2052, "f4");+ ia64RegistersById.put(2053, "f5");+ ia64RegistersById.put(2054, "f6");+ ia64RegistersById.put(2055, "f7");+ ia64RegistersById.put(2056, "f8");+ ia64RegistersById.put(2057, "f9");+ ia64RegistersById.put(2058, "f10");+ ia64RegistersById.put(2059, "f11");+ ia64RegistersById.put(2060, "f12");+ ia64RegistersById.put(2061, "f13");+ ia64RegistersById.put(2062, "f14");+ ia64RegistersById.put(2063, "f15");+ ia64RegistersById.put(2064, "f16");+ ia64RegistersById.put(2065, "f17");+ ia64RegistersById.put(2066, "f18");+ ia64RegistersById.put(2067, "f19");+ ia64RegistersById.put(2068, "f20");+ ia64RegistersById.put(2069, "f21");+ ia64RegistersById.put(2070, "f22");+ ia64RegistersById.put(2071, "f23");+ ia64RegistersById.put(2072, "f24");+ ia64RegistersById.put(2073, "f25");+ ia64RegistersById.put(2074, "f26");+ ia64RegistersById.put(2075, "f27");+ ia64RegistersById.put(2076, "f28");+ ia64RegistersById.put(2077, "f29");+ ia64RegistersById.put(2078, "f30");+ ia64RegistersById.put(2079, "f31");+ ia64RegistersById.put(2080, "f32");+ ia64RegistersById.put(2081, "f33");+ ia64RegistersById.put(2082, "f34");+ ia64RegistersById.put(2083, "f35");+ ia64RegistersById.put(2084, "f36");+ ia64RegistersById.put(2085, "f37");+ ia64RegistersById.put(2086, "f38");+ ia64RegistersById.put(2087, "f39");+ ia64RegistersById.put(2088, "f40");+ ia64RegistersById.put(2089, "f41");+ ia64RegistersById.put(2090, "f42");+ ia64RegistersById.put(2091, "f43");+ ia64RegistersById.put(2092, "f44");+ ia64RegistersById.put(2093, "f45");+ ia64RegistersById.put(2094, "f46");+ ia64RegistersById.put(2095, "f47");+ ia64RegistersById.put(2096, "f48");+ ia64RegistersById.put(2097, "f49");+ ia64RegistersById.put(2098, "f50");+ ia64RegistersById.put(2099, "f51");+ ia64RegistersById.put(2100, "f52");+ ia64RegistersById.put(2101, "f53");+ ia64RegistersById.put(2102, "f54");+ ia64RegistersById.put(2103, "f55");+ ia64RegistersById.put(2104, "f56");+ ia64RegistersById.put(2105, "f57");+ ia64RegistersById.put(2106, "f58");+ ia64RegistersById.put(2107, "f59");+ ia64RegistersById.put(2108, "f60");+ ia64RegistersById.put(2109, "f61");+ ia64RegistersById.put(2110, "f62");+ ia64RegistersById.put(2111, "f63");+ ia64RegistersById.put(2112, "f64");+ ia64RegistersById.put(2113, "f65");+ ia64RegistersById.put(2114, "f66");+ ia64RegistersById.put(2115, "f67");+ ia64RegistersById.put(2116, "f68");+ ia64RegistersById.put(2117, "f69");+ ia64RegistersById.put(2118, "f70");+ ia64RegistersById.put(2119, "f71");+ ia64RegistersById.put(2120, "f72");+ ia64RegistersById.put(2121, "f73");+ ia64RegistersById.put(2122, "f74");+ ia64RegistersById.put(2123, "f75");+ ia64RegistersById.put(2124, "f76");+ ia64RegistersById.put(2125, "f77");+ ia64RegistersById.put(2126, "f78");+ ia64RegistersById.put(2127, "f79");+ ia64RegistersById.put(2128, "f80");+ ia64RegistersById.put(2129, "f81");+ ia64RegistersById.put(2130, "f82");+ ia64RegistersById.put(2131, "f83");+ ia64RegistersById.put(2132, "f84");+ ia64RegistersById.put(2133, "f85");+ ia64RegistersById.put(2134, "f86");+ ia64RegistersById.put(2135, "f87");+ ia64RegistersById.put(2136, "f88");+ ia64RegistersById.put(2137, "f89");+ ia64RegistersById.put(2138, "f90");+ ia64RegistersById.put(2139, "f91");+ ia64RegistersById.put(2140, "f92");+ ia64RegistersById.put(2141, "f93");+ ia64RegistersById.put(2142, "f94");+ ia64RegistersById.put(2143, "f95");+ ia64RegistersById.put(2144, "f96");+ ia64RegistersById.put(2145, "f97");+ ia64RegistersById.put(2146, "f98");+ ia64RegistersById.put(2147, "f99");+ ia64RegistersById.put(2148, "f100");+ ia64RegistersById.put(2149, "f101");+ ia64RegistersById.put(2150, "f102");+ ia64RegistersById.put(2151, "f103");+ ia64RegistersById.put(2152, "f104");+ ia64RegistersById.put(2153, "f105");+ ia64RegistersById.put(2154, "f106");+ ia64RegistersById.put(2155, "f107");+ ia64RegistersById.put(2156, "f108");+ ia64RegistersById.put(2157, "f109");+ ia64RegistersById.put(2158, "f110");+ ia64RegistersById.put(2159, "f111");+ ia64RegistersById.put(2160, "f112");+ ia64RegistersById.put(2161, "f113");+ ia64RegistersById.put(2162, "f114");+ ia64RegistersById.put(2163, "f115");+ ia64RegistersById.put(2164, "f116");+ ia64RegistersById.put(2165, "f117");+ ia64RegistersById.put(2166, "f118");+ ia64RegistersById.put(2167, "f119");+ ia64RegistersById.put(2168, "f120");+ ia64RegistersById.put(2169, "f121");+ ia64RegistersById.put(2170, "f122");+ ia64RegistersById.put(2171, "f123");+ ia64RegistersById.put(2172, "f124");+ ia64RegistersById.put(2173, "f125");+ ia64RegistersById.put(2174, "f126");+ ia64RegistersById.put(2175, "f127");// Application Registers- regIa64Map.put(3072, "apkr0");- regIa64Map.put(3073, "apkr1");- regIa64Map.put(3074, "apkr2");- regIa64Map.put(3075, "apkr3");- regIa64Map.put(3076, "apkr4");- regIa64Map.put(3077, "apkr5");- regIa64Map.put(3078, "apkr6");- regIa64Map.put(3079, "apkr7");- regIa64Map.put(3080, "ar8");- regIa64Map.put(3081, "ar9");- regIa64Map.put(3082, "ar10");- regIa64Map.put(3083, "ar11");- regIa64Map.put(3084, "ar12");- regIa64Map.put(3085, "ar13");- regIa64Map.put(3086, "ar14");- regIa64Map.put(3087, "ar15");- regIa64Map.put(3088, "rsbsc");- regIa64Map.put(3089, "rsbsp");- regIa64Map.put(3090, "rsbspstore");- regIa64Map.put(3091, "rsrnat");- regIa64Map.put(3092, "r20");- regIa64Map.put(3093, "stfcr");- regIa64Map.put(3094, "r22");- regIa64Map.put(3095, "r23");- regIa64Map.put(3096, "eflag");- regIa64Map.put(3097, "csd");- regIa64Map.put(3098, "ssd");- regIa64Map.put(3099, "cflg");- regIa64Map.put(3100, "stfsr");- regIa64Map.put(3101, "stfir");- regIa64Map.put(3102, "stfdr");- regIa64Map.put(3103, "ar31");- regIa64Map.put(3104, "apccv");- regIa64Map.put(3105, "ar33");- regIa64Map.put(3106, "ar34");- regIa64Map.put(3107, "ar35");- regIa64Map.put(3108, "apunat");- regIa64Map.put(3109, "ar37");- regIa64Map.put(3110, "ar38");- regIa64Map.put(3111, "ar39");- regIa64Map.put(3112, "stfpsr");- regIa64Map.put(3113, "ar41");- regIa64Map.put(3114, "ar42");- regIa64Map.put(3115, "ar43");- regIa64Map.put(3116, "apitc");- regIa64Map.put(3117, "ar45");- regIa64Map.put(3118, "ar46");- regIa64Map.put(3119, "ar47");- regIa64Map.put(3120, "ar48");- regIa64Map.put(3121, "ar49");- regIa64Map.put(3122, "ar50");- regIa64Map.put(3123, "ar51");- regIa64Map.put(3124, "ar52");- regIa64Map.put(3125, "ar53");- regIa64Map.put(3126, "ar54");- regIa64Map.put(3127, "ar55");- regIa64Map.put(3128, "ar56");- regIa64Map.put(3129, "ar57");- regIa64Map.put(3130, "ar58");- regIa64Map.put(3131, "ar59");- regIa64Map.put(3132, "ar60");- regIa64Map.put(3133, "ar61");- regIa64Map.put(3134, "ar62");- regIa64Map.put(3135, "ar63");- regIa64Map.put(3136, "rspfs");- regIa64Map.put(3137, "aplc");- regIa64Map.put(3138, "apec");- regIa64Map.put(3139, "ar67");- regIa64Map.put(3140, "ar68");- regIa64Map.put(3141, "ar69");- regIa64Map.put(3142, "ar70");- regIa64Map.put(3143, "ar71");- regIa64Map.put(3144, "ar72");- regIa64Map.put(3145, "ar73");- regIa64Map.put(3146, "ar74");- regIa64Map.put(3147, "ar75");- regIa64Map.put(3148, "ar76");- regIa64Map.put(3149, "ar77");- regIa64Map.put(3150, "ar78");- regIa64Map.put(3151, "ar79");- regIa64Map.put(3152, "ar80");- regIa64Map.put(3153, "ar81");- regIa64Map.put(3154, "ar82");- regIa64Map.put(3155, "ar83");- regIa64Map.put(3156, "ar84");- regIa64Map.put(3157, "ar85");- regIa64Map.put(3158, "ar86");- regIa64Map.put(3159, "ar87");- regIa64Map.put(3160, "ar88");- regIa64Map.put(3161, "ar89");- regIa64Map.put(3162, "ar90");- regIa64Map.put(3163, "ar91");- regIa64Map.put(3164, "ar92");- regIa64Map.put(3165, "ar93");- regIa64Map.put(3166, "ar94");- regIa64Map.put(3167, "ar95");- regIa64Map.put(3168, "ar96");- regIa64Map.put(3169, "ar97");- regIa64Map.put(3170, "ar98");- regIa64Map.put(3171, "ar99");- regIa64Map.put(3172, "ar100");- regIa64Map.put(3173, "ar101");- regIa64Map.put(3174, "ar102");- regIa64Map.put(3175, "ar103");- regIa64Map.put(3176, "ar104");- regIa64Map.put(3177, "ar105");- regIa64Map.put(3178, "ar106");- regIa64Map.put(3179, "ar107");- regIa64Map.put(3180, "ar108");- regIa64Map.put(3181, "ar109");- regIa64Map.put(3182, "ar110");- regIa64Map.put(3183, "ar111");- regIa64Map.put(3184, "ar112");- regIa64Map.put(3185, "ar113");- regIa64Map.put(3186, "ar114");- regIa64Map.put(3187, "ar115");- regIa64Map.put(3188, "ar116");- regIa64Map.put(3189, "ar117");- regIa64Map.put(3190, "ar118");- regIa64Map.put(3191, "ar119");- regIa64Map.put(3192, "ar120");- regIa64Map.put(3193, "ar121");- regIa64Map.put(3194, "ar122");- regIa64Map.put(3195, "ar123");- regIa64Map.put(3196, "ar124");- regIa64Map.put(3197, "ar125");- regIa64Map.put(3198, "ar126");- regIa64Map.put(3199, "ar127");-- regIa64Map.put(3328, "cpuid0");- regIa64Map.put(3329, "cpuid1");- regIa64Map.put(3330, "cpuid2");- regIa64Map.put(3331, "cpuid3");- regIa64Map.put(3332, "cpuid4");-- regIa64Map.put(4096, "apdcr");- regIa64Map.put(4097, "apitm");- regIa64Map.put(4098, "apiva");- regIa64Map.put(4099, "cr3");- regIa64Map.put(4100, "cr4");- regIa64Map.put(4101, "cr5");- regIa64Map.put(4102, "cr6");- regIa64Map.put(4103, "cr7");- regIa64Map.put(4104, "appta");- regIa64Map.put(4105, "apgpta");- regIa64Map.put(4106, "cr10");- regIa64Map.put(4107, "cr11");- regIa64Map.put(4108, "cr12");- regIa64Map.put(4109, "cr13");- regIa64Map.put(4110, "cr14");- regIa64Map.put(4111, "cr15");- regIa64Map.put(4112, "stipsr");- regIa64Map.put(4113, "stisr");- regIa64Map.put(4114, "cr18");- regIa64Map.put(4115, "stiip");- regIa64Map.put(4116, "stifa");- regIa64Map.put(4117, "stitir");- regIa64Map.put(4118, "stiipa");- regIa64Map.put(4119, "stifs");- regIa64Map.put(4120, "stiim");- regIa64Map.put(4121, "stiha");- regIa64Map.put(4122, "cr26");- regIa64Map.put(4123, "cr27");- regIa64Map.put(4124, "cr28");- regIa64Map.put(4125, "cr29");- regIa64Map.put(4126, "cr30");- regIa64Map.put(4127, "cr31");- regIa64Map.put(4128, "cr32");- regIa64Map.put(4129, "cr33");- regIa64Map.put(4130, "cr34");- regIa64Map.put(4131, "cr35");- regIa64Map.put(4132, "cr36");- regIa64Map.put(4133, "cr37");- regIa64Map.put(4134, "cr38");- regIa64Map.put(4135, "cr39");- regIa64Map.put(4136, "cr40");- regIa64Map.put(4137, "cr41");- regIa64Map.put(4138, "cr42");- regIa64Map.put(4139, "cr43");- regIa64Map.put(4140, "cr44");- regIa64Map.put(4141, "cr45");- regIa64Map.put(4142, "cr46");- regIa64Map.put(4143, "cr47");- regIa64Map.put(4144, "cr48");- regIa64Map.put(4145, "cr49");- regIa64Map.put(4146, "cr50");- regIa64Map.put(4147, "cr51");- regIa64Map.put(4148, "cr52");- regIa64Map.put(4149, "cr53");- regIa64Map.put(4150, "cr54");- regIa64Map.put(4151, "cr55");- regIa64Map.put(4152, "cr56");- regIa64Map.put(4153, "cr57");- regIa64Map.put(4154, "cr58");- regIa64Map.put(4155, "cr59");- regIa64Map.put(4156, "cr60");- regIa64Map.put(4157, "cr61");- regIa64Map.put(4158, "cr62");- regIa64Map.put(4159, "cr63");- regIa64Map.put(4160, "salid");- regIa64Map.put(4161, "saivr");- regIa64Map.put(4162, "satpr");- regIa64Map.put(4163, "saeoi");- regIa64Map.put(4164, "sairr0");- regIa64Map.put(4165, "sairr1");- regIa64Map.put(4166, "sairr2");- regIa64Map.put(4167, "sairr3");- regIa64Map.put(4168, "saitv");- regIa64Map.put(4169, "sapmv");- regIa64Map.put(4170, "sacmcv");- regIa64Map.put(4171, "cr75");- regIa64Map.put(4172, "cr76");- regIa64Map.put(4173, "cr77");- regIa64Map.put(4174, "cr78");- regIa64Map.put(4175, "cr79");- regIa64Map.put(4176, "salrr0");- regIa64Map.put(4177, "salrr1");- regIa64Map.put(4178, "cr82");- regIa64Map.put(4179, "cr83");- regIa64Map.put(4180, "cr84");- regIa64Map.put(4181, "cr85");- regIa64Map.put(4182, "cr86");- regIa64Map.put(4183, "cr87");- regIa64Map.put(4184, "cr88");- regIa64Map.put(4185, "cr89");- regIa64Map.put(4186, "cr90");- regIa64Map.put(4187, "cr91");- regIa64Map.put(4188, "cr92");- regIa64Map.put(4189, "cr93");- regIa64Map.put(4190, "cr94");- regIa64Map.put(4191, "cr95");- regIa64Map.put(4192, "cr96");- regIa64Map.put(4193, "cr97");- regIa64Map.put(4194, "cr98");- regIa64Map.put(4195, "cr99");- regIa64Map.put(4196, "cr100");- regIa64Map.put(4197, "cr101");- regIa64Map.put(4198, "cr102");- regIa64Map.put(4199, "cr103");- regIa64Map.put(4200, "cr104");- regIa64Map.put(4201, "cr105");- regIa64Map.put(4202, "cr106");- regIa64Map.put(4203, "cr107");- regIa64Map.put(4204, "cr108");- regIa64Map.put(4205, "cr109");- regIa64Map.put(4206, "cr110");- regIa64Map.put(4207, "cr111");- regIa64Map.put(4208, "cr112");- regIa64Map.put(4209, "cr113");- regIa64Map.put(4210, "cr114");- regIa64Map.put(4211, "cr115");- regIa64Map.put(4212, "cr116");- regIa64Map.put(4213, "cr117");- regIa64Map.put(4214, "cr118");- regIa64Map.put(4215, "cr119");- regIa64Map.put(4216, "cr120");- regIa64Map.put(4217, "cr121");- regIa64Map.put(4218, "cr122");- regIa64Map.put(4219, "cr123");- regIa64Map.put(4220, "cr124");- regIa64Map.put(4221, "cr125");- regIa64Map.put(4222, "cr126");- regIa64Map.put(4223, "cr127");-- regIa64Map.put(5120, "pkr0");- regIa64Map.put(5121, "pkr1");- regIa64Map.put(5122, "pkr2");- regIa64Map.put(5123, "pkr3");- regIa64Map.put(5124, "pkr4");- regIa64Map.put(5125, "pkr5");- regIa64Map.put(5126, "pkr6");- regIa64Map.put(5127, "pkr7");- regIa64Map.put(5128, "pkr8");- regIa64Map.put(5129, "pkr9");- regIa64Map.put(5130, "pkr10");- regIa64Map.put(5131, "pkr11");- regIa64Map.put(5132, "pkr12");- regIa64Map.put(5133, "pkr13");- regIa64Map.put(5134, "pkr14");- regIa64Map.put(5135, "pkr15");-- regIa64Map.put(6144, "rr0");- regIa64Map.put(6145, "rr1");- regIa64Map.put(6146, "rr2");- regIa64Map.put(6147, "rr3");- regIa64Map.put(6148, "rr4");- regIa64Map.put(6149, "rr5");- regIa64Map.put(6150, "rr6");- regIa64Map.put(6151, "rr7");-- regIa64Map.put(7168, "pfd0");- regIa64Map.put(7169, "pfd1");- regIa64Map.put(7170, "pfd2");- regIa64Map.put(7171, "pfd3");- regIa64Map.put(7172, "pfd4");- regIa64Map.put(7173, "pfd5");- regIa64Map.put(7174, "pfd6");- regIa64Map.put(7175, "pfd7");- regIa64Map.put(7176, "pfd8");- regIa64Map.put(7177, "pfd9");- regIa64Map.put(7178, "pfd10");- regIa64Map.put(7179, "pfd11");- regIa64Map.put(7180, "pfd12");- regIa64Map.put(7181, "pfd13");- regIa64Map.put(7182, "pfd14");- regIa64Map.put(7183, "pfd15");- regIa64Map.put(7184, "pfd16");- regIa64Map.put(7185, "pfd17");-- regIa64Map.put(7424, "pfc0");- regIa64Map.put(7425, "pfc1");- regIa64Map.put(7426, "pfc2");- regIa64Map.put(7427, "pfc3");- regIa64Map.put(7428, "pfc4");- regIa64Map.put(7429, "pfc5");- regIa64Map.put(7430, "pfc6");- regIa64Map.put(7431, "pfc7");- regIa64Map.put(7432, "pfc8");- regIa64Map.put(7433, "pfc9");- regIa64Map.put(7434, "pfc10");- regIa64Map.put(7435, "pfc11");- regIa64Map.put(7436, "pfc12");- regIa64Map.put(7437, "pfc13");- regIa64Map.put(7438, "pfc14");- regIa64Map.put(7439, "pfc15");-- regIa64Map.put(8192, "tri0");- regIa64Map.put(8193, "tri1");- regIa64Map.put(8194, "tri2");- regIa64Map.put(8195, "tri3");- regIa64Map.put(8196, "tri4");- regIa64Map.put(8197, "tri5");- regIa64Map.put(8198, "tri6");- regIa64Map.put(8199, "tri7");-- regIa64Map.put(8320, "trd0");- regIa64Map.put(8321, "trd1");- regIa64Map.put(8322, "trd2");- regIa64Map.put(8323, "trd3");- regIa64Map.put(8324, "trd4");- regIa64Map.put(8325, "trd5");- regIa64Map.put(8326, "trd6");- regIa64Map.put(8327, "trd7");-- regIa64Map.put(8448, "dbi0");- regIa64Map.put(8449, "dbi1");- regIa64Map.put(8450, "dbi2");- regIa64Map.put(8451, "dbi3");- regIa64Map.put(8452, "dbi4");- regIa64Map.put(8453, "dbi5");- regIa64Map.put(8454, "dbi6");- regIa64Map.put(8455, "dbi7");-- regIa64Map.put(8576, "dbd0");- regIa64Map.put(8577, "dbd1");- regIa64Map.put(8578, "dbd2");- regIa64Map.put(8579, "dbd3");- regIa64Map.put(8580, "dbd4");- regIa64Map.put(8581, "dbd5");- regIa64Map.put(8582, "dbd6");- regIa64Map.put(8583, "dbd7");+ ia64RegistersById.put(3072, "apkr0");+ ia64RegistersById.put(3073, "apkr1");+ ia64RegistersById.put(3074, "apkr2");+ ia64RegistersById.put(3075, "apkr3");+ ia64RegistersById.put(3076, "apkr4");+ ia64RegistersById.put(3077, "apkr5");+ ia64RegistersById.put(3078, "apkr6");+ ia64RegistersById.put(3079, "apkr7");+ ia64RegistersById.put(3080, "ar8");+ ia64RegistersById.put(3081, "ar9");+ ia64RegistersById.put(3082, "ar10");+ ia64RegistersById.put(3083, "ar11");+ ia64RegistersById.put(3084, "ar12");+ ia64RegistersById.put(3085, "ar13");+ ia64RegistersById.put(3086, "ar14");+ ia64RegistersById.put(3087, "ar15");+ ia64RegistersById.put(3088, "rsbsc");+ ia64RegistersById.put(3089, "rsbsp");+ ia64RegistersById.put(3090, "rsbspstore");+ ia64RegistersById.put(3091, "rsrnat");+ ia64RegistersById.put(3092, "r20");+ ia64RegistersById.put(3093, "stfcr");+ ia64RegistersById.put(3094, "r22");+ ia64RegistersById.put(3095, "r23");+ ia64RegistersById.put(3096, "eflag");+ ia64RegistersById.put(3097, "csd");+ ia64RegistersById.put(3098, "ssd");+ ia64RegistersById.put(3099, "cflg");+ ia64RegistersById.put(3100, "stfsr");+ ia64RegistersById.put(3101, "stfir");+ ia64RegistersById.put(3102, "stfdr");+ ia64RegistersById.put(3103, "ar31");+ ia64RegistersById.put(3104, "apccv");+ ia64RegistersById.put(3105, "ar33");+ ia64RegistersById.put(3106, "ar34");+ ia64RegistersById.put(3107, "ar35");+ ia64RegistersById.put(3108, "apunat");+ ia64RegistersById.put(3109, "ar37");+ ia64RegistersById.put(3110, "ar38");+ ia64RegistersById.put(3111, "ar39");+ ia64RegistersById.put(3112, "stfpsr");+ ia64RegistersById.put(3113, "ar41");+ ia64RegistersById.put(3114, "ar42");+ ia64RegistersById.put(3115, "ar43");+ ia64RegistersById.put(3116, "apitc");+ ia64RegistersById.put(3117, "ar45");+ ia64RegistersById.put(3118, "ar46");+ ia64RegistersById.put(3119, "ar47");+ ia64RegistersById.put(3120, "ar48");+ ia64RegistersById.put(3121, "ar49");+ ia64RegistersById.put(3122, "ar50");+ ia64RegistersById.put(3123, "ar51");+ ia64RegistersById.put(3124, "ar52");+ ia64RegistersById.put(3125, "ar53");+ ia64RegistersById.put(3126, "ar54");+ ia64RegistersById.put(3127, "ar55");+ ia64RegistersById.put(3128, "ar56");+ ia64RegistersById.put(3129, "ar57");+ ia64RegistersById.put(3130, "ar58");+ ia64RegistersById.put(3131, "ar59");+ ia64RegistersById.put(3132, "ar60");+ ia64RegistersById.put(3133, "ar61");+ ia64RegistersById.put(3134, "ar62");+ ia64RegistersById.put(3135, "ar63");+ ia64RegistersById.put(3136, "rspfs");+ ia64RegistersById.put(3137, "aplc");+ ia64RegistersById.put(3138, "apec");+ ia64RegistersById.put(3139, "ar67");+ ia64RegistersById.put(3140, "ar68");+ ia64RegistersById.put(3141, "ar69");+ ia64RegistersById.put(3142, "ar70");+ ia64RegistersById.put(3143, "ar71");+ ia64RegistersById.put(3144, "ar72");+ ia64RegistersById.put(3145, "ar73");+ ia64RegistersById.put(3146, "ar74");+ ia64RegistersById.put(3147, "ar75");+ ia64RegistersById.put(3148, "ar76");+ ia64RegistersById.put(3149, "ar77");+ ia64RegistersById.put(3150, "ar78");+ ia64RegistersById.put(3151, "ar79");+ ia64RegistersById.put(3152, "ar80");+ ia64RegistersById.put(3153, "ar81");+ ia64RegistersById.put(3154, "ar82");+ ia64RegistersById.put(3155, "ar83");+ ia64RegistersById.put(3156, "ar84");+ ia64RegistersById.put(3157, "ar85");+ ia64RegistersById.put(3158, "ar86");+ ia64RegistersById.put(3159, "ar87");+ ia64RegistersById.put(3160, "ar88");+ ia64RegistersById.put(3161, "ar89");+ ia64RegistersById.put(3162, "ar90");+ ia64RegistersById.put(3163, "ar91");+ ia64RegistersById.put(3164, "ar92");+ ia64RegistersById.put(3165, "ar93");+ ia64RegistersById.put(3166, "ar94");+ ia64RegistersById.put(3167, "ar95");+ ia64RegistersById.put(3168, "ar96");+ ia64RegistersById.put(3169, "ar97");+ ia64RegistersById.put(3170, "ar98");+ ia64RegistersById.put(3171, "ar99");+ ia64RegistersById.put(3172, "ar100");+ ia64RegistersById.put(3173, "ar101");+ ia64RegistersById.put(3174, "ar102");+ ia64RegistersById.put(3175, "ar103");+ ia64RegistersById.put(3176, "ar104");+ ia64RegistersById.put(3177, "ar105");+ ia64RegistersById.put(3178, "ar106");+ ia64RegistersById.put(3179, "ar107");+ ia64RegistersById.put(3180, "ar108");+ ia64RegistersById.put(3181, "ar109");+ ia64RegistersById.put(3182, "ar110");+ ia64RegistersById.put(3183, "ar111");+ ia64RegistersById.put(3184, "ar112");+ ia64RegistersById.put(3185, "ar113");+ ia64RegistersById.put(3186, "ar114");+ ia64RegistersById.put(3187, "ar115");+ ia64RegistersById.put(3188, "ar116");+ ia64RegistersById.put(3189, "ar117");+ ia64RegistersById.put(3190, "ar118");+ ia64RegistersById.put(3191, "ar119");+ ia64RegistersById.put(3192, "ar120");+ ia64RegistersById.put(3193, "ar121");+ ia64RegistersById.put(3194, "ar122");+ ia64RegistersById.put(3195, "ar123");+ ia64RegistersById.put(3196, "ar124");+ ia64RegistersById.put(3197, "ar125");+ ia64RegistersById.put(3198, "ar126");+ ia64RegistersById.put(3199, "ar127");++ ia64RegistersById.put(3328, "cpuid0");+ ia64RegistersById.put(3329, "cpuid1");+ ia64RegistersById.put(3330, "cpuid2");+ ia64RegistersById.put(3331, "cpuid3");+ ia64RegistersById.put(3332, "cpuid4");++ ia64RegistersById.put(4096, "apdcr");+ ia64RegistersById.put(4097, "apitm");+ ia64RegistersById.put(4098, "apiva");+ ia64RegistersById.put(4099, "cr3");+ ia64RegistersById.put(4100, "cr4");+ ia64RegistersById.put(4101, "cr5");+ ia64RegistersById.put(4102, "cr6");+ ia64RegistersById.put(4103, "cr7");+ ia64RegistersById.put(4104, "appta");+ ia64RegistersById.put(4105, "apgpta");+ ia64RegistersById.put(4106, "cr10");+ ia64RegistersById.put(4107, "cr11");+ ia64RegistersById.put(4108, "cr12");+ ia64RegistersById.put(4109, "cr13");+ ia64RegistersById.put(4110, "cr14");+ ia64RegistersById.put(4111, "cr15");+ ia64RegistersById.put(4112, "stipsr");+ ia64RegistersById.put(4113, "stisr");+ ia64RegistersById.put(4114, "cr18");+ ia64RegistersById.put(4115, "stiip");+ ia64RegistersById.put(4116, "stifa");+ ia64RegistersById.put(4117, "stitir");+ ia64RegistersById.put(4118, "stiipa");+ ia64RegistersById.put(4119, "stifs");+ ia64RegistersById.put(4120, "stiim");+ ia64RegistersById.put(4121, "stiha");+ ia64RegistersById.put(4122, "cr26");+ ia64RegistersById.put(4123, "cr27");+ ia64RegistersById.put(4124, "cr28");+ ia64RegistersById.put(4125, "cr29");+ ia64RegistersById.put(4126, "cr30");+ ia64RegistersById.put(4127, "cr31");+ ia64RegistersById.put(4128, "cr32");+ ia64RegistersById.put(4129, "cr33");+ ia64RegistersById.put(4130, "cr34");+ ia64RegistersById.put(4131, "cr35");+ ia64RegistersById.put(4132, "cr36");+ ia64RegistersById.put(4133, "cr37");+ ia64RegistersById.put(4134, "cr38");+ ia64RegistersById.put(4135, "cr39");+ ia64RegistersById.put(4136, "cr40");+ ia64RegistersById.put(4137, "cr41");+ ia64RegistersById.put(4138, "cr42");+ ia64RegistersById.put(4139, "cr43");+ ia64RegistersById.put(4140, "cr44");+ ia64RegistersById.put(4141, "cr45");+ ia64RegistersById.put(4142, "cr46");+ ia64RegistersById.put(4143, "cr47");+ ia64RegistersById.put(4144, "cr48");+ ia64RegistersById.put(4145, "cr49");+ ia64RegistersById.put(4146, "cr50");+ ia64RegistersById.put(4147, "cr51");+ ia64RegistersById.put(4148, "cr52");+ ia64RegistersById.put(4149, "cr53");+ ia64RegistersById.put(4150, "cr54");+ ia64RegistersById.put(4151, "cr55");+ ia64RegistersById.put(4152, "cr56");+ ia64RegistersById.put(4153, "cr57");+ ia64RegistersById.put(4154, "cr58");+ ia64RegistersById.put(4155, "cr59");+ ia64RegistersById.put(4156, "cr60");+ ia64RegistersById.put(4157, "cr61");+ ia64RegistersById.put(4158, "cr62");+ ia64RegistersById.put(4159, "cr63");+ ia64RegistersById.put(4160, "salid");+ ia64RegistersById.put(4161, "saivr");+ ia64RegistersById.put(4162, "satpr");+ ia64RegistersById.put(4163, "saeoi");+ ia64RegistersById.put(4164, "sairr0");+ ia64RegistersById.put(4165, "sairr1");+ ia64RegistersById.put(4166, "sairr2");+ ia64RegistersById.put(4167, "sairr3");+ ia64RegistersById.put(4168, "saitv");+ ia64RegistersById.put(4169, "sapmv");+ ia64RegistersById.put(4170, "sacmcv");+ ia64RegistersById.put(4171, "cr75");+ ia64RegistersById.put(4172, "cr76");+ ia64RegistersById.put(4173, "cr77");+ ia64RegistersById.put(4174, "cr78");+ ia64RegistersById.put(4175, "cr79");+ ia64RegistersById.put(4176, "salrr0");+ ia64RegistersById.put(4177, "salrr1");+ ia64RegistersById.put(4178, "cr82");+ ia64RegistersById.put(4179, "cr83");+ ia64RegistersById.put(4180, "cr84");+ ia64RegistersById.put(4181, "cr85");+ ia64RegistersById.put(4182, "cr86");+ ia64RegistersById.put(4183, "cr87");+ ia64RegistersById.put(4184, "cr88");+ ia64RegistersById.put(4185, "cr89");+ ia64RegistersById.put(4186, "cr90");+ ia64RegistersById.put(4187, "cr91");+ ia64RegistersById.put(4188, "cr92");+ ia64RegistersById.put(4189, "cr93");+ ia64RegistersById.put(4190, "cr94");+ ia64RegistersById.put(4191, "cr95");+ ia64RegistersById.put(4192, "cr96");+ ia64RegistersById.put(4193, "cr97");+ ia64RegistersById.put(4194, "cr98");+ ia64RegistersById.put(4195, "cr99");+ ia64RegistersById.put(4196, "cr100");+ ia64RegistersById.put(4197, "cr101");+ ia64RegistersById.put(4198, "cr102");+ ia64RegistersById.put(4199, "cr103");+ ia64RegistersById.put(4200, "cr104");+ ia64RegistersById.put(4201, "cr105");+ ia64RegistersById.put(4202, "cr106");+ ia64RegistersById.put(4203, "cr107");+ ia64RegistersById.put(4204, "cr108");+ ia64RegistersById.put(4205, "cr109");+ ia64RegistersById.put(4206, "cr110");+ ia64RegistersById.put(4207, "cr111");+ ia64RegistersById.put(4208, "cr112");+ ia64RegistersById.put(4209, "cr113");+ ia64RegistersById.put(4210, "cr114");+ ia64RegistersById.put(4211, "cr115");+ ia64RegistersById.put(4212, "cr116");+ ia64RegistersById.put(4213, "cr117");+ ia64RegistersById.put(4214, "cr118");+ ia64RegistersById.put(4215, "cr119");+ ia64RegistersById.put(4216, "cr120");+ ia64RegistersById.put(4217, "cr121");+ ia64RegistersById.put(4218, "cr122");+ ia64RegistersById.put(4219, "cr123");+ ia64RegistersById.put(4220, "cr124");+ ia64RegistersById.put(4221, "cr125");+ ia64RegistersById.put(4222, "cr126");+ ia64RegistersById.put(4223, "cr127");++ ia64RegistersById.put(5120, "pkr0");+ ia64RegistersById.put(5121, "pkr1");+ ia64RegistersById.put(5122, "pkr2");+ ia64RegistersById.put(5123, "pkr3");+ ia64RegistersById.put(5124, "pkr4");+ ia64RegistersById.put(5125, "pkr5");+ ia64RegistersById.put(5126, "pkr6");+ ia64RegistersById.put(5127, "pkr7");+ ia64RegistersById.put(5128, "pkr8");+ ia64RegistersById.put(5129, "pkr9");+ ia64RegistersById.put(5130, "pkr10");+ ia64RegistersById.put(5131, "pkr11");+ ia64RegistersById.put(5132, "pkr12");+ ia64RegistersById.put(5133, "pkr13");+ ia64RegistersById.put(5134, "pkr14");+ ia64RegistersById.put(5135, "pkr15");++ ia64RegistersById.put(6144, "rr0");+ ia64RegistersById.put(6145, "rr1");+ ia64RegistersById.put(6146, "rr2");+ ia64RegistersById.put(6147, "rr3");+ ia64RegistersById.put(6148, "rr4");+ ia64RegistersById.put(6149, "rr5");+ ia64RegistersById.put(6150, "rr6");+ ia64RegistersById.put(6151, "rr7");++ ia64RegistersById.put(7168, "pfd0");+ ia64RegistersById.put(7169, "pfd1");+ ia64RegistersById.put(7170, "pfd2");+ ia64RegistersById.put(7171, "pfd3");+ ia64RegistersById.put(7172, "pfd4");+ ia64RegistersById.put(7173, "pfd5");+ ia64RegistersById.put(7174, "pfd6");+ ia64RegistersById.put(7175, "pfd7");+ ia64RegistersById.put(7176, "pfd8");+ ia64RegistersById.put(7177, "pfd9");+ ia64RegistersById.put(7178, "pfd10");+ ia64RegistersById.put(7179, "pfd11");+ ia64RegistersById.put(7180, "pfd12");+ ia64RegistersById.put(7181, "pfd13");+ ia64RegistersById.put(7182, "pfd14");+ ia64RegistersById.put(7183, "pfd15");+ ia64RegistersById.put(7184, "pfd16");+ ia64RegistersById.put(7185, "pfd17");++ ia64RegistersById.put(7424, "pfc0");+ ia64RegistersById.put(7425, "pfc1");+ ia64RegistersById.put(7426, "pfc2");+ ia64RegistersById.put(7427, "pfc3");+ ia64RegistersById.put(7428, "pfc4");+ ia64RegistersById.put(7429, "pfc5");+ ia64RegistersById.put(7430, "pfc6");+ ia64RegistersById.put(7431, "pfc7");+ ia64RegistersById.put(7432, "pfc8");+ ia64RegistersById.put(7433, "pfc9");+ ia64RegistersById.put(7434, "pfc10");+ ia64RegistersById.put(7435, "pfc11");+ ia64RegistersById.put(7436, "pfc12");+ ia64RegistersById.put(7437, "pfc13");+ ia64RegistersById.put(7438, "pfc14");+ ia64RegistersById.put(7439, "pfc15");++ ia64RegistersById.put(8192, "tri0");+ ia64RegistersById.put(8193, "tri1");+ ia64RegistersById.put(8194, "tri2");+ ia64RegistersById.put(8195, "tri3");+ ia64RegistersById.put(8196, "tri4");+ ia64RegistersById.put(8197, "tri5");+ ia64RegistersById.put(8198, "tri6");+ ia64RegistersById.put(8199, "tri7");++ ia64RegistersById.put(8320, "trd0");+ ia64RegistersById.put(8321, "trd1");+ ia64RegistersById.put(8322, "trd2");+ ia64RegistersById.put(8323, "trd3");+ ia64RegistersById.put(8324, "trd4");+ ia64RegistersById.put(8325, "trd5");+ ia64RegistersById.put(8326, "trd6");+ ia64RegistersById.put(8327, "trd7");++ ia64RegistersById.put(8448, "dbi0");+ ia64RegistersById.put(8449, "dbi1");+ ia64RegistersById.put(8450, "dbi2");+ ia64RegistersById.put(8451, "dbi3");+ ia64RegistersById.put(8452, "dbi4");+ ia64RegistersById.put(8453, "dbi5");+ ia64RegistersById.put(8454, "dbi6");+ ia64RegistersById.put(8455, "dbi7");++ ia64RegistersById.put(8576, "dbd0");+ ia64RegistersById.put(8577, "dbd1");+ ia64RegistersById.put(8578, "dbd2");+ ia64RegistersById.put(8579, "dbd3");+ ia64RegistersById.put(8580, "dbd4");+ ia64RegistersById.put(8581, "dbd5");+ ia64RegistersById.put(8582, "dbd6");+ ia64RegistersById.put(8583, "dbd7");}private static final String badRegister = "bad register";@@ -861,7 +858,7 @@ public class RegisterName extends AbstractParsableItem {* @param register Register ID.*/public RegisterName(AbstractPdb pdb, int register) {- Validate.notNull(pdb, "pdb cannot be null)");+ Objects.requireNonNull(pdb, "pdb cannot be null");this.pdb = pdb;this.register = register;}@@ -974,8 +971,8 @@ public class RegisterName extends AbstractParsableItem {case IA64_IA64_1:case IA64_2:- if (registerIn < regIa64Map.size()) {- registerName = regIa64Map.get(registerIn);+ if (registerIn < ia64RegistersById.size()) {+ registerName = ia64RegistersById.get(registerIn);}break;diff --git a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/RvaVaDebugHeader.java b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/RvaVaDebugHeader.javaindex e7e0b5c189..79d1cc35f0 100644--- a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/RvaVaDebugHeader.java+++ b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/RvaVaDebugHeader.java@@ -26,18 +26,11 @@ import ghidra.pdb.PdbException;*/public class RvaVaDebugHeader extends DebugHeader {- //==============================================================================================- // Internals- //==============================================================================================private long relativeVirtualAddressDataBase;private BigInteger virtualAddressImageBase;private long unsignedIntReserved1;private long unsignedIntReserved2;- //==============================================================================================- // API- //==============================================================================================-/*** Returns the relative virtual address data base.* @return the relative virtual address data base.diff --git a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/SegmentMapDescription.java b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/SegmentMapDescription.javaindex 02110647c5..884c4f4102 100644--- a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/SegmentMapDescription.java+++ b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/SegmentMapDescription.java@@ -27,9 +27,6 @@ import ghidra.pdb.PdbException;*/public class SegmentMapDescription {- //==============================================================================================- // Internals- //==============================================================================================private int flags;private int ovl;private int group;@@ -39,10 +36,6 @@ public class SegmentMapDescription {private long segOffset;private long segLength;- //==============================================================================================- // API- //==============================================================================================-/*** Returns the segment offset.* @return The offset of the segment.@@ -75,9 +68,6 @@ public class SegmentMapDescription {segLength = substreamReader.parseUnsignedIntVal();}- //==============================================================================================- // Package-Protected Internals- //==============================================================================================/*** Dumps the {@link SegmentMapDescription}. This method is for debugging only.* @return {@link String} of pretty output.diff --git a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/SymbolHashRecord.java b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/SymbolHashRecord.javaindex bb673bd3f5..4f90860b8e 100644--- a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/SymbolHashRecord.java+++ b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/SymbolHashRecord.java@@ -21,6 +21,7 @@ import ghidra.pdb.PdbException;/*** This class represents a Symbol Hash Record used by Global Symbol Information and Public* Symbol Information.+ * @see GlobalSymbolInformation*/public class SymbolHashRecord implements Comparable<SymbolHashRecord> {@@ -28,6 +29,7 @@ public class SymbolHashRecord implements Comparable<SymbolHashRecord> {private int referenceCount;/**+ * Parses the contents of of this record.* @param reader {@link PdbByteReader} from which to deserialize the data.* @throws PdbException Upon not enough data left to parse.*/diff --git a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/SymbolParser.java b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/SymbolParser.javaindex 82ac4a22f4..74a89652c1 100644--- a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/SymbolParser.java+++ b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/SymbolParser.java@@ -17,8 +17,6 @@ package ghidra.pdb.pdbreader;import java.util.*;-import org.apache.commons.lang3.Validate;-import ghidra.pdb.*;import ghidra.pdb.pdbreader.symbol.*;import ghidra.util.exception.CancelledException;@@ -255,7 +253,7 @@ public class SymbolParser {* @param pdb {@link AbstractPdb} that owns the Symbols to be parsed.*/public SymbolParser(AbstractPdb pdb) {- Validate.notNull(pdb, "pdb cannot be null)");+ Objects.requireNonNull(pdb, "pdb cannot be null");this.pdb = pdb;}@@ -266,10 +264,8 @@ public class SymbolParser {public String getNewSymbolTypesLog() {StringBuilder builder = new StringBuilder();DelimiterState ds = new DelimiterState("New Symbol IDs Seen: ", ",");- /**- * We are creating the sorted set now, as we are willing to incur the cost of a sorted- * set now, but do not want to incur too much debug cost for adding to the- * {@link newSymbolTypesSeen} when not doing debug.+ /*+ * Sort these before printing to avoid sorting performance hit when logging is not used.*/Set<Integer> sortedSet = new TreeSet<>(newSymbolTypesSeen);for (Integer val : sortedSet) {@@ -299,6 +295,7 @@ public class SymbolParser {/*** Deserializes an {@link AbstractMsSymbol} from the {@link PdbByteReader} and returns it.+ * @param symbolTypeId the PDB ID for the symbol type to be parsed.* @param reader {@link PdbByteReader} from which to deserialize the symbol record.* @return {@link AbstractMsSymbol} that was parsed.* @throws PdbException upon error parsing a field.diff --git a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/SymbolRecords.java b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/SymbolRecords.javaindex cb18fb0167..bc93514d5e 100644--- a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/SymbolRecords.java+++ b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/SymbolRecords.java@@ -19,8 +19,6 @@ import java.io.IOException;import java.io.Writer;import java.util.*;-import org.apache.commons.lang3.Validate;-import ghidra.pdb.PdbByteReader;import ghidra.pdb.PdbException;import ghidra.pdb.pdbreader.symbol.AbstractMsSymbol;@@ -36,24 +34,18 @@ import ghidra.util.task.TaskMonitor;*/public class SymbolRecords {- //==============================================================================================- // Internals- //==============================================================================================private AbstractPdb pdb;- private Map<Long, AbstractMsSymbol> symbolMap;- private List<Map<Long, AbstractMsSymbol>> moduleSymbols = new ArrayList<>();+ private Map<Long, AbstractMsSymbol> symbolsByOffset;+ private List<Map<Long, AbstractMsSymbol>> moduleSymbolsByOffset = new ArrayList<>();private int comprehensiveSymbolCount = 0;private List<AbstractMsSymbol> comprehensiveSymbolList = new ArrayList<>();- //==============================================================================================- // API- //==============================================================================================/*** Constructor.* @param pdb {@link AbstractPdb} to which the {@link SymbolRecords} belong.*/public SymbolRecords(AbstractPdb pdb) {- Validate.notNull(pdb, "pdb cannot be null)");+ Objects.requireNonNull(pdb, "pdb cannot be null");this.pdb = pdb;}@@ -85,26 +77,23 @@ public class SymbolRecords {/*** Returns the list of symbols.- * @return {@link Map}<{@link Long},{@link AbstractMsSymbol}> of buffer offsets to+ * @return {@link Map}<{@link Long},{@link AbstractMsSymbol}> of buffer offsets to* symbols.*/- protected Map<Long, AbstractMsSymbol> getSymbolMap() {- return symbolMap;+ protected Map<Long, AbstractMsSymbol> getSymbolsByOffset() {+ return symbolsByOffset;}/*** Returns the buffer-offset-to-symbol map for the module as specified by moduleNumber.* @param moduleNumber The number ID of the module for which to return the list.- * @return {@link Map}<{@link Long},{@link AbstractMsSymbol}> of buffer offsets to+ * @return {@link Map}<{@link Long},{@link AbstractMsSymbol}> of buffer offsets to* symbols for the specified module.*/- protected Map<Long, AbstractMsSymbol> getModuleSymbolMap(int moduleNumber) {- return moduleSymbols.get(moduleNumber);+ protected Map<Long, AbstractMsSymbol> getModuleSymbolsByOffset(int moduleNumber) {+ return moduleSymbolsByOffset.get(moduleNumber);}- //==============================================================================================- // Package-Protected Internals- //==============================================================================================/*** Deserializes the {@link SymbolRecords} from the stream noted in the DBI header.* @param monitor {@link TaskMonitor} used for checking cancellation.@@ -117,11 +106,11 @@ public class SymbolRecords {int streamNumber;PdbByteReader reader;- streamNumber = pdb.databaseInterface.getSymbolRecordsStreamNumber();+ streamNumber = pdb.getDatabaseInterface().getSymbolRecordsStreamNumber();reader = pdb.getReaderForStreamNumber(streamNumber, monitor);- symbolMap = deserializeSymbolRecords(reader, monitor);+ symbolsByOffset = deserializeSymbolRecords(reader, monitor);- for (AbstractModuleInformation module : pdb.databaseInterface.moduleInformationList) {+ for (AbstractModuleInformation module : pdb.getDatabaseInterface().moduleInformationList) {streamNumber = module.getStreamNumberDebugInformation();if (streamNumber != 0xffff) {// System.out.println("\n\nStreamNumber: " + streamNumber);@@ -130,9 +119,9 @@ public class SymbolRecords {int sizeDebug = module.getSizeLocalSymbolsDebugInformation();sizeDebug -= x; //TODO: seems right, but need to evaluate thisPdbByteReader debugReader = reader.getSubPdbByteReader(sizeDebug);- Map<Long, AbstractMsSymbol> moduleSymbolsMap =+ Map<Long, AbstractMsSymbol> oneModuleSymbolsByOffset =deserializeSymbolRecords(debugReader, monitor);- moduleSymbols.add(moduleSymbolsMap);+ moduleSymbolsByOffset.add(oneModuleSymbolsByOffset);// PdbByteReader rest = reader.getSubPdbByteReader(reader.numRemaining());// System.out.println(rest.dump());@@ -143,7 +132,7 @@ public class SymbolRecords {// TODO: figure out the rest of the bytes in the stream (index of reader)}else {- moduleSymbols.add(null);+ moduleSymbolsByOffset.add(null);}}@@ -151,12 +140,11 @@ public class SymbolRecords {/*** Deserializes the {@link AbstractMsSymbol} symbols from the {@link PdbByteReader} and- * returns a {@link Map}<{@link Long},{@link AbstractMsSymbol}> of buffer offsets to+ * returns a {@link Map}<{@link Long},{@link AbstractMsSymbol}> of buffer offsets to* symbols.* @param reader {@link PdbByteReader} containing the symbol records to deserialize.* @param monitor {@link TaskMonitor} used for checking cancellation.- // * @return {@link AbstractMsSymbol} symbols.- * @return map of buffer offsets to {@link AbstractMsSymbol} symbols.+ * @return map of buffer offsets to {@link AbstractMsSymbol symbols}.* @throws PdbException Upon not enough data left to parse.* @throws CancelledException Upon user cancellation.*/@@ -164,7 +152,7 @@ public class SymbolRecords {TaskMonitor monitor) throws PdbException, CancelledException {//System.out.println(reader.dump(0x400));SymbolParser parser = pdb.getSymbolParser();- Map<Long, AbstractMsSymbol> mySymbolMap = new TreeMap<>();+ Map<Long, AbstractMsSymbol> mySymbolsByOffset = new TreeMap<>();while (reader.hasMore()) {monitor.checkCanceled();@@ -196,11 +184,11 @@ public class SymbolRecords {new CategoryIndex(CategoryIndex.Category.SYMBOL, comprehensiveSymbolCount));AbstractMsSymbol symbol = parser.parse(recordReader);pdb.popDependencyStack();- mySymbolMap.put((long) offset, symbol);+ mySymbolsByOffset.put((long) offset, symbol);comprehensiveSymbolList.add(symbol);comprehensiveSymbolCount++;}- return mySymbolMap;+ return mySymbolsByOffset;}/**@@ -210,9 +198,9 @@ public class SymbolRecords {*/protected void dump(Writer writer) throws IOException {writer.write("SymbolRecords-----------------------------------------------\n");- writer.write(dumpSymbolMap(symbolMap));- for (int i = 0; i < moduleSymbols.size(); i++) {- Map<Long, AbstractMsSymbol> map = moduleSymbols.get(i);+ writer.write(dumpSymbolMap(symbolsByOffset));+ for (int i = 0; i < moduleSymbolsByOffset.size(); i++) {+ Map<Long, AbstractMsSymbol> map = moduleSymbolsByOffset.get(i);if (map != null) {writer.write("Module(" + i + ") List:\n");writer.write(dumpSymbolMap(map));@@ -221,22 +209,18 @@ public class SymbolRecords {writer.write("\nEnd SymbolRecords-------------------------------------------\n");}- //==============================================================================================- // Internal Data Methods- //==============================================================================================/*** Debug method for dumping the symbols from a symbol map- * @param map the {@link Map}<{@link Long},{@link AbstractMsSymbol}> to dump.+ * @param mySymbolsByOffset the {@link Map}<{@link Long},{@link AbstractMsSymbol}> to dump.* @return {@link String} of pretty output of symbols dumped.*/- protected String dumpSymbolMap(Map<Long, AbstractMsSymbol> map) {+ protected String dumpSymbolMap(Map<Long, AbstractMsSymbol> mySymbolsByOffset) {StringBuilder builder = new StringBuilder();builder.append("SymbolMap---------------------------------------------------");- for (Long offset : map.keySet()) {- AbstractMsSymbol symbol = map.get(offset);+ for (Map.Entry<Long, AbstractMsSymbol> entry : mySymbolsByOffset.entrySet()) {builder.append("\n------------------------------------------------------------\n");- builder.append(String.format("Offset: 0X%08X\n", offset));- builder.append(symbol);+ builder.append(String.format("Offset: 0X%08X\n", entry.getKey()));+ builder.append(entry.getValue());}builder.append("\nEnd SymbolMap-----------------------------------------------\n");return builder.toString();diff --git a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/TypeIndex16.java b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/TypeIndex16.javaindex 0db1c70b6f..3a64058e5a 100644--- a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/TypeIndex16.java+++ b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/TypeIndex16.java@@ -24,9 +24,6 @@ import ghidra.pdb.PdbException;*/public class TypeIndex16 extends AbstractTypeIndex {- //==============================================================================================- // Abstract Methods- //==============================================================================================@Overrideprotected int doParse(PdbByteReader reader) throws PdbException {return reader.parseUnsignedShortVal();diff --git a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/TypeIndex32.java b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/TypeIndex32.javaindex 2b3776f69d..3b14d1918e 100644--- a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/TypeIndex32.java+++ b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/TypeIndex32.java@@ -28,9 +28,6 @@ import ghidra.pdb.PdbException;*/public class TypeIndex32 extends AbstractTypeIndex {- //==============================================================================================- // Abstract Methods- //==============================================================================================@Overrideprotected int doParse(PdbByteReader reader) throws PdbException {return reader.parseInt();diff --git a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/TypeParser.java b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/TypeParser.javaindex 900661b098..e5720abba4 100644--- a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/TypeParser.java+++ b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/TypeParser.java@@ -17,8 +17,6 @@ package ghidra.pdb.pdbreader;import java.util.*;-import org.apache.commons.lang3.Validate;-import ghidra.pdb.*;import ghidra.pdb.pdbreader.type.*;import ghidra.util.exception.CancelledException;@@ -193,7 +191,7 @@ public class TypeParser {* @param pdb {@link AbstractPdb} that owns the Symbols to be parsed.*/public TypeParser(AbstractPdb pdb) {- Validate.notNull(pdb, "pdb cannot be null)");+ Objects.requireNonNull(pdb, "pdb cannot be null");this.pdb = pdb;}@@ -204,10 +202,8 @@ public class TypeParser {public String getNewDataTypesLog() {StringBuilder builder = new StringBuilder();DelimiterState ds = new DelimiterState("New Symbol IDs Seen: ", ",");- /**- * We are creating the sorted set now, as we are willing to incur the cost of a sorted- * set now, but do not want to incur too much debug cost for adding to the- * {@link newDataTypesSeen} when not doing debug.+ /*+ * Sort these before printing to avoid sorting performance hit when logging is not used.*/Set<Integer> sortedSet = new TreeSet<>(newDataTypesSeen);for (Integer val : sortedSet) {@@ -237,6 +233,7 @@ public class TypeParser {/*** Deserializes an {@link AbstractMsType} from the {@link PdbByteReader} and returns it.+ * @param dataTypeId the PDB ID for the symbol type to be parsed.* @param reader {@link PdbByteReader} from which to deserialize the data.* @return {@link AbstractMsType} parsed.* @throws PdbException upon error parsing a field.diff --git a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/symbol/AbstractCompile2MsSymbol.java b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/symbol/AbstractCompile2MsSymbol.javaindex c7bf139ee3..4e4cd4ca0b 100644--- a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/symbol/AbstractCompile2MsSymbol.java+++ b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/symbol/AbstractCompile2MsSymbol.java@@ -230,7 +230,7 @@ public abstract class AbstractCompile2MsSymbol extends AbstractMsSymbol {}/**- * Returns the {@link List}<{@link AbstractString}> of additional strings.+ * Returns the {@link List}<{@link AbstractString}> of additional strings.* @return List of additional strings.*/public List<AbstractString> getStringList() {diff --git a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/symbol/AbstractDataHighLevelShaderLanguageSymbolInternals.java b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/symbol/AbstractDataHighLevelShaderLanguageSymbolInternals.javaindex 98cc01345b..1d775ebc0a 100644--- a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/symbol/AbstractDataHighLevelShaderLanguageSymbolInternals.java+++ b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/symbol/AbstractDataHighLevelShaderLanguageSymbolInternals.java@@ -29,7 +29,6 @@ import ghidra.pdb.pdbreader.*;public abstract class AbstractDataHighLevelShaderLanguageSymbolInternalsextends AbstractSymbolInternals {- //==============================================================================================/*** Implementing class is required to parse these four fields in the* {@link #parse(PdbByteReader)} method.@@ -39,7 +38,6 @@ public abstract class AbstractDataHighLevelShaderLanguageSymbolInternalsprotected HLSLRegisterType registerType;protected AbstractString name;- //==============================================================================================/*** Constructor for this symbol internals.* @param pdb {@link AbstractPdb} to which this symbol belongs.diff --git a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/symbol/AbstractMsSymbol.java b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/symbol/AbstractMsSymbol.javaindex ea5a6ee397..7bdcabd61f 100644--- a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/symbol/AbstractMsSymbol.java+++ b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/symbol/AbstractMsSymbol.java@@ -15,7 +15,7 @@*/package ghidra.pdb.pdbreader.symbol;-import org.apache.commons.lang3.Validate;+import java.util.Objects;import ghidra.pdb.AbstractParsableItem;import ghidra.pdb.PdbByteReader;@@ -84,7 +84,7 @@ public abstract class AbstractMsSymbol extends AbstractParsableItem {* @param reader {@link PdbByteReader} from which this symbol is deserialized.*/AbstractMsSymbol(AbstractPdb pdb, PdbByteReader reader) {- Validate.notNull(pdb, "pdb cannot be null)");+ Objects.requireNonNull(pdb, "pdb cannot be null");this.pdb = pdb;// The following commented-out code is used when trying to discern which SYMBOL types were// not yet implemented.diff --git a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/symbol/AbstractSymbolInternals.java b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/symbol/AbstractSymbolInternals.javaindex 736af78c2b..2e0b251c78 100644--- a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/symbol/AbstractSymbolInternals.java+++ b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/symbol/AbstractSymbolInternals.java@@ -15,7 +15,7 @@*/package ghidra.pdb.pdbreader.symbol;-import org.apache.commons.lang3.Validate;+import java.util.Objects;import ghidra.pdb.*;import ghidra.pdb.pdbreader.AbstractPdb;@@ -40,7 +40,7 @@ public abstract class AbstractSymbolInternals extends AbstractParsableItem {* @param pdb {@link AbstractPdb} to which this symbol belongs.*/public AbstractSymbolInternals(AbstractPdb pdb) {- Validate.notNull(pdb, "pdb cannot be null)");+ Objects.requireNonNull(pdb, "pdb cannot be null");this.pdb = pdb;create();}diff --git a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/symbol/EnvironmentBlockMsSymbol.java b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/symbol/EnvironmentBlockMsSymbol.javaindex 424c10ea39..a264f5619f 100644--- a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/symbol/EnvironmentBlockMsSymbol.java+++ b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/symbol/EnvironmentBlockMsSymbol.java@@ -78,8 +78,8 @@ public class EnvironmentBlockMsSymbol extends AbstractMsSymbol {}/**- * Note: this method returns {@link List}<{@link AbstractString}> instead of- * {@link List}<{@link String}>+ * Note: this method returns {@link List}<{@link AbstractString}> instead of+ * {@link List}<{@link String}>* @return {@String} list.*/public List<AbstractString> getStringList() {diff --git a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/symbol/InlinedFunctionCallsiteMsSymbol.java b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/symbol/InlinedFunctionCallsiteMsSymbol.javaindex 93ac747bb3..5e8b5072fc 100644--- a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/symbol/InlinedFunctionCallsiteMsSymbol.java+++ b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/symbol/InlinedFunctionCallsiteMsSymbol.java@@ -90,7 +90,7 @@ public class InlinedFunctionCallsiteMsSymbol extends AbstractMsSymbol {}/**- * Returns {@link List}<{@link InstructionAnnotation}>.+ * Returns {@link List}<{@link InstructionAnnotation}>.* @return Instruction annotations.*/public List<InstructionAnnotation> getBinaryAnnotationOpcodeList() {diff --git a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/symbol/UnknownX1168MsSymbol.java b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/symbol/UnknownX1168MsSymbol.javaindex dbc5f8a92f..b43785884d 100644--- a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/symbol/UnknownX1168MsSymbol.java+++ b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/symbol/UnknownX1168MsSymbol.java@@ -58,7 +58,7 @@ public class UnknownX1168MsSymbol extends AbstractUnknownMsSymbol {}/**- * Returns {@link List}<{@link Integer}> of what appears to be type indices.+ * Returns {@link List}<{@link Integer}> of what appears to be type indices.* @return Possible type indices.*/public List<Integer> getTypeIndexList() {diff --git a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/type/AbstractArgumentsListMsType.java b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/type/AbstractArgumentsListMsType.javaindex 075cf39c23..6b6522ceff 100644--- a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/type/AbstractArgumentsListMsType.java+++ b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/type/AbstractArgumentsListMsType.java@@ -46,7 +46,7 @@ public abstract class AbstractArgumentsListMsType extends AbstractMsType {}/**- * Returns {@link List}<{@link AbstractTypeIndex}> of indices in the argument list.+ * Returns {@link List}<{@link AbstractTypeIndex}> of indices in the argument list.* @return Indices of arguments in the arguments list.*/public List<AbstractTypeIndex> getArgTypeIndexList() {diff --git a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/type/AbstractFieldListMsType.java b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/type/AbstractFieldListMsType.javaindex e634f38850..ba49562a28 100644--- a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/type/AbstractFieldListMsType.java+++ b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/type/AbstractFieldListMsType.java@@ -62,7 +62,7 @@ public abstract class AbstractFieldListMsType extends AbstractMsType {}/**- * Returns the (ordered?) {@link List}<{@link AbstractMsType}> of types in the namespace.+ * Returns the (ordered?) {@link List}<{@link AbstractMsType}> of types in the namespace.* @return List of types in the namespace.*/public List<AbstractMsType> getNamespaceList() {@@ -70,7 +70,7 @@ public abstract class AbstractFieldListMsType extends AbstractMsType {}/**- * Returns the (ordered?) {@link List}<{@link AbstractMsType}> of type members types of+ * Returns the (ordered?) {@link List}<{@link AbstractMsType}> of type members types of* this field list.* @return Field list.*/@@ -79,7 +79,7 @@ public abstract class AbstractFieldListMsType extends AbstractMsType {}/**- * Returns the (ordered?) {@link List}<{@link AbstractMsType}> of other types. (We have+ * Returns the (ordered?) {@link List}<{@link AbstractMsType}> of other types. (We have* separated these out, but are unsure about what they are at this time.)* @return List of other types.*/diff --git a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/type/AbstractMemberFunctionMsType.java b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/type/AbstractMemberFunctionMsType.javaindex dc75426d61..6564bdf84c 100644--- a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/type/AbstractMemberFunctionMsType.java+++ b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/type/AbstractMemberFunctionMsType.java@@ -79,7 +79,7 @@ public abstract class AbstractMemberFunctionMsType extends AbstractMsType {* Returns the {@link CallingConvention}.* @return the {@link CallingConvention}.*/- public CallingConvention getCallingConventionValue() {+ public CallingConvention getCallingConvention() {return callingConvention;}diff --git a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/type/AbstractMethodRecordMs.java b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/type/AbstractMethodRecordMs.javaindex b79a4d62a8..f22f9ec2c7 100644--- a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/type/AbstractMethodRecordMs.java+++ b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/type/AbstractMethodRecordMs.java@@ -15,7 +15,7 @@*/package ghidra.pdb.pdbreader.type;-import org.apache.commons.lang3.Validate;+import java.util.Objects;import ghidra.pdb.*;import ghidra.pdb.pdbreader.*;@@ -40,7 +40,7 @@ public abstract class AbstractMethodRecordMs extends AbstractParsableItem {* @throws PdbException Upon not enough data left to parse.*/public AbstractMethodRecordMs(AbstractPdb pdb, PdbByteReader reader) throws PdbException {- Validate.notNull(pdb, "pdb cannot be null)");+ Objects.requireNonNull(pdb, "pdb cannot be null");this.pdb = pdb;procedureRecordNumber = create();parseFields(reader);diff --git a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/type/AbstractMsType.java b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/type/AbstractMsType.javaindex 504408a08a..6fc2c20e19 100644--- a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/type/AbstractMsType.java+++ b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/type/AbstractMsType.java@@ -15,7 +15,7 @@*/package ghidra.pdb.pdbreader.type;-import org.apache.commons.lang3.Validate;+import java.util.Objects;import ghidra.pdb.AbstractParsableItem;import ghidra.pdb.PdbByteReader;@@ -75,7 +75,7 @@ public abstract class AbstractMsType extends AbstractParsableItem {* @param reader {@link PdbByteReader} from which this type is deserialized.*/AbstractMsType(AbstractPdb pdb, PdbByteReader reader) {- Validate.notNull(pdb, "pdb cannot be null)");+ Objects.requireNonNull(pdb, "pdb cannot be null");this.pdb = pdb;//System.out.println(reader.dump());}diff --git a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/type/AbstractProcedureMsType.java b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/type/AbstractProcedureMsType.javaindex 6302230aca..750012a656 100644--- a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/type/AbstractProcedureMsType.java+++ b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/type/AbstractProcedureMsType.java@@ -68,7 +68,7 @@ public abstract class AbstractProcedureMsType extends AbstractMsType {* Returns the {@link CallingConvention}.* @return the {@link CallingConvention}.*/- public CallingConvention getCallingConventionValue() {+ public CallingConvention getCallingConvention() {return callingConvention;}diff --git a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/type/BuildInfoMsType.java b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/type/BuildInfoMsType.javaindex 4ca681f83a..a6d732173f 100644--- a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/type/BuildInfoMsType.java+++ b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/type/BuildInfoMsType.java@@ -47,11 +47,9 @@ public class BuildInfoMsType extends AbstractMsType {BUILDINFO_STRING[4] = "CommandArguments: ";}- //==============================================================================================private int count;private List<Integer> argsCodeItemId = new ArrayList<>();- //==============================================================================================/*** Constructor for this type.* @param pdb {@link AbstractPdb} to which this type belongs.diff --git a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/type/FunctionMsAttributes.java b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/type/FunctionMsAttributes.javaindex bd148932e2..5782a4606b 100644--- a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/type/FunctionMsAttributes.java+++ b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/type/FunctionMsAttributes.java@@ -27,12 +27,10 @@ public class FunctionMsAttributes extends AbstractParsableItem {private static final String INSTANCE_CONSTRUCTOR_VIRTUAL_BASE_STRING ="instance constructor of a class with virtual base";- //==============================================================================================private boolean hasCPPStyleReturnUDT;private boolean isInstanceConstructor;private boolean isInstanceConstructorOfClassWithVirtualBases;- //==============================================================================================/*** Constructor for FunctionMsAttributes.* @param reader {@link PdbByteReader} from which this type is deserialized.diff --git a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/type/LabelMsType.java b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/type/LabelMsType.javaindex a1ccfd1a41..25b8eec63f 100644--- a/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/type/LabelMsType.java+++ b/Ghidra/Features/PDB/src/main/java/ghidra/pdb/pdbreader/type/LabelMsType.java@@ -32,10 +32,8 @@ public class LabelMsType extends AbstractMsType {private static final int ADDRESS_MODE_NEAR = 0;private static final int ADDRESS_MODE_FAR = 4;- //==============================================================================================private int mode;- //==============================================================================================/*** Constructor for this type.* @param pdb {@link AbstractPdb} to which this type belongs.diff --git a/Ghidra/Features/PDB/src/test/java/ghidra/pdb/PdbByteWriterReaderTest.java b/Ghidra/Features/PDB/src/test/java/ghidra/pdb/PdbByteWriterReaderTest.javaindex df44c02010..837d7a3792 100644--- a/Ghidra/Features/PDB/src/test/java/ghidra/pdb/PdbByteWriterReaderTest.java+++ b/Ghidra/Features/PDB/src/test/java/ghidra/pdb/PdbByteWriterReaderTest.java@@ -32,7 +32,7 @@ public class PdbByteWriterReaderTest extends AbstractGenericTest {// Tests//==============================================================================================@Test- public void testWriter() throws PdbException {+ public void testWriter() throws Exception {PdbByteWriter writer = new PdbByteWriter();byte[] byteArrayTest1 = new byte[3];diff --git a/Ghidra/Features/PDB/src/test/java/ghidra/pdb/pdbreader/symbol/SymbolsTest.java b/Ghidra/Features/PDB/src/test/java/ghidra/pdb/pdbreader/symbol/SymbolsTest.javaindex df0bc604cb..2380cdeadc 100644--- a/Ghidra/Features/PDB/src/test/java/ghidra/pdb/pdbreader/symbol/SymbolsTest.java+++ b/Ghidra/Features/PDB/src/test/java/ghidra/pdb/pdbreader/symbol/SymbolsTest.java@@ -22,12 +22,12 @@ import java.math.BigInteger;import org.junit.Test;import generic.test.AbstractGenericTest;-import ghidra.pdb.*;+import ghidra.pdb.PdbByteReader;+import ghidra.pdb.PdbByteWriter;import ghidra.pdb.pdbreader.*;import ghidra.pdb.pdbreader.type.AbstractMsType;import ghidra.pdb.pdbreader.type.DummyMsType;import ghidra.util.Msg;-import ghidra.util.exception.CancelledException;public class SymbolsTest extends AbstractGenericTest {@@ -71,7 +71,7 @@ public class SymbolsTest extends AbstractGenericTest {//==============================================================================================//==============================================================================================@Test- public void testInstructionAnnotationCodeOffsetSmallMin() throws PdbException {+ public void testInstructionAnnotationCodeOffsetSmallMin() throws Exception {byte[] buf = createInstructionAnnotationBuffer(0x01, 0x00, 0x00);PdbByteReader reader = new PdbByteReader(buf);InstructionAnnotation annotation = new InstructionAnnotation(reader);@@ -80,7 +80,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testInstructionAnnotationCodeOffsetSmallMax() throws PdbException {+ public void testInstructionAnnotationCodeOffsetSmallMax() throws Exception {byte[] buf = createInstructionAnnotationBuffer(0x01, 0x7f, 0x00);PdbByteReader reader = new PdbByteReader(buf);InstructionAnnotation annotation = new InstructionAnnotation(reader);@@ -89,7 +89,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testInstructionAnnotationCodeOffsetMediumMin() throws PdbException {+ public void testInstructionAnnotationCodeOffsetMediumMin() throws Exception {byte[] buf = createInstructionAnnotationBuffer(0x01, 0x80, 0x00);PdbByteReader reader = new PdbByteReader(buf);InstructionAnnotation annotation = new InstructionAnnotation(reader);@@ -98,7 +98,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testInstructionAnnotationCodeOffsetMediumMax() throws PdbException {+ public void testInstructionAnnotationCodeOffsetMediumMax() throws Exception {byte[] buf = createInstructionAnnotationBuffer(0x01, 0x3fff, 0x00);PdbByteReader reader = new PdbByteReader(buf);InstructionAnnotation annotation = new InstructionAnnotation(reader);@@ -107,7 +107,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testInstructionAnnotationCodeOffsetLargeMin() throws PdbException {+ public void testInstructionAnnotationCodeOffsetLargeMin() throws Exception {byte[] buf = createInstructionAnnotationBuffer(0x01, 0x4000, 0x00);PdbByteReader reader = new PdbByteReader(buf);InstructionAnnotation annotation = new InstructionAnnotation(reader);@@ -116,7 +116,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testInstructionAnnotationCodeOffsetLarge() throws PdbException {+ public void testInstructionAnnotationCodeOffsetLarge() throws Exception {byte[] buf = createInstructionAnnotationBuffer(0x01, 0x1fffffff, 0x00);PdbByteReader reader = new PdbByteReader(buf);InstructionAnnotation annotation = new InstructionAnnotation(reader);@@ -125,7 +125,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testInstructionAnnotationChangeCodeOffsetBase() throws PdbException {+ public void testInstructionAnnotationChangeCodeOffsetBase() throws Exception {byte[] buf = createInstructionAnnotationBuffer(0x02, 0x20, 0x21);PdbByteReader reader = new PdbByteReader(buf);InstructionAnnotation annotation = new InstructionAnnotation(reader);@@ -134,7 +134,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testInstructionAnnotationChangeCodeOffset() throws PdbException {+ public void testInstructionAnnotationChangeCodeOffset() throws Exception {byte[] buf = createInstructionAnnotationBuffer(0x03, 0x30, 0x31);PdbByteReader reader = new PdbByteReader(buf);InstructionAnnotation annotation = new InstructionAnnotation(reader);@@ -143,7 +143,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testInstructionAnnotationChangeCodeLength() throws PdbException {+ public void testInstructionAnnotationChangeCodeLength() throws Exception {byte[] buf = createInstructionAnnotationBuffer(0x04, 0x40, 0x41);PdbByteReader reader = new PdbByteReader(buf);InstructionAnnotation annotation = new InstructionAnnotation(reader);@@ -152,7 +152,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testInstructionAnnotationChangeFile() throws PdbException {+ public void testInstructionAnnotationChangeFile() throws Exception {byte[] buf = createInstructionAnnotationBuffer(0x05, 0x50, 0x51);PdbByteReader reader = new PdbByteReader(buf);InstructionAnnotation annotation = new InstructionAnnotation(reader);@@ -161,7 +161,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testInstructionAnnotationChangeLineOffset() throws PdbException {+ public void testInstructionAnnotationChangeLineOffset() throws Exception {byte[] buf = createInstructionAnnotationBuffer(0x06, 0x60, 0x61);PdbByteReader reader = new PdbByteReader(buf);InstructionAnnotation annotation = new InstructionAnnotation(reader);@@ -170,7 +170,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testInstructionAnnotationChangeLineEndDelta() throws PdbException {+ public void testInstructionAnnotationChangeLineEndDelta() throws Exception {byte[] buf = createInstructionAnnotationBuffer(0x07, 0x70, 0x71);PdbByteReader reader = new PdbByteReader(buf);InstructionAnnotation annotation = new InstructionAnnotation(reader);@@ -179,7 +179,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testInstructionAnnotationChangeRangeKind() throws PdbException {+ public void testInstructionAnnotationChangeRangeKind() throws Exception {byte[] buf = createInstructionAnnotationBuffer(0x08, 0x80, 0x81);PdbByteReader reader = new PdbByteReader(buf);InstructionAnnotation annotation = new InstructionAnnotation(reader);@@ -188,7 +188,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testInstructionAnnotationChangeColumnStart() throws PdbException {+ public void testInstructionAnnotationChangeColumnStart() throws Exception {byte[] buf = createInstructionAnnotationBuffer(0x09, 0x90, 0x91);PdbByteReader reader = new PdbByteReader(buf);InstructionAnnotation annotation = new InstructionAnnotation(reader);@@ -197,7 +197,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testInstructionAnnotationChangeColumnEndDelta() throws PdbException {+ public void testInstructionAnnotationChangeColumnEndDelta() throws Exception {byte[] buf = createInstructionAnnotationBuffer(0x0a, 0xa0, 0xa1);PdbByteReader reader = new PdbByteReader(buf);InstructionAnnotation annotation = new InstructionAnnotation(reader);@@ -206,7 +206,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testInstructionAnnotationChangeColumnEndDeltaNegValue() throws PdbException {+ public void testInstructionAnnotationChangeColumnEndDeltaNegValue() throws Exception {byte[] buf = createInstructionAnnotationBuffer(0x0a, -(0x40), 0xa1);PdbByteReader reader = new PdbByteReader(buf);InstructionAnnotation annotation = new InstructionAnnotation(reader);@@ -215,7 +215,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testInstructionAnnotationChangeCodeOffsetAndLineOffset() throws PdbException {+ public void testInstructionAnnotationChangeCodeOffsetAndLineOffset() throws Exception {byte[] buf = createInstructionAnnotationBuffer(0x0b, 0xb0, 0xb1);PdbByteReader reader = new PdbByteReader(buf);InstructionAnnotation annotation = new InstructionAnnotation(reader);@@ -224,7 +224,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testInstructionAnnotationChangeCodeLengthAndCodeOffset() throws PdbException {+ public void testInstructionAnnotationChangeCodeLengthAndCodeOffset() throws Exception {byte[] buf = createInstructionAnnotationBuffer(0x0c, 0xc0, 0xc1);PdbByteReader reader = new PdbByteReader(buf);InstructionAnnotation annotation = new InstructionAnnotation(reader);@@ -233,7 +233,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testInstructionAnnotationChangeColumnEnd() throws PdbException {+ public void testInstructionAnnotationChangeColumnEnd() throws Exception {byte[] buf = createInstructionAnnotationBuffer(0x0d, 0xd0, 0xd1);PdbByteReader reader = new PdbByteReader(buf);InstructionAnnotation annotation = new InstructionAnnotation(reader);@@ -245,7 +245,7 @@ public class SymbolsTest extends AbstractGenericTest {//==============================================================================================//==============================================================================================@Test- public void testUnknownMsSymbol() throws PdbException, CancelledException, CancelledException {+ public void testUnknownMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(0xffff);writer.putBytes(new byte[] { (byte) 0xfe, (byte) 0xfd, (byte) 0xfc }); // dummy data@@ -257,7 +257,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testBadMsSymbol() throws PdbException, CancelledException, CancelledException {+ public void testBadMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(CompileFlagsMsSymbol.PDB_ID);writer.putUnsignedByte(0x00); // Processor value.@@ -270,8 +270,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testCompileFlagsMsSymbol()- throws PdbException, CancelledException, CancelledException {+ public void testCompileFlagsMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(CompileFlagsMsSymbol.PDB_ID);writer.putUnsignedByte(0x00); // Processor value.@@ -288,8 +287,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testCompile2StMsSymbol()- throws PdbException, CancelledException, CancelledException {+ public void testCompile2StMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(Compile2StMsSymbol.PDB_ID);writer.putUnsignedInt(0); // flags@@ -321,7 +319,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testCompile2MsSymbol() throws PdbException, CancelledException {+ public void testCompile2MsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(Compile2MsSymbol.PDB_ID);writer.putUnsignedInt(0); // flags@@ -353,7 +351,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testCompile3MsSymbol() throws PdbException, CancelledException {+ public void testCompile3MsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(Compile3MsSymbol.PDB_ID);writer.putUnsignedInt(0); // flags@@ -384,7 +382,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testEnvironmentBlockMsSymbol() throws PdbException, CancelledException {+ public void testEnvironmentBlockMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(EnvironmentBlockMsSymbol.PDB_ID);writer.putUnsignedByte(0); // 1 if compiled for edit-and-continue debug@@ -403,7 +401,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testRegister16MsSymbol() throws PdbException, CancelledException {+ public void testRegister16MsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(Register16MsSymbol.PDB_ID);writer.putUnsignedShort(4096); // Type index or metadata token@@ -417,7 +415,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testRegisterStMsSymbol() throws PdbException, CancelledException {+ public void testRegisterStMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(RegisterStMsSymbol.PDB_ID);writer.putInt(4096); // Type index or metadata token@@ -431,7 +429,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testRegisterMsSymbol() throws PdbException, CancelledException {+ public void testRegisterMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(RegisterMsSymbol.PDB_ID);writer.putInt(4096); // Type index or metadata token@@ -445,7 +443,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testConstant16MsSymbol() throws PdbException, CancelledException {+ public void testConstant16MsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(Constant16MsSymbol.PDB_ID);writer.putUnsignedShort(4096); // Type index containing enum if enumerate@@ -459,7 +457,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testConstantStMsSymbol() throws PdbException, CancelledException {+ public void testConstantStMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(ConstantStMsSymbol.PDB_ID);writer.putInt(4096); // Type index containing enum if enumerate@@ -473,7 +471,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testConstantMsSymbol() throws PdbException, CancelledException {+ public void testConstantMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(ConstantMsSymbol.PDB_ID);writer.putInt(4096); // Type index containing enum if enumerate@@ -487,7 +485,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testManagedConstantMsSymbol() throws PdbException, CancelledException {+ public void testManagedConstantMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(ManagedConstantMsSymbol.PDB_ID);writer.putInt(4096); // Type index containing enum if enumerate@@ -501,7 +499,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testUserDefinedType16MsSymbol() throws PdbException, CancelledException {+ public void testUserDefinedType16MsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(UserDefinedType16MsSymbol.PDB_ID);writer.putUnsignedShort(4096); // Type index containing enum if enumerate@@ -514,7 +512,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testUserDefinedTypeStMsSymbol() throws PdbException, CancelledException {+ public void testUserDefinedTypeStMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(UserDefinedTypeStMsSymbol.PDB_ID);writer.putInt(4096); // Type index containing enum if enumerate@@ -527,7 +525,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testUserDefinedTypeMsSymbol() throws PdbException, CancelledException {+ public void testUserDefinedTypeMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(UserDefinedTypeMsSymbol.PDB_ID);writer.putInt(4096); // Type index containing enum if enumerate@@ -540,7 +538,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testCobolUserDefinedType16MsSymbol() throws PdbException, CancelledException {+ public void testCobolUserDefinedType16MsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(CobolUserDefinedType16MsSymbol.PDB_ID);writer.putUnsignedShort(4096); // Type index containing enum if enumerate@@ -553,7 +551,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testCobolUserDefinedTypeStMsSymbol() throws PdbException, CancelledException {+ public void testCobolUserDefinedTypeStMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(CobolUserDefinedTypeStMsSymbol.PDB_ID);writer.putInt(4096); // Type index containing enum if enumerate@@ -566,7 +564,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testCobolUserDefinedTypeMsSymbol() throws PdbException, CancelledException {+ public void testCobolUserDefinedTypeMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(CobolUserDefinedTypeMsSymbol.PDB_ID);writer.putInt(4096); // Type index containing enum if enumerate@@ -579,7 +577,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testStartSearchMsSymbol() throws PdbException, CancelledException {+ public void testStartSearchMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(StartSearchMsSymbol.PDB_ID);writer.putInt(0x100); // Offset of the procedure@@ -592,7 +590,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testEndMsSymbol() throws PdbException, CancelledException {+ public void testEndMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(EndMsSymbol.PDB_ID);PdbByteReader reader = new PdbByteReader(writer.get());@@ -603,7 +601,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testSkipMsSymbol() throws PdbException, CancelledException {+ public void testSkipMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(SkipMsSymbol.PDB_ID);writer.putBytes(new byte[] { 0x00, 0x00 }); // Putting data, but might never be any.@@ -615,7 +613,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testCvReservedMsSymbol() throws PdbException, CancelledException {+ public void testCvReservedMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(CvReservedMsSymbol.PDB_ID);writer.putBytes(new byte[] { 0x00, 0x00 }); // Putting data, but might never be any.@@ -627,7 +625,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testObjectNameStMsSymbol() throws PdbException, CancelledException {+ public void testObjectNameStMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(ObjectNameStMsSymbol.PDB_ID);writer.putInt(4096); // Type index containing enum if enumerate@@ -640,7 +638,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testObjectNameMsSymbol() throws PdbException, CancelledException {+ public void testObjectNameMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(ObjectNameMsSymbol.PDB_ID);writer.putInt(4096); // Type index containing enum if enumerate@@ -653,7 +651,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testEndArgumentsListMsSymbol() throws PdbException, CancelledException {+ public void testEndArgumentsListMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(EndArgumentsListMsSymbol.PDB_ID);writer.putBytes(new byte[] { 0x00, 0x00 }); // Putting data, but might never be any.@@ -665,7 +663,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testManyRegisterVariable16MsSymbol() throws PdbException, CancelledException {+ public void testManyRegisterVariable16MsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(ManyRegisterVariable16MsSymbol.PDB_ID);writer.putUnsignedShort(4096); // Type index containing enum if enumerate@@ -683,7 +681,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testManyRegisterVariableStMsSymbol() throws PdbException, CancelledException {+ public void testManyRegisterVariableStMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(ManyRegisterVariableStMsSymbol.PDB_ID);writer.putInt(4096); // Type index containing enum if enumerate@@ -701,7 +699,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testManyRegisterVariableMsSymbol() throws PdbException, CancelledException {+ public void testManyRegisterVariableMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(ManyRegisterVariableMsSymbol.PDB_ID);writer.putInt(4096); // Type index containing enum if enumerate@@ -719,7 +717,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testManyRegisterVariable2StMsSymbol() throws PdbException, CancelledException {+ public void testManyRegisterVariable2StMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(ManyRegisterVariable2StMsSymbol.PDB_ID);writer.putInt(4096); // Type index containing enum if enumerate@@ -737,7 +735,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testManyRegisterVariable2MsSymbol() throws PdbException, CancelledException {+ public void testManyRegisterVariable2MsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(ManyRegisterVariable2MsSymbol.PDB_ID);writer.putInt(4096); // Type index containing enum if enumerate@@ -755,7 +753,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testReturnDescriptionMsSymbol() throws PdbException, CancelledException {+ public void testReturnDescriptionMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(ReturnDescriptionMsSymbol.PDB_ID);writer.putUnsignedShort(0x00); // Generic flags@@ -771,7 +769,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testEntryThisMsSymbol() throws PdbException, CancelledException {+ public void testEntryThisMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(EntryThisMsSymbol.PDB_ID);// API: "Symbol describing this pointer on entry" TODO: made up data; what should it be?@@ -784,7 +782,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testBasePointerRelative16MsSymbol() throws PdbException, CancelledException {+ public void testBasePointerRelative16MsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(BasePointerRelative16MsSymbol.PDB_ID);writer.putUnsignedShort(0x10); // BasePointer-relative offset.@@ -798,7 +796,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testBasePointerRelative3216MsSymbol() throws PdbException, CancelledException {+ public void testBasePointerRelative3216MsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(BasePointerRelative3216MsSymbol.PDB_ID);writer.putUnsignedInt(0x10); // BasePointer-relative offset.@@ -812,7 +810,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testBasePointerRelative32StMsSymbol() throws PdbException, CancelledException {+ public void testBasePointerRelative32StMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(BasePointerRelative32StMsSymbol.PDB_ID);writer.putUnsignedInt(0x10); // BasePointer-relative offset.@@ -826,7 +824,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testBasePointerRelative32MsSymbol() throws PdbException, CancelledException {+ public void testBasePointerRelative32MsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(BasePointerRelative32MsSymbol.PDB_ID);writer.putUnsignedInt(0x10); // BasePointer-relative offset.@@ -840,7 +838,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testLocalData16MsSymbol() throws PdbException, CancelledException {+ public void testLocalData16MsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(LocalData16MsSymbol.PDB_ID);writer.putUnsignedShort(0x10); // Offset of symbol.@@ -855,7 +853,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testLocalData3216MsSymbol() throws PdbException, CancelledException {+ public void testLocalData3216MsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(LocalData3216MsSymbol.PDB_ID);writer.putUnsignedInt(0x10); // Offset of symbol.@@ -870,7 +868,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testLocalData32StMsSymbol() throws PdbException, CancelledException {+ public void testLocalData32StMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(LocalData32StMsSymbol.PDB_ID);writer.putInt(4096); // Type index@@ -885,7 +883,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testLocalData32MsSymbol() throws PdbException, CancelledException {+ public void testLocalData32MsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(LocalData32MsSymbol.PDB_ID);writer.putInt(4096); // Type index@@ -900,7 +898,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testGlobalData16MsSymbol() throws PdbException, CancelledException {+ public void testGlobalData16MsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(GlobalData16MsSymbol.PDB_ID);writer.putUnsignedShort(0x10); // Offset of symbol.@@ -915,7 +913,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testGlobalData3216MsSymbol() throws PdbException, CancelledException {+ public void testGlobalData3216MsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(GlobalData3216MsSymbol.PDB_ID);writer.putUnsignedInt(0x10); // Offset of symbol.@@ -930,7 +928,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testGlobalData32StMsSymbol() throws PdbException, CancelledException {+ public void testGlobalData32StMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(GlobalData32StMsSymbol.PDB_ID);writer.putInt(4096); // Type index@@ -945,7 +943,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testGlobalData32MsSymbol() throws PdbException, CancelledException {+ public void testGlobalData32MsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(GlobalData32MsSymbol.PDB_ID);writer.putInt(4096); // Type index@@ -960,7 +958,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testPublic16MsSymbol() throws PdbException, CancelledException {+ public void testPublic16MsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(Public16MsSymbol.PDB_ID);writer.putUnsignedShort(0x10); // Offset of symbol.@@ -975,7 +973,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testPublic3216MsSymbol() throws PdbException, CancelledException {+ public void testPublic3216MsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(Public3216MsSymbol.PDB_ID);writer.putUnsignedInt(0x10); // Offset of symbol.@@ -990,7 +988,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testPublic32StMsSymbol() throws PdbException, CancelledException {+ public void testPublic32StMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(Public32StMsSymbol.PDB_ID);writer.putInt(0x0f); // Public symbol flags@@ -1005,7 +1003,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testPublic32MsSymbol() throws PdbException, CancelledException {+ public void testPublic32MsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(Public32MsSymbol.PDB_ID);writer.putInt(0x0f); // Public symbol flags@@ -1020,7 +1018,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testLocalManagedDataStMsSymbol() throws PdbException, CancelledException {+ public void testLocalManagedDataStMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(LocalManagedDataStMsSymbol.PDB_ID);writer.putInt(4096); // Type index@@ -1036,7 +1034,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testLocalManagedDataMsSymbol() throws PdbException, CancelledException {+ public void testLocalManagedDataMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(LocalManagedDataMsSymbol.PDB_ID);writer.putInt(4096); // Type index@@ -1051,7 +1049,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testGlobalManagedDataStMsSymbol() throws PdbException, CancelledException {+ public void testGlobalManagedDataStMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(GlobalManagedDataStMsSymbol.PDB_ID);writer.putInt(4096); // Type index@@ -1067,7 +1065,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testGlobalManagedDataMsSymbol() throws PdbException, CancelledException {+ public void testGlobalManagedDataMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(GlobalManagedDataMsSymbol.PDB_ID);writer.putInt(4096); // Type index@@ -1082,7 +1080,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testLocalThreadStorage3216MsSymbol() throws PdbException, CancelledException {+ public void testLocalThreadStorage3216MsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(LocalThreadStorage3216MsSymbol.PDB_ID);writer.putUnsignedInt(0x10); // Offset into thread storage@@ -1098,7 +1096,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testLocalThreadStorage32StMsSymbol() throws PdbException, CancelledException {+ public void testLocalThreadStorage32StMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(LocalThreadStorage32StMsSymbol.PDB_ID);writer.putInt(4096); // Type index@@ -1114,7 +1112,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testLocalThreadStorage32MsSymbol() throws PdbException, CancelledException {+ public void testLocalThreadStorage32MsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(LocalThreadStorage32MsSymbol.PDB_ID);writer.putInt(4096); // Type index@@ -1130,7 +1128,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testGlobalThreadStorage3216MsSymbol() throws PdbException, CancelledException {+ public void testGlobalThreadStorage3216MsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(GlobalThreadStorage3216MsSymbol.PDB_ID);writer.putUnsignedInt(0x10); // Offset into thread storage@@ -1146,7 +1144,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testGlobalThreadStorage32StMsSymbol() throws PdbException, CancelledException {+ public void testGlobalThreadStorage32StMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(GlobalThreadStorage32StMsSymbol.PDB_ID);writer.putInt(4096); // Type index@@ -1162,7 +1160,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testGlobalThreadStorage32MsSymbol() throws PdbException, CancelledException {+ public void testGlobalThreadStorage32MsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(GlobalThreadStorage32MsSymbol.PDB_ID);writer.putInt(4096); // Type index@@ -1178,7 +1176,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testLocalDataHLSLMsSymbol() throws PdbException, CancelledException {+ public void testLocalDataHLSLMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(LocalDataHLSLMsSymbol.PDB_ID);writer.putInt(4096); // Type index@@ -1199,7 +1197,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testLocalDataHLSL32MsSymbol() throws PdbException, CancelledException {+ public void testLocalDataHLSL32MsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(LocalDataHLSL32MsSymbol.PDB_ID);writer.putInt(4096); // Type index@@ -1220,7 +1218,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testLocalDataHLSL32ExtMsSymbol() throws PdbException, CancelledException {+ public void testLocalDataHLSL32ExtMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(LocalDataHLSL32ExtMsSymbol.PDB_ID);writer.putInt(4096); // Type index@@ -1240,7 +1238,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testGlobalDataHLSLMsSymbol() throws PdbException, CancelledException {+ public void testGlobalDataHLSLMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(GlobalDataHLSLMsSymbol.PDB_ID);writer.putInt(4096); // Type index@@ -1261,7 +1259,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testGlobalDataHLSL32MsSymbol() throws PdbException, CancelledException {+ public void testGlobalDataHLSL32MsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(GlobalDataHLSL32MsSymbol.PDB_ID);writer.putInt(4096); // Type index@@ -1282,7 +1280,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testGlobalDataHLSL32ExtMsSymbol() throws PdbException, CancelledException {+ public void testGlobalDataHLSL32ExtMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(GlobalDataHLSL32ExtMsSymbol.PDB_ID);writer.putInt(4096); // Type index@@ -1302,7 +1300,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testLocalProcedureStart16MsSymbol() throws PdbException, CancelledException {+ public void testLocalProcedureStart16MsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(LocalProcedureStart16MsSymbol.PDB_ID);writer.putUnsignedInt(0x10); // pointer to the parent@@ -1330,7 +1328,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testLocalProcedureStart3216MsSymbol() throws PdbException, CancelledException {+ public void testLocalProcedureStart3216MsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(LocalProcedureStart3216MsSymbol.PDB_ID);writer.putUnsignedInt(0x10); // pointer to the parent@@ -1358,7 +1356,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testLocalProcedureStart32StMsSymbol() throws PdbException, CancelledException {+ public void testLocalProcedureStart32StMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(LocalProcedureStart32StMsSymbol.PDB_ID);writer.putUnsignedInt(0x10); // pointer to the parent@@ -1386,7 +1384,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testLocalProcedureStart32MsSymbol() throws PdbException, CancelledException {+ public void testLocalProcedureStart32MsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(LocalProcedureStart32MsSymbol.PDB_ID);writer.putUnsignedInt(0x10); // pointer to the parent@@ -1414,7 +1412,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testGlobalProcedureStart16MsSymbol() throws PdbException, CancelledException {+ public void testGlobalProcedureStart16MsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(GlobalProcedureStart16MsSymbol.PDB_ID);writer.putUnsignedInt(0x10); // pointer to the parent@@ -1442,7 +1440,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testGlobalProcedureStart3216MsSymbol() throws PdbException, CancelledException {+ public void testGlobalProcedureStart3216MsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(GlobalProcedureStart3216MsSymbol.PDB_ID);writer.putUnsignedInt(0x10); // pointer to the parent@@ -1470,7 +1468,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testGlobalProcedureStart32StMsSymbol() throws PdbException, CancelledException {+ public void testGlobalProcedureStart32StMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(GlobalProcedureStart32StMsSymbol.PDB_ID);writer.putUnsignedInt(0x10); // pointer to the parent@@ -1498,7 +1496,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testGlobalProcedureStart32MsSymbol() throws PdbException, CancelledException {+ public void testGlobalProcedureStart32MsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(GlobalProcedureStart32MsSymbol.PDB_ID);writer.putUnsignedInt(0x10); // pointer to the parent@@ -1526,7 +1524,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testLocalProcedure32IdMsSymbol() throws PdbException, CancelledException {+ public void testLocalProcedure32IdMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(LocalProcedure32IdMsSymbol.PDB_ID);writer.putUnsignedInt(0x10); // pointer to the parent@@ -1554,7 +1552,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testGlobalProcedure32IdMsSymbol() throws PdbException, CancelledException {+ public void testGlobalProcedure32IdMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(GlobalProcedure32IdMsSymbol.PDB_ID);writer.putUnsignedInt(0x10); // pointer to the parent@@ -1582,8 +1580,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testLocalProcedureStart32DeferredProcedureCallMsSymbol()- throws PdbException, CancelledException {+ public void testLocalProcedureStart32DeferredProcedureCallMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(LocalProcedureStart32DeferredProcedureCallMsSymbol.PDB_ID);writer.putUnsignedInt(0x10); // pointer to the parent@@ -1611,8 +1608,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testLocalProcedure32DeferredProcedureCallIdMsSymbol()- throws PdbException, CancelledException {+ public void testLocalProcedure32DeferredProcedureCallIdMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(LocalProcedure32DeferredProcedureCallIdMsSymbol.PDB_ID);writer.putUnsignedInt(0x10); // pointer to the parent@@ -1640,7 +1636,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testLocalProcedureStartMips16MsSymbol() throws PdbException, CancelledException {+ public void testLocalProcedureStartMips16MsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(LocalProcedureStartMips16MsSymbol.PDB_ID);writer.putUnsignedInt(0x10); // pointer to the parent@@ -1671,7 +1667,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testLocalProcedureStartMipsStMsSymbol() throws PdbException, CancelledException {+ public void testLocalProcedureStartMipsStMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(LocalProcedureStartMipsStMsSymbol.PDB_ID);writer.putUnsignedInt(0x10); // pointer to the parent@@ -1702,7 +1698,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testLocalProcedureStartMipsMsSymbol() throws PdbException, CancelledException {+ public void testLocalProcedureStartMipsMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(LocalProcedureStartMipsMsSymbol.PDB_ID);writer.putUnsignedInt(0x10); // pointer to the parent@@ -1733,7 +1729,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testGlobalProcedureStartMips16MsSymbol() throws PdbException, CancelledException {+ public void testGlobalProcedureStartMips16MsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(GlobalProcedureStartMips16MsSymbol.PDB_ID);writer.putUnsignedInt(0x10); // pointer to the parent@@ -1764,7 +1760,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testGlobalProcedureStartMipsStMsSymbol() throws PdbException, CancelledException {+ public void testGlobalProcedureStartMipsStMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(GlobalProcedureStartMipsStMsSymbol.PDB_ID);writer.putUnsignedInt(0x10); // pointer to the parent@@ -1795,7 +1791,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testGlobalProcedureStartMipsMsSymbol() throws PdbException, CancelledException {+ public void testGlobalProcedureStartMipsMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(GlobalProcedureStartMipsMsSymbol.PDB_ID);writer.putUnsignedInt(0x10); // pointer to the parent@@ -1826,7 +1822,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testLocalProcedureMipsIdMsSymbol() throws PdbException, CancelledException {+ public void testLocalProcedureMipsIdMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(LocalProcedureMipsIdMsSymbol.PDB_ID);writer.putUnsignedInt(0x10); // pointer to the parent@@ -1857,7 +1853,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testGlobalProcedureMipsIdMsSymbol() throws PdbException, CancelledException {+ public void testGlobalProcedureMipsIdMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(GlobalProcedureMipsIdMsSymbol.PDB_ID);writer.putUnsignedInt(0x10); // pointer to the parent@@ -1888,7 +1884,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testLocalProcedureStartIa64StMsSymbol() throws PdbException, CancelledException {+ public void testLocalProcedureStartIa64StMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(LocalProcedureStartIa64StMsSymbol.PDB_ID);writer.putUnsignedInt(0x10); // pointer to the parent@@ -1918,7 +1914,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testLocalProcedureStartIa64MsSymbol() throws PdbException, CancelledException {+ public void testLocalProcedureStartIa64MsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(LocalProcedureStartIa64MsSymbol.PDB_ID);writer.putUnsignedInt(0x10); // pointer to the parent@@ -1948,7 +1944,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testGlobalProcedureStartIa64StMsSymbol() throws PdbException, CancelledException {+ public void testGlobalProcedureStartIa64StMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(GlobalProcedureStartIa64StMsSymbol.PDB_ID);writer.putUnsignedInt(0x10); // pointer to the parent@@ -1978,7 +1974,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testGlobalProcedureStartIa64MsSymbol() throws PdbException, CancelledException {+ public void testGlobalProcedureStartIa64MsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(GlobalProcedureStartIa64MsSymbol.PDB_ID);writer.putUnsignedInt(0x10); // pointer to the parent@@ -2008,7 +2004,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testLocalProcedureIa64IdMsSymbol() throws PdbException, CancelledException {+ public void testLocalProcedureIa64IdMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(LocalProcedureIa64IdMsSymbol.PDB_ID);writer.putUnsignedInt(0x10); // pointer to the parent@@ -2038,7 +2034,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testGlobalProcedureIa64IdMsSymbol() throws PdbException, CancelledException {+ public void testGlobalProcedureIa64IdMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(GlobalProcedureIa64IdMsSymbol.PDB_ID);writer.putUnsignedInt(0x10); // pointer to the parent@@ -2068,7 +2064,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testThunk16MsSymbol() throws PdbException, CancelledException {+ public void testThunk16MsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(Thunk16MsSymbol.PDB_ID);writer.putUnsignedInt(0x10); // pointer to the parent@@ -2092,7 +2088,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testThunkStMsSymbol() throws PdbException, CancelledException {+ public void testThunkStMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(Thunk32StMsSymbol.PDB_ID);writer.putUnsignedInt(0x10); // pointer to the parent@@ -2116,7 +2112,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testThunkMsSymbol() throws PdbException, CancelledException {+ public void testThunkMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(Thunk32MsSymbol.PDB_ID);writer.putUnsignedInt(0x10); // pointer to the parent@@ -2140,7 +2136,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testBlock16MsSymbol() throws PdbException, CancelledException {+ public void testBlock16MsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(Block16MsSymbol.PDB_ID);writer.putUnsignedInt(0x10); // pointer to the parent@@ -2158,7 +2154,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testBlock32StMsSymbol() throws PdbException, CancelledException {+ public void testBlock32StMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(Block32StMsSymbol.PDB_ID);writer.putUnsignedInt(0x10); // pointer to the parent@@ -2176,7 +2172,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testBlock32MsSymbol() throws PdbException, CancelledException {+ public void testBlock32MsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(Block32MsSymbol.PDB_ID);writer.putUnsignedInt(0x10); // pointer to the parent@@ -2194,7 +2190,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testWith16MsSymbol() throws PdbException, CancelledException {+ public void testWith16MsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(With16MsSymbol.PDB_ID);writer.putUnsignedInt(0x10); // pointer to the parent@@ -2212,7 +2208,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testWith32StMsSymbol() throws PdbException, CancelledException, CancelledException {+ public void testWith32StMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(With32StMsSymbol.PDB_ID);writer.putUnsignedInt(0x10); // pointer to the parent@@ -2230,7 +2226,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testWith32MsSymbol() throws PdbException, CancelledException {+ public void testWith32MsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(With32MsSymbol.PDB_ID);writer.putUnsignedInt(0x10); // pointer to the parent@@ -2248,7 +2244,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testLabel16MsSymbol() throws PdbException, CancelledException {+ public void testLabel16MsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(Label16MsSymbol.PDB_ID);writer.putUnsignedShort(0x30); // Offset of symbol@@ -2267,7 +2263,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testLabel32StMsSymbol() throws PdbException, CancelledException {+ public void testLabel32StMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(Label32StMsSymbol.PDB_ID);writer.putUnsignedInt(0x30); // Offset of symbol@@ -2286,7 +2282,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testLabel32MsSymbol() throws PdbException, CancelledException {+ public void testLabel32MsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(Label32MsSymbol.PDB_ID);writer.putUnsignedInt(0x30); // Offset of symbol@@ -2305,7 +2301,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testChangeExecutionModel16MsSymbol() throws PdbException, CancelledException {+ public void testChangeExecutionModel16MsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(ChangeExecutionModel16MsSymbol.PDB_ID);writer.putUnsignedShort(0x30); // Offset of symbol@@ -2323,7 +2319,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testChangeExecutionModel32MsSymbol() throws PdbException, CancelledException {+ public void testChangeExecutionModel32MsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(ChangeExecutionModel32MsSymbol.PDB_ID);writer.putUnsignedInt(0x30); // Offset of symbol@@ -2341,7 +2337,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testVirtualFunctionTable16MsSymbol() throws PdbException, CancelledException {+ public void testVirtualFunctionTable16MsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(VirtualFunctionTable16MsSymbol.PDB_ID);writer.putUnsignedShort(0x10); // offset of symbol@@ -2356,7 +2352,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testVirtualFunctionTable3216MsSymbol() throws PdbException, CancelledException {+ public void testVirtualFunctionTable3216MsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(VirtualFunctionTable3216MsSymbol.PDB_ID);writer.putUnsignedInt(0x10); // offset of symbol@@ -2371,7 +2367,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testVirtualFunctionTable32MsSymbol() throws PdbException, CancelledException {+ public void testVirtualFunctionTable32MsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(VirtualFunctionTable32MsSymbol.PDB_ID);writer.putUnsignedInt(4096); // root@@ -2386,7 +2382,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testRegisterRelativeAddress16MsSymbol() throws PdbException, CancelledException {+ public void testRegisterRelativeAddress16MsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(RegisterRelativeAddress16MsSymbol.PDB_ID);writer.putUnsignedShort(0x30); // offset of symbol@@ -2402,7 +2398,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testRegisterRelativeAddress3216MsSymbol() throws PdbException, CancelledException {+ public void testRegisterRelativeAddress3216MsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(RegisterRelativeAddress3216MsSymbol.PDB_ID);writer.putUnsignedInt(0x30); // offset of symbol@@ -2418,7 +2414,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testRegisterRelativeAddress32StMsSymbol() throws PdbException, CancelledException {+ public void testRegisterRelativeAddress32StMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(RegisterRelativeAddress32StMsSymbol.PDB_ID);writer.putUnsignedInt(0x30); // offset of symbol@@ -2434,7 +2430,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testRegisterRelativeAddress32MsSymbol() throws PdbException, CancelledException {+ public void testRegisterRelativeAddress32MsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(RegisterRelativeAddress32MsSymbol.PDB_ID);writer.putUnsignedInt(0x30); // offset of symbol@@ -2450,8 +2446,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testStaticLinkForMipsExceptionHandlingMsSymbol()- throws PdbException, CancelledException {+ public void testStaticLinkForMipsExceptionHandlingMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(StaticLinkForMipsExceptionHandlingMsSymbol.PDB_ID);writer.putUnsignedInt(0x10); // frame size of parent procedure@@ -2465,7 +2460,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testProcedureReferenceStMsSymbol() throws PdbException, CancelledException {+ public void testProcedureReferenceStMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(ProcedureReferenceStMsSymbol.PDB_ID);writer.putUnsignedInt(0x10); // frame size of parent procedure@@ -2480,7 +2475,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testDataReferenceStMsSymbol() throws PdbException, CancelledException {+ public void testDataReferenceStMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(DataReferenceStMsSymbol.PDB_ID);writer.putUnsignedInt(0x10); // frame size of parent procedure@@ -2495,7 +2490,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testLocalProcedureReferenceStMsSymbol() throws PdbException, CancelledException {+ public void testLocalProcedureReferenceStMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(LocalProcedureReferenceStMsSymbol.PDB_ID);writer.putUnsignedInt(0x10); // frame size of parent procedure@@ -2510,7 +2505,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testProcedureReferenceMsSymbol() throws PdbException, CancelledException {+ public void testProcedureReferenceMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(ProcedureReferenceMsSymbol.PDB_ID);writer.putUnsignedInt(0x10); // frame size of parent procedure@@ -2525,7 +2520,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testDataReferenceMsSymbol() throws PdbException, CancelledException {+ public void testDataReferenceMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(DataReferenceMsSymbol.PDB_ID);writer.putUnsignedInt(0x10); // frame size of parent procedure@@ -2540,7 +2535,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testLocalProcedureReferenceMsSymbol() throws PdbException, CancelledException {+ public void testLocalProcedureReferenceMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(LocalProcedureReferenceMsSymbol.PDB_ID);writer.putUnsignedInt(0x10); // frame size of parent procedure@@ -2555,7 +2550,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testAnnotationReferenceMsSymbol() throws PdbException, CancelledException {+ public void testAnnotationReferenceMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(AnnotationReferenceMsSymbol.PDB_ID);writer.putUnsignedInt(0x10); // frame size of parent procedure@@ -2570,8 +2565,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testTokenReferenceToManagedProcedureMsSymbol()- throws PdbException, CancelledException {+ public void testTokenReferenceToManagedProcedureMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(TokenReferenceToManagedProcedureMsSymbol.PDB_ID);writer.putUnsignedInt(0x10); // frame size of parent procedure@@ -2586,7 +2580,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testAlignMsSymbol() throws PdbException, CancelledException {+ public void testAlignMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(AlignMsSymbol.PDB_ID);writer.putBytes(new byte[] { 0x00, 0x00 }); // Putting data, but might never be any.@@ -2598,7 +2592,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testOemDefinedMsSymbol() throws PdbException, CancelledException {+ public void testOemDefinedMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(OemDefinedMsSymbol.PDB_ID);// SS_OEMID GUID (from API doc)@@ -2619,7 +2613,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testLocalSlotIndexFieldedLILStMsSymbol() throws PdbException, CancelledException {+ public void testLocalSlotIndexFieldedLILStMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(LocalSlotIndexFieldedLILStMsSymbol.PDB_ID);writer.putUnsignedInt(0x10); // slot index@@ -2633,7 +2627,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testLocalSlotIndexFieldedLILMsSymbol() throws PdbException, CancelledException {+ public void testLocalSlotIndexFieldedLILMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(LocalSlotIndexFieldedLILMsSymbol.PDB_ID);writer.putUnsignedInt(0x10); // slot index@@ -2647,8 +2641,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testParameterSlotIndexFieldedLILStMsSymbol()- throws PdbException, CancelledException {+ public void testParameterSlotIndexFieldedLILStMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(ParameterSlotIndexFieldedLILStMsSymbol.PDB_ID);writer.putUnsignedInt(0x10); // slot index@@ -2662,7 +2655,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testParameterSlotIndexFieldedLILMsSymbol() throws PdbException, CancelledException {+ public void testParameterSlotIndexFieldedLILMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(ParameterSlotIndexFieldedLILMsSymbol.PDB_ID);writer.putUnsignedInt(0x10); // slot index@@ -2676,7 +2669,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testAnnotationMsSymbol() throws PdbException, CancelledException {+ public void testAnnotationMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(AnnotationMsSymbol.PDB_ID);writer.putUnsignedInt(0x3000); // Offset@@ -2694,7 +2687,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testReserved1MsSymbol() throws PdbException, CancelledException {+ public void testReserved1MsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(Reserved1MsSymbol.PDB_ID);PdbByteReader reader = new PdbByteReader(writer.get());@@ -2705,7 +2698,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testReserved2MsSymbol() throws PdbException, CancelledException {+ public void testReserved2MsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(Reserved2MsSymbol.PDB_ID);PdbByteReader reader = new PdbByteReader(writer.get());@@ -2716,7 +2709,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testReserved3MsSymbol() throws PdbException, CancelledException {+ public void testReserved3MsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(Reserved3MsSymbol.PDB_ID);PdbByteReader reader = new PdbByteReader(writer.get());@@ -2727,7 +2720,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testReserved4MsSymbol() throws PdbException, CancelledException {+ public void testReserved4MsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(Reserved4MsSymbol.PDB_ID);PdbByteReader reader = new PdbByteReader(writer.get());@@ -2738,7 +2731,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testLocalManagedProcedureStMsSymbol() throws PdbException, CancelledException {+ public void testLocalManagedProcedureStMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(LocalManagedProcedureStMsSymbol.PDB_ID);writer.putUnsignedInt(0x10); // pointer to the parent@@ -2768,7 +2761,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testLocalManagedProcedureMsSymbol() throws PdbException, CancelledException {+ public void testLocalManagedProcedureMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(LocalManagedProcedureMsSymbol.PDB_ID);writer.putUnsignedInt(0x10); // pointer to the parent@@ -2798,7 +2791,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testGlobalManagedProcedureStMsSymbol() throws PdbException, CancelledException {+ public void testGlobalManagedProcedureStMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(GlobalManagedProcedureStMsSymbol.PDB_ID);writer.putUnsignedInt(0x10); // pointer to the parent@@ -2828,7 +2821,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testGlobalManagedProcedureMsSymbol() throws PdbException, CancelledException {+ public void testGlobalManagedProcedureMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(GlobalManagedProcedureMsSymbol.PDB_ID);writer.putUnsignedInt(0x10); // pointer to the parent@@ -2858,7 +2851,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testManLocOrParamReltoVFPStMsSymbol() throws PdbException, CancelledException {+ public void testManLocOrParamReltoVFPStMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(ManLocOrParamReltoVFPStMsSymbol.PDB_ID);writer.putUnsignedInt(0x3000); // Frame-relative offset@@ -2878,7 +2871,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testManLocOrParamReltoVFPMsSymbol() throws PdbException, CancelledException {+ public void testManLocOrParamReltoVFPMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(ManLocOrParamReltoVFPMsSymbol.PDB_ID);writer.putUnsignedInt(0x3000); // Frame-relative offset@@ -2898,7 +2891,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testAttribLocOrParamReltoVFPMsSymbol() throws PdbException, CancelledException {+ public void testAttribLocOrParamReltoVFPMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(AttribLocOrParamReltoVFPMsSymbol.PDB_ID);writer.putUnsignedInt(0x3000); // Frame-relative offset@@ -2918,7 +2911,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testManagedLocalOrParameterSIRStMsSymbol() throws PdbException, CancelledException {+ public void testManagedLocalOrParameterSIRStMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(ManagedLocalOrParameterSIRStMsSymbol.PDB_ID);writer.putInt(4096); // type index or mdatadata token@@ -2938,7 +2931,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testManagedLocalOrParameterSIRMsSymbol() throws PdbException, CancelledException {+ public void testManagedLocalOrParameterSIRMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(ManagedLocalOrParameterSIRMsSymbol.PDB_ID);writer.putInt(4096); // type index or mdatadata token@@ -2958,8 +2951,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testAttributedLocalOrParameterSIRMsSymbol()- throws PdbException, CancelledException {+ public void testAttributedLocalOrParameterSIRMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(AttributedLocalOrParameterSIRMsSymbol.PDB_ID);writer.putInt(4096); // type index or mdatadata token@@ -2979,8 +2971,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testManagedSymbolWithSlotIndexFieldStMsSymbol()- throws PdbException, CancelledException {+ public void testManagedSymbolWithSlotIndexFieldStMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(ManagedSymbolWithSlotIndexFieldStMsSymbol.PDB_ID);writer.putUnsignedInt(1); // Slot index@@ -3000,8 +2991,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testManagedSymbolWithSlotIndexFieldMsSymbol()- throws PdbException, CancelledException {+ public void testManagedSymbolWithSlotIndexFieldMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(ManagedSymbolWithSlotIndexFieldMsSymbol.PDB_ID);writer.putUnsignedInt(1); // Slot index@@ -3021,8 +3011,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testManagedLocalOrParameterSIMRStMsSymbol()- throws PdbException, CancelledException {+ public void testManagedLocalOrParameterSIMRStMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(ManagedLocalOrParameterSIMRStMsSymbol.PDB_ID);writer.putInt(4096); // type index or mdatadata token@@ -3043,7 +3032,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testManagedLocalOrParameterSIMRMsSymbol() throws PdbException, CancelledException {+ public void testManagedLocalOrParameterSIMRMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(ManagedLocalOrParameterSIMRMsSymbol.PDB_ID);writer.putInt(4096); // type index or mdatadata token@@ -3064,8 +3053,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testManagedLocalOrParameterSIMR2StMsSymbol()- throws PdbException, CancelledException {+ public void testManagedLocalOrParameterSIMR2StMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(ManagedLocalOrParameterSIMR2StMsSymbol.PDB_ID);writer.putInt(4096); // type index or mdatadata token@@ -3086,7 +3074,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testManagedLocalOrParameterSIMR2MsSymbol() throws PdbException, CancelledException {+ public void testManagedLocalOrParameterSIMR2MsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(ManagedLocalOrParameterSIMR2MsSymbol.PDB_ID);writer.putInt(4096); // type index or mdatadata token@@ -3107,8 +3095,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testAttributedLocalOrParameterSIMRMsSymbol()- throws PdbException, CancelledException {+ public void testAttributedLocalOrParameterSIMRMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(AttributedLocalOrParameterSIMRMsSymbol.PDB_ID);writer.putInt(4096); // type index or mdatadata token@@ -3129,7 +3116,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testManLocOrParamReltoAMPStMsSymbol() throws PdbException, CancelledException {+ public void testManLocOrParamReltoAMPStMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(ManLocOrParamReltoAMPStMsSymbol.PDB_ID);writer.putUnsignedInt(0x3000); // Frame-relative offset@@ -3150,7 +3137,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testManLocOrParamReltoAMPMsSymbol() throws PdbException, CancelledException {+ public void testManLocOrParamReltoAMPMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(ManLocOrParamReltoAMPMsSymbol.PDB_ID);writer.putUnsignedInt(0x3000); // Frame-relative offset@@ -3171,7 +3158,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testAttribLocOrParamReltoAMPMsSymbol() throws PdbException, CancelledException {+ public void testAttribLocOrParamReltoAMPMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(AttribLocOrParamReltoAMPMsSymbol.PDB_ID);writer.putUnsignedInt(0x3000); // Frame-relative offset@@ -3192,8 +3179,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testIndexForTypeReferencedByNameFromMetadataMsSymbol()- throws PdbException, CancelledException {+ public void testIndexForTypeReferencedByNameFromMetadataMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(IndexForTypeReferencedByNameFromMetadataMsSymbol.PDB_ID);writer.putInt(4096); // type index or mdatadata token@@ -3205,7 +3191,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testUsingNamespaceStMsSymbol() throws PdbException, CancelledException {+ public void testUsingNamespaceStMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(UsingNamespaceStMsSymbol.PDB_ID);writer.putByteLengthPrefixedUtf8String("UsingNamespaceName");@@ -3217,7 +3203,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testUsingNamespaceMsSymbol() throws PdbException, CancelledException {+ public void testUsingNamespaceMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(UsingNamespaceMsSymbol.PDB_ID);writer.putNullTerminatedUtf8String("UsingNamespaceName");@@ -3229,7 +3215,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testTrampolineMsSymbol() throws PdbException, CancelledException {+ public void testTrampolineMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(TrampolineMsSymbol.PDB_ID);writer.putUnsignedShort(1); // trampoline subtype@@ -3249,8 +3235,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testSeparatedCodeFromCompilerSupportMsSymbol()- throws PdbException, CancelledException {+ public void testSeparatedCodeFromCompilerSupportMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(SeparatedCodeFromCompilerSupportMsSymbol.PDB_ID);writer.putUnsignedInt(0x10); // pointer to the parent@@ -3273,8 +3258,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testLocalSymbolInOptimizedCode2005MsSymbol()- throws PdbException, CancelledException {+ public void testLocalSymbolInOptimizedCode2005MsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(LocalSymbolInOptimizedCode2005MsSymbol.PDB_ID);writer.putInt(4096); // type index@@ -3292,7 +3276,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testLocalSymbolInOptimizedCodeMsSymbol() throws PdbException, CancelledException {+ public void testLocalSymbolInOptimizedCodeMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(LocalSymbolInOptimizedCodeMsSymbol.PDB_ID);writer.putInt(4096); // type index@@ -3310,8 +3294,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testDefinedSingleAddressRange2005MsSymbol()- throws PdbException, CancelledException {+ public void testDefinedSingleAddressRange2005MsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(DefinedSingleAddressRange2005MsSymbol.PDB_ID);// API not given; writing dummy data here.@@ -3324,8 +3307,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testDefinedMultipleAddressRanges2005MsSymbol()- throws PdbException, CancelledException {+ public void testDefinedMultipleAddressRanges2005MsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(DefinedMultipleAddressRanges2005MsSymbol.PDB_ID);// API not given; writing dummy data here.@@ -3338,7 +3320,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testPeCoffSectionMsSymbol() throws PdbException, CancelledException {+ public void testPeCoffSectionMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(PeCoffSectionMsSymbol.PDB_ID);writer.putUnsignedShort(1); // Section number@@ -3357,7 +3339,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testPeCoffGroupMsSymbol() throws PdbException, CancelledException {+ public void testPeCoffGroupMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(PeCoffGroupMsSymbol.PDB_ID);writer.putUnsignedInt(0x100); // cb (probably length?)@@ -3374,7 +3356,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testExportMsSymbol() throws PdbException, CancelledException {+ public void testExportMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(ExportMsSymbol.PDB_ID);writer.putUnsignedShort(1); // Ordinal@@ -3389,7 +3371,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testIndirectCallSiteInfoMsSymbol() throws PdbException, CancelledException {+ public void testIndirectCallSiteInfoMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(IndirectCallSiteInfoMsSymbol.PDB_ID);writer.putUnsignedInt(0x1000); // Offset@@ -3404,7 +3386,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testFrameSecurityCookieMsSymbol() throws PdbException, CancelledException {+ public void testFrameSecurityCookieMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(FrameSecurityCookieMsSymbol.PDB_ID);writer.putUnsignedInt(0x1000); // Offset@@ -3420,7 +3402,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testDiscardedByLinkMsSymbol() throws PdbException, CancelledException {+ public void testDiscardedByLinkMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(DiscardedByLinkMsSymbol.PDB_ID);writer.putUnsignedInt(1); // "discarded" enum value (0, 1, 2?)@@ -3441,7 +3423,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testDefinedSingleAddressRangeMsSymbol() throws PdbException, CancelledException {+ public void testDefinedSingleAddressRangeMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(DefinedSingleAddressRangeMsSymbol.PDB_ID);writer.putUnsignedInt(1); // DIA program to eval value of the symbol@@ -3462,7 +3444,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testSubfieldDARMsSymbol() throws PdbException, CancelledException {+ public void testSubfieldDARMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(SubfieldDARMsSymbol.PDB_ID);writer.putUnsignedInt(1); // DIA program to eval value of the symbol@@ -3483,7 +3465,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testEnregisteredSymbolDARMsSymbol() throws PdbException, CancelledException {+ public void testEnregisteredSymbolDARMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(EnregisteredSymbolDARMsSymbol.PDB_ID);writer.putUnsignedShort(1); // register to hold value fo the symbol@@ -3505,7 +3487,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testFramePointerRelativeDARMsSymbol() throws PdbException, CancelledException {+ public void testFramePointerRelativeDARMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(FramePointerRelativeDARMsSymbol.PDB_ID);writer.putInt(0x1000); // offset to frame pointer@@ -3525,7 +3507,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testEnregisteredFieldOfSymbolDARMsSymbol() throws PdbException, CancelledException {+ public void testEnregisteredFieldOfSymbolDARMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(EnregisteredFieldOfSymbolDARMsSymbol.PDB_ID);writer.putUnsignedShort(1); // register holding the value of the symbol@@ -3549,8 +3531,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testFramePointerRelativeFullScopeDARMsSymbol()- throws PdbException, CancelledException {+ public void testFramePointerRelativeFullScopeDARMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(FramePointerRelativeFullScopeDARMsSymbol.PDB_ID);writer.putInt(0x0100); // offset to frame pointer@@ -3562,8 +3543,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testEnregisteredSymbolRelativeDARMsSymbol()- throws PdbException, CancelledException {+ public void testEnregisteredSymbolRelativeDARMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(EnregisteredSymbolRelativeDARMsSymbol.PDB_ID);writer.putUnsignedShort(1); // register holding base pointer of symbol@@ -3590,7 +3570,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testBuildInformationMsSymbol() throws PdbException, CancelledException {+ public void testBuildInformationMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(BuildInformationMsSymbol.PDB_ID);writer.putUnsignedInt(4096); // item id of build info@@ -3602,7 +3582,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testProcedureIdEndMsSymbol() throws PdbException, CancelledException {+ public void testProcedureIdEndMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(ProcedureIdEndMsSymbol.PDB_ID);PdbByteReader reader = new PdbByteReader(writer.get());@@ -3613,7 +3593,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testInlinedFunctionCallsiteMsSymbol() throws PdbException, CancelledException {+ public void testInlinedFunctionCallsiteMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(InlinedFunctionCallsiteMsSymbol.PDB_ID);writer.putUnsignedInt(0x1000); // pointer to the parent@@ -3633,8 +3613,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testInlinedFunctionCallsiteExtendedMsSymbol()- throws PdbException, CancelledException {+ public void testInlinedFunctionCallsiteExtendedMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(InlinedFunctionCallsiteExtendedMsSymbol.PDB_ID);writer.putUnsignedInt(0x1000); // pointer to the parent@@ -3655,7 +3634,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testInlinedFunctionEndMsSymbol() throws PdbException, CancelledException {+ public void testInlinedFunctionEndMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(InlinedFunctionEndMsSymbol.PDB_ID);PdbByteReader reader = new PdbByteReader(writer.get());@@ -3666,7 +3645,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testFileStaticMsSymbol() throws PdbException, CancelledException {+ public void testFileStaticMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(FileStaticMsSymbol.PDB_ID);writer.putUnsignedInt(4096); // type index@@ -3685,8 +3664,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testLocalDeferredProcedureCallGroupSharedMsSymbol()- throws PdbException, CancelledException {+ public void testLocalDeferredProcedureCallGroupSharedMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(LocalDeferredProcedureCallGroupSharedMsSymbol.PDB_ID);writer.putUnsignedInt(4096); // type index@@ -3706,8 +3684,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testHighLevelShaderLanguageRegDimDARMsSymbol()- throws PdbException, CancelledException {+ public void testHighLevelShaderLanguageRegDimDARMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(HighLevelShaderLanguageRegDimDARMsSymbol.PDB_ID);writer.putUnsignedShort(1); // register type from HLSLREG@@ -3739,8 +3716,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testDeferredProcedureCallPointerTagRegDimDARMsSymbol()- throws PdbException, CancelledException {+ public void testDeferredProcedureCallPointerTagRegDimDARMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(DeferredProcedureCallPointerTagRegDimDARMsSymbol.PDB_ID);writer.putUnsignedShort(1); // register type from HLSLREG@@ -3772,8 +3748,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testDeferredProcedureCallPointerTagToSymbolRecordMapMsSymbol()- throws PdbException, CancelledException {+ public void testDeferredProcedureCallPointerTagToSymbolRecordMapMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(DeferredProcedureCallPointerTagToSymbolRecordMapMsSymbol.PDB_ID);// write array of mappings from DPC pointer tag values to symbol record offsets.@@ -3791,7 +3766,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testArmSwitchTableMsSymbol() throws PdbException, CancelledException {+ public void testArmSwitchTableMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(ArmSwitchTableMsSymbol.PDB_ID);writer.putUnsignedInt(0x1000); // section-relative offset to the base for switch offsets@@ -3812,7 +3787,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testCallersMsSymbol() throws PdbException, CancelledException {+ public void testCallersMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(CallersMsSymbol.PDB_ID);int num = 3;@@ -3829,7 +3804,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testCalleesMsSymbol() throws PdbException, CancelledException {+ public void testCalleesMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(CalleesMsSymbol.PDB_ID);int num = 3;@@ -3846,8 +3821,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testProfileGuidedOptimizationDataMsSymbol()- throws PdbException, CancelledException {+ public void testProfileGuidedOptimizationDataMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(ProfileGuidedOptimizationDataMsSymbol.PDB_ID);writer.putUnsignedInt(5); // Number of times function was called (invocations)@@ -3864,7 +3838,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testHeapAllocationSiteMsSymbol() throws PdbException, CancelledException {+ public void testHeapAllocationSiteMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(HeapAllocationSiteMsSymbol.PDB_ID);writer.putUnsignedInt(0x1000); // Offset of call site@@ -3880,7 +3854,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testModuleTypeReferenceMsSymbol() throws PdbException, CancelledException {+ public void testModuleTypeReferenceMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(ModuleTypeReferenceMsSymbol.PDB_ID);// flags: 1=true at given bit offset.@@ -3905,7 +3879,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testMiniPdbReferenceMsSymbol() throws PdbException, CancelledException {+ public void testMiniPdbReferenceMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(MiniPdbReferenceMsSymbol.PDB_ID);writer.putUnsignedInt(0x10); // union of coff section and type index--context later.@@ -3928,7 +3902,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testMapToMiniPdbMsSymbol() throws PdbException, CancelledException {+ public void testMapToMiniPdbMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(MapToMiniPdbMsSymbol.PDB_ID);writer.putNullTerminatedWchartString("SourcePdbFileName");@@ -3941,8 +3915,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testExtraFrameAndProcedureInformationMsSymbol()- throws PdbException, CancelledException {+ public void testExtraFrameAndProcedureInformationMsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(ExtraFrameAndProcedureInformationMsSymbol.PDB_ID);writer.putUnsignedInt(0x1000); // total bytes in frame of procedure@@ -3990,7 +3963,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testUnknownX1166MsSymbol() throws PdbException, CancelledException {+ public void testUnknownX1166MsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(UnknownX1166MsSymbol.PDB_ID);// We have no idea of the symbol contents; just probable existence of symbol type x1166.@@ -4003,7 +3976,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testUnknownX1167MsSymbol() throws PdbException, CancelledException {+ public void testUnknownX1167MsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(UnknownX1167MsSymbol.PDB_ID);writer.putUnsignedShort(1); // unknown@@ -4020,7 +3993,7 @@ public class SymbolsTest extends AbstractGenericTest {}@Test- public void testUnknownX1168MsSymbol() throws PdbException, CancelledException {+ public void testUnknownX1168MsSymbol() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(UnknownX1168MsSymbol.PDB_ID);writer.putInt(2); // we believe this is a countdiff --git a/Ghidra/Features/PDB/src/test/java/ghidra/pdb/pdbreader/type/TypesTest.java b/Ghidra/Features/PDB/src/test/java/ghidra/pdb/pdbreader/type/TypesTest.javaindex 7fa7a3fe46..482ce320c8 100644--- a/Ghidra/Features/PDB/src/test/java/ghidra/pdb/pdbreader/type/TypesTest.java+++ b/Ghidra/Features/PDB/src/test/java/ghidra/pdb/pdbreader/type/TypesTest.java@@ -22,11 +22,11 @@ import java.math.BigInteger;import org.junit.Test;import generic.test.AbstractGenericTest;-import ghidra.pdb.*;+import ghidra.pdb.PdbByteReader;+import ghidra.pdb.PdbByteWriter;import ghidra.pdb.pdbreader.*;import ghidra.pdb.pdbreader.symbol.RegisterMsSymbol;import ghidra.util.Msg;-import ghidra.util.exception.CancelledException;//TODO: not sure if ST variety should get putPadding() or putAlign()@@ -108,7 +108,7 @@ public class TypesTest extends AbstractGenericTest {//==============================================================================================//==============================================================================================@Test- public void testMsProperty() throws PdbException {+ public void testMsProperty() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(0xffff);writer.putUnsignedShort(0x2400);@@ -131,7 +131,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testFunctionMsAttributes() throws PdbException {+ public void testFunctionMsAttributes() throws Exception {PdbByteWriter writer = new PdbByteWriter();// C++-style return UDT, is constructor, is constructor with vbase class.writer.putUnsignedByte(0x07);@@ -166,7 +166,7 @@ public class TypesTest extends AbstractGenericTest {//==============================================================================================//==============================================================================================@Test- public void testUnknownMsType() throws PdbException, CancelledException {+ public void testUnknownMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(0xffff);writer.putBytes(new byte[] { (byte) 0xfe, (byte) 0xfd, (byte) 0xfc }); // dummy data@@ -178,7 +178,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testBadMsType() throws PdbException, CancelledException {+ public void testBadMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(Modifier16MsType.PDB_ID);writer.putUnsignedShort(0x07);@@ -191,7 +191,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testModifier16MsType() throws PdbException, CancelledException {+ public void testModifier16MsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(Modifier16MsType.PDB_ID);writer.putUnsignedShort(0x07);@@ -205,7 +205,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testModifierMsType() throws PdbException, CancelledException {+ public void testModifierMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(ModifierMsType.PDB_ID);writer.putInt(4096);@@ -219,7 +219,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testPointer16MsType() throws PdbException, CancelledException {+ public void testPointer16MsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(Pointer16MsType.PDB_ID);// pointer type = 9 = base(self)@@ -242,7 +242,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testPointerMsType() throws PdbException, CancelledException {+ public void testPointerMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(PointerMsType.PDB_ID);writer.putInt(4096); // Underlying type@@ -273,7 +273,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testArray16MsType() throws PdbException, CancelledException {+ public void testArray16MsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(Array16MsType.PDB_ID);writer.putUnsignedShort(4096);@@ -289,7 +289,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testArrayStMsType() throws PdbException, CancelledException {+ public void testArrayStMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(ArrayStMsType.PDB_ID);writer.putUnsignedInt(4096);@@ -305,7 +305,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testArrayMsType() throws PdbException, CancelledException {+ public void testArrayMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(ArrayMsType.PDB_ID);writer.putUnsignedInt(4096);@@ -321,7 +321,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testStridedArrayMsType() throws PdbException, CancelledException {+ public void testStridedArrayMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(StridedArrayMsType.PDB_ID);writer.putUnsignedInt(4096);@@ -338,7 +338,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testClass16MsType() throws PdbException, CancelledException {+ public void testClass16MsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(Class16MsType.PDB_ID);writer.putUnsignedShort(2); // Count of number of elements in the class.@@ -358,7 +358,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testClassStMsType() throws PdbException, CancelledException {+ public void testClassStMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(ClassStMsType.PDB_ID);writer.putUnsignedShort(2); // Count of number of elements in the class.@@ -379,7 +379,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testClassMsType() throws PdbException, CancelledException {+ public void testClassMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(ClassMsType.PDB_ID);writer.putUnsignedShort(2); // Count of number of elements in the class.@@ -400,7 +400,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testStructure16MsType() throws PdbException, CancelledException {+ public void testStructure16MsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(Structure16MsType.PDB_ID);writer.putUnsignedShort(2); // Count of number of elements in the structure.@@ -420,7 +420,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testStructureStMsType() throws PdbException, CancelledException {+ public void testStructureStMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(StructureStMsType.PDB_ID);writer.putUnsignedShort(2); // Count of number of elements in the structure.@@ -441,7 +441,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testStructureMsType() throws PdbException, CancelledException {+ public void testStructureMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(StructureMsType.PDB_ID);writer.putUnsignedShort(2); // Count of number of elements in the structure.@@ -462,7 +462,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testInterfaceMsType() throws PdbException, CancelledException {+ public void testInterfaceMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(InterfaceMsType.PDB_ID);writer.putUnsignedShort(2); // Count of number of elements in the interface.@@ -483,7 +483,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testUnion16MsType() throws PdbException, CancelledException {+ public void testUnion16MsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(Union16MsType.PDB_ID);writer.putUnsignedShort(2); // Count of number of elements in the class.@@ -501,7 +501,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testUnionStMsType() throws PdbException, CancelledException {+ public void testUnionStMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(UnionStMsType.PDB_ID);writer.putUnsignedShort(2); // Count of number of elements in the class.@@ -520,7 +520,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testUnionMsType() throws PdbException, CancelledException {+ public void testUnionMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(UnionMsType.PDB_ID);writer.putUnsignedShort(2); // Count of number of elements in the class.@@ -539,7 +539,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testEnum16MsType() throws PdbException, CancelledException {+ public void testEnum16MsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(Enum16MsType.PDB_ID);writer.putUnsignedShort(2); // Count of number of elements in the class.@@ -557,7 +557,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testEnumStMsType() throws PdbException, CancelledException {+ public void testEnumStMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(EnumStMsType.PDB_ID);writer.putUnsignedShort(2); // Count of number of elements in the class.@@ -576,7 +576,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testEnumMsType() throws PdbException, CancelledException {+ public void testEnumMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(EnumMsType.PDB_ID);writer.putUnsignedShort(2); // Count of number of elements in the class.@@ -595,7 +595,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testProcedure16MsType() throws PdbException, CancelledException {+ public void testProcedure16MsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(Procedure16MsType.PDB_ID);writer.putUnsignedShort(4096); // Return type index.@@ -613,7 +613,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testProcedureMsType() throws PdbException, CancelledException {+ public void testProcedureMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(ProcedureMsType.PDB_ID);writer.putUnsignedInt(4096); // Return type index.@@ -631,7 +631,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testMemberFunction16MsType() throws PdbException, CancelledException {+ public void testMemberFunction16MsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(MemberFunction16MsType.PDB_ID);writer.putUnsignedShort(4096); // Return type index.@@ -654,7 +654,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testMemberFunctionMsType() throws PdbException, CancelledException {+ public void testMemberFunctionMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(MemberFunctionMsType.PDB_ID);writer.putUnsignedInt(4096); // Return type index.@@ -677,7 +677,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testVtShapeMsType() throws PdbException, CancelledException {+ public void testVtShapeMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();byte[] vtShapeMsTypeBytes = createVtShapeMsTypeBuffer();writer.putBytes(vtShapeMsTypeBytes);@@ -689,7 +689,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testVirtualFunctionTableMsType() throws PdbException, CancelledException {+ public void testVirtualFunctionTableMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(VirtualFunctionTableMsType.PDB_ID);writer.putUnsignedInt(4096); // class/struct owner of vftable@@ -712,7 +712,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testCobol016MsType() throws PdbException, CancelledException {+ public void testCobol016MsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(Cobol016MsType.PDB_ID);writer.putUnsignedShort(4096); // Parent type index.@@ -729,7 +729,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testCobol0MsType() throws PdbException, CancelledException {+ public void testCobol0MsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(Cobol0MsType.PDB_ID);writer.putUnsignedInt(4096); // Parent type index.@@ -746,7 +746,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testCobol1MsType() throws PdbException, CancelledException {+ public void testCobol1MsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(Cobol1MsType.PDB_ID);// TODO: This is made up data. API and examples are unknown.@@ -760,7 +760,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testBasicArray16MsType() throws PdbException, CancelledException {+ public void testBasicArray16MsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(BasicArray16MsType.PDB_ID);writer.putUnsignedShort(4096); // Parent type index.@@ -773,7 +773,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testBasicArrayMsType() throws PdbException, CancelledException {+ public void testBasicArrayMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(BasicArrayMsType.PDB_ID);writer.putUnsignedInt(4096); // Parent type index.@@ -786,7 +786,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testLabelMsType() throws PdbException, CancelledException {+ public void testLabelMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(LabelMsType.PDB_ID);writer.putUnsignedShort(4); // 0 = NEAR; 4 = FAR addressing mode.@@ -799,7 +799,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testNullMsType() throws PdbException, CancelledException {+ public void testNullMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(NullMsType.PDB_ID);writer.putAlign(2); // TODO: Not sure@@ -811,7 +811,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testNotTranMsType() throws PdbException, CancelledException {+ public void testNotTranMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(NotTranMsType.PDB_ID);writer.putAlign(2); // TODO: Not sure@@ -823,7 +823,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testDimensionedArray16MsType() throws PdbException, CancelledException {+ public void testDimensionedArray16MsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(DimensionedArray16MsType.PDB_ID);writer.putUnsignedShort(4096); // Underlying type index.@@ -838,7 +838,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testDimensionedArrayStMsType() throws PdbException, CancelledException {+ public void testDimensionedArrayStMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(DimensionedArrayStMsType.PDB_ID);writer.putUnsignedInt(4096); // Underlying type index.@@ -853,7 +853,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testDimensionedArrayMsType() throws PdbException, CancelledException {+ public void testDimensionedArrayMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(DimensionedArrayMsType.PDB_ID);writer.putUnsignedInt(4096); // Underlying type index.@@ -868,7 +868,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testVirtualFunctionTablePath16MsType() throws PdbException, CancelledException {+ public void testVirtualFunctionTablePath16MsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(VirtualFunctionTablePath16MsType.PDB_ID);writer.putUnsignedShort(2); // count@@ -883,7 +883,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testVirtualFunctionTablePathMsType() throws PdbException, CancelledException {+ public void testVirtualFunctionTablePathMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(VirtualFunctionTablePathMsType.PDB_ID);writer.putInt(2); // count@@ -898,7 +898,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testPrecompiledType16MsType() throws PdbException, CancelledException {+ public void testPrecompiledType16MsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(PrecompiledType16MsType.PDB_ID);writer.putUnsignedShort(8192); // a "start" type index@@ -916,7 +916,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testPrecompiledTypeStMsType() throws PdbException, CancelledException {+ public void testPrecompiledTypeStMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(PrecompiledTypeStMsType.PDB_ID);writer.putInt(8192); // a "start" type index@@ -934,7 +934,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testPrecompiledTypeMsType() throws PdbException, CancelledException {+ public void testPrecompiledTypeMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(PrecompiledTypeMsType.PDB_ID);writer.putInt(8192); // a "start" type index@@ -952,7 +952,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testEndPrecompiledTypeMsType() throws PdbException, CancelledException {+ public void testEndPrecompiledTypeMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(EndPrecompiledTypeMsType.PDB_ID);writer.putUnsignedInt(0xfedcba98L); // made-up signature@@ -965,7 +965,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testOemDefinableString16MsType() throws PdbException, CancelledException {+ public void testOemDefinableString16MsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(OemDefinableString16MsType.PDB_ID);writer.putUnsignedShort(8192); // MSFT-assigned OEM identifier.@@ -987,7 +987,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testOemDefinableStringMsType() throws PdbException, CancelledException {+ public void testOemDefinableStringMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(OemDefinableStringMsType.PDB_ID);writer.putUnsignedShort(8192); // MSFT-assigned OEM identifier.@@ -1009,7 +1009,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testOemDefinableString2MsType() throws PdbException, CancelledException {+ public void testOemDefinableString2MsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(OemDefinableString2MsType.PDB_ID);writer.putGUID(0x0c0d0e0f, (short) 0x0a0b, (short) 0x0809,@@ -1030,7 +1030,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testTypeServerStMsType() throws PdbException, CancelledException {+ public void testTypeServerStMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(TypeServerStMsType.PDB_ID);writer.putUnsignedInt(0xfedcba98); // signature@@ -1045,7 +1045,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testTypeServerMsType() throws PdbException, CancelledException {+ public void testTypeServerMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(TypeServerMsType.PDB_ID);writer.putUnsignedInt(0xfedcba98); // signature@@ -1060,7 +1060,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testTypeServer2MsType() throws PdbException, CancelledException {+ public void testTypeServer2MsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(TypeServer2MsType.PDB_ID);writer.putGUID(0x0c0d0e0f, (short) 0x0a0b, (short) 0x0809,@@ -1076,7 +1076,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testSkip16() throws PdbException, CancelledException {+ public void testSkip16() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(Skip16MsType.PDB_ID);writer.putUnsignedShort(8192); // next "valid" index@@ -1091,7 +1091,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testSkipMsType() throws PdbException, CancelledException {+ public void testSkipMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(SkipMsType.PDB_ID);writer.putInt(8192); // next "valid" index@@ -1106,7 +1106,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testArgumentsList16MsType() throws PdbException, CancelledException {+ public void testArgumentsList16MsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(ArgumentsList16MsType.PDB_ID);writer.putUnsignedShort(2); // Number of arguments.@@ -1121,7 +1121,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testArgumentsListMsType() throws PdbException, CancelledException {+ public void testArgumentsListMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(ArgumentsListMsType.PDB_ID);writer.putUnsignedInt(2); // Number of arguments.@@ -1136,7 +1136,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testSubstringListMsType() throws PdbException, CancelledException {+ public void testSubstringListMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(SubstringListMsType.PDB_ID);writer.putUnsignedInt(2); // Number of elements.@@ -1151,7 +1151,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testStringIdMsType() throws PdbException, CancelledException {+ public void testStringIdMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(StringIdMsType.PDB_ID);// Type index of SubStringListMsType (or 0 if not needed)@@ -1166,7 +1166,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testDefaultArguments16MsType() throws PdbException, CancelledException {+ public void testDefaultArguments16MsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(DefaultArguments16MsType.PDB_ID);writer.putUnsignedShort(4096); // type index of expression type.@@ -1180,7 +1180,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testDefaultArgumentsStMsType() throws PdbException, CancelledException {+ public void testDefaultArgumentsStMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(DefaultArgumentsStMsType.PDB_ID);writer.putUnsignedInt(4096); // type index of expression type.@@ -1194,7 +1194,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testDefaultArgumentsMsType() throws PdbException, CancelledException {+ public void testDefaultArgumentsMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(DefaultArgumentsMsType.PDB_ID);writer.putUnsignedInt(4096); // type index of expression type.@@ -1208,7 +1208,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testListMsType() throws PdbException, CancelledException {+ public void testListMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(ListMsType.PDB_ID);writer.putUnsignedByte(0x41);@@ -1221,7 +1221,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testFieldList16MsType() throws PdbException, CancelledException {+ public void testFieldList16MsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(FieldList16MsType.PDB_ID);byte[] baseClass16MsTypeBytes = createBaseClass16MsTypeBuffer();@@ -1245,7 +1245,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testFieldListMsType() throws PdbException, CancelledException {+ public void testFieldListMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(FieldListMsType.PDB_ID);byte[] baseClassMsTypeBytes = createBaseClassMsTypeBuffer();@@ -1269,7 +1269,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testDerivedClassList16MsType() throws PdbException, CancelledException {+ public void testDerivedClassList16MsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(DerivedClassList16MsType.PDB_ID);writer.putUnsignedShort(2); // count@@ -1284,7 +1284,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testDerivedClassListMsType() throws PdbException, CancelledException {+ public void testDerivedClassListMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(DerivedClassListMsType.PDB_ID);writer.putUnsignedInt(2); // count@@ -1299,7 +1299,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testBitfield16MsType() throws PdbException, CancelledException {+ public void testBitfield16MsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(Bitfield16MsType.PDB_ID);writer.putUnsignedByte(2); // length@@ -1314,7 +1314,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testBitfieldMsType() throws PdbException, CancelledException {+ public void testBitfieldMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(BitfieldMsType.PDB_ID);writer.putUnsignedInt(4096); // type index@@ -1329,7 +1329,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testMethodList16MsType() throws PdbException, CancelledException {+ public void testMethodList16MsType() throws Exception {PdbByteReader reader = new PdbByteReader(createMethodList16MsTypeBuffer());AbstractMsType type = typeParser.parse(reader);assertEquals(type instanceof MethodList16MsType, true);@@ -1340,7 +1340,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testMethodListMsType() throws PdbException, CancelledException {+ public void testMethodListMsType() throws Exception {PdbByteReader reader = new PdbByteReader(createMethodListMsTypeBuffer());AbstractMsType type = typeParser.parse(reader);assertEquals(type instanceof MethodListMsType, true);@@ -1350,8 +1350,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testDimensionedArrayConstBoundsUpper16MsType()- throws PdbException, CancelledException {+ public void testDimensionedArrayConstBoundsUpper16MsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(DimensionedArrayConstBoundsUpper16MsType.PDB_ID);writer.putUnsignedShort(2); // rank@@ -1367,8 +1366,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testDimensionedArrayConstBoundsUpperMsType()- throws PdbException, CancelledException {+ public void testDimensionedArrayConstBoundsUpperMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(DimensionedArrayConstBoundsUpperMsType.PDB_ID);writer.putInt(4096); // type index@@ -1383,8 +1381,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testDimensionedArrayConstBoundsLowerUpper16MsType()- throws PdbException, CancelledException {+ public void testDimensionedArrayConstBoundsLowerUpper16MsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(DimensionedArrayConstBoundsLowerUpper16MsType.PDB_ID);writer.putUnsignedShort(2); // rank@@ -1400,8 +1397,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testDimensionedArrayConstBoundsLowerUpperMsType()- throws PdbException, CancelledException {+ public void testDimensionedArrayConstBoundsLowerUpperMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(DimensionedArrayConstBoundsLowerUpperMsType.PDB_ID);writer.putInt(4096); // type index@@ -1416,8 +1412,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testDimensionedArrayVarBoundsUpper16MsType()- throws PdbException, CancelledException {+ public void testDimensionedArrayVarBoundsUpper16MsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(DimensionedArrayVarBoundsUpper16MsType.PDB_ID);writer.putUnsignedShort(2); // rank@@ -1434,7 +1429,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testDimensionedArrayVarBoundsUpperMsType() throws PdbException, CancelledException {+ public void testDimensionedArrayVarBoundsUpperMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(DimensionedArrayVarBoundsUpperMsType.PDB_ID);writer.putInt(2); // rank@@ -1450,8 +1445,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testDimensionedArrayVarBoundsLowerUpper16MsType()- throws PdbException, CancelledException {+ public void testDimensionedArrayVarBoundsLowerUpper16MsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(DimensionedArrayVarBoundsLowerUpper16MsType.PDB_ID);writer.putUnsignedShort(2); // rank@@ -1469,8 +1463,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testDimensionedArrayVarBoundsLowerUpperMsType()- throws PdbException, CancelledException {+ public void testDimensionedArrayVarBoundsLowerUpperMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(DimensionedArrayVarBoundsLowerUpperMsType.PDB_ID);writer.putInt(2); // rank@@ -1488,7 +1481,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testReferencedSymbolMsType() throws PdbException, CancelledException {+ public void testReferencedSymbolMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();byte[] symbolBytes = createReferencedSymbolMsTypeBuffer();writer.putBytes(symbolBytes);@@ -1500,7 +1493,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testBaseClass16MsType() throws PdbException, CancelledException {+ public void testBaseClass16MsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();byte[] symbolBytes = createBaseClass16MsTypeBuffer();writer.putBytes(symbolBytes);@@ -1513,7 +1506,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testBaseClassMsType() throws PdbException, CancelledException {+ public void testBaseClassMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();byte[] symbolBytes = createBaseClassMsTypeBuffer();writer.putBytes(symbolBytes);@@ -1526,7 +1519,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testBaseInterfaceMsType() throws PdbException, CancelledException {+ public void testBaseInterfaceMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(BaseInterfaceMsType.PDB_ID);int attributes = 3;@@ -1545,7 +1538,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testVirtualBaseClass16MsType() throws PdbException, CancelledException {+ public void testVirtualBaseClass16MsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(VirtualBaseClass16MsType.PDB_ID);writer.putUnsignedShort(4096); // type index of direct virtual base class@@ -1569,7 +1562,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testVirtualBaseClassMsType() throws PdbException, CancelledException {+ public void testVirtualBaseClassMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(VirtualBaseClassMsType.PDB_ID);int attributes = 3;@@ -1593,7 +1586,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testIndirectVirtualBaseClass16MsType() throws PdbException, CancelledException {+ public void testIndirectVirtualBaseClass16MsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(IndirectVirtualBaseClass16MsType.PDB_ID);writer.putUnsignedShort(4096); // type index of direct virtual base class@@ -1617,7 +1610,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testIndirectVirtualBaseClassMsType() throws PdbException, CancelledException {+ public void testIndirectVirtualBaseClassMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(IndirectVirtualBaseClassMsType.PDB_ID);int attributes = 3;@@ -1641,7 +1634,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testEnumerateStMsType() throws PdbException, CancelledException {+ public void testEnumerateStMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(EnumerateStMsType.PDB_ID);int attributes = 3;@@ -1660,7 +1653,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testEnumerateMsType() throws PdbException, CancelledException {+ public void testEnumerateMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(EnumerateMsType.PDB_ID);int attributes = 3;@@ -1679,7 +1672,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testFriendFunction16MsType() throws PdbException, CancelledException {+ public void testFriendFunction16MsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(FriendFunction16MsType.PDB_ID);writer.putUnsignedShort(4096); // type index of friend function.@@ -1694,7 +1687,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testFriendFunctionStMsType() throws PdbException, CancelledException {+ public void testFriendFunctionStMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(FriendFunctionStMsType.PDB_ID);writer.putBytes(new byte[] { 0x00, 0x00 }); // padding@@ -1710,7 +1703,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testFriendFunctionMsType() throws PdbException, CancelledException {+ public void testFriendFunctionMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(FriendFunctionMsType.PDB_ID);writer.putBytes(new byte[] { 0x00, 0x00 }); // padding@@ -1726,7 +1719,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testIndex16MsType() throws PdbException, CancelledException {+ public void testIndex16MsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(Index16MsType.PDB_ID);writer.putUnsignedShort(4096); // type index of friend function.@@ -1738,7 +1731,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testIndexMsType() throws PdbException, CancelledException {+ public void testIndexMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(IndexMsType.PDB_ID);writer.putBytes(new byte[] { 0x00, 0x00 }); // padding@@ -1751,7 +1744,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testMember16MsType() throws PdbException, CancelledException {+ public void testMember16MsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();byte[] symbolBytes = createMember16MsTypeBuffer();writer.putBytes(symbolBytes);@@ -1765,7 +1758,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testMemberStMsType() throws PdbException, CancelledException {+ public void testMemberStMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();byte[] symbolBytes = createMemberStMsTypeBuffer();writer.putBytes(symbolBytes);@@ -1779,7 +1772,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testMemberMsType() throws PdbException, CancelledException {+ public void testMemberMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();byte[] symbolBytes = createMemberMsTypeBuffer();writer.putBytes(symbolBytes);@@ -1793,7 +1786,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testStaticMember16MsType() throws PdbException, CancelledException {+ public void testStaticMember16MsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(StaticMember16MsType.PDB_ID);writer.putUnsignedShort(4096); // type index of field.@@ -1814,7 +1807,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testStaticMemberStMsType() throws PdbException, CancelledException {+ public void testStaticMemberStMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(StaticMemberStMsType.PDB_ID);int attributes = 3;@@ -1835,7 +1828,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testStaticMemberMsType() throws PdbException, CancelledException {+ public void testStaticMemberMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(StaticMemberMsType.PDB_ID);int attributes = 3;@@ -1856,7 +1849,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testOverloadedMethod16MsType() throws PdbException, CancelledException {+ public void testOverloadedMethod16MsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(OverloadedMethod16MsType.PDB_ID);int count =@@ -1875,7 +1868,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testOverloadedMethodStMsType() throws PdbException, CancelledException {+ public void testOverloadedMethodStMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(OverloadedMethodStMsType.PDB_ID);int count = ((AbstractMethodListMsType) pdb.getTypeRecord(methodListMsType1)).getListSize();@@ -1893,7 +1886,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testOverloadedMethodMsType() throws PdbException, CancelledException {+ public void testOverloadedMethodMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(OverloadedMethodMsType.PDB_ID);int count = ((AbstractMethodListMsType) pdb.getTypeRecord(methodListMsType1)).getListSize();@@ -1911,7 +1904,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testNestedType16MsType() throws PdbException, CancelledException {+ public void testNestedType16MsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(NestedType16MsType.PDB_ID);writer.putUnsignedShort(4096); // type index of nested type@@ -1925,7 +1918,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testNestedTypeStMsType() throws PdbException, CancelledException {+ public void testNestedTypeStMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(NestedTypeStMsType.PDB_ID);writer.putBytes(new byte[] { 0x00, 0x00 }); // padding@@ -1940,7 +1933,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testNestedTypeMsType() throws PdbException, CancelledException {+ public void testNestedTypeMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(NestedTypeMsType.PDB_ID);writer.putBytes(new byte[] { 0x00, 0x00 }); // padding@@ -1955,7 +1948,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testNestedTypeExtStMsType() throws PdbException, CancelledException {+ public void testNestedTypeExtStMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(NestedTypeExtStMsType.PDB_ID);int attributes = 3;@@ -1976,7 +1969,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testNestedTypeExtMsType() throws PdbException, CancelledException {+ public void testNestedTypeExtMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(NestedTypeExtMsType.PDB_ID);int attributes = 3;@@ -1997,7 +1990,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testVirtualFunctionTablePointer16MsType() throws PdbException, CancelledException {+ public void testVirtualFunctionTablePointer16MsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(VirtualFunctionTablePointer16MsType.PDB_ID);writer.putUnsignedShort(4096); // type index of pointer@@ -2010,7 +2003,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testVirtualFunctionTablePointerMsType() throws PdbException, CancelledException {+ public void testVirtualFunctionTablePointerMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(VirtualFunctionTablePointerMsType.PDB_ID);writer.putBytes(new byte[] { 0x00, 0x00 }); // padding@@ -2024,7 +2017,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testFriendClass16MsType() throws PdbException, CancelledException {+ public void testFriendClass16MsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(FriendClass16MsType.PDB_ID);writer.putUnsignedShort(4096); // type index of pointer@@ -2037,7 +2030,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testFriendClassMsType() throws PdbException, CancelledException {+ public void testFriendClassMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(FriendClassMsType.PDB_ID);writer.putBytes(new byte[] { 0x00, 0x00 }); // padding@@ -2051,7 +2044,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testOneMethod16MsType() throws PdbException, CancelledException {+ public void testOneMethod16MsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(OneMethod16MsType.PDB_ID);int procedureRecordNumber = 4096;@@ -2075,7 +2068,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testOneMethodStMsType() throws PdbException, CancelledException {+ public void testOneMethodStMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(OneMethodStMsType.PDB_ID);int procedureRecordNumber = 4096;@@ -2099,7 +2092,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testOneMethodMsType() throws PdbException, CancelledException {+ public void testOneMethodMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(OneMethodMsType.PDB_ID);int procedureRecordNumber = 4096;@@ -2123,8 +2116,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testVirtualFunctionTablePointerWithOffset16MsType()- throws PdbException, CancelledException {+ public void testVirtualFunctionTablePointerWithOffset16MsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(VirtualFunctionTablePointerWithOffset16MsType.PDB_ID);writer.putUnsignedShort(4096); // type index of pointer@@ -2138,8 +2130,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testVirtualFunctionTablePointerWithOffsetMsType()- throws PdbException, CancelledException {+ public void testVirtualFunctionTablePointerWithOffsetMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(VirtualFunctionTablePointerWithOffsetMsType.PDB_ID);writer.putBytes(new byte[] { 0x00, 0x00 }); // padding@@ -2154,7 +2145,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testMemberModifyStMsType() throws PdbException, CancelledException {+ public void testMemberModifyStMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(MemberModifyStMsType.PDB_ID);int accessVal = 3;@@ -2174,7 +2165,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testMemberModifyMsType() throws PdbException, CancelledException {+ public void testMemberModifyMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(MemberModifyMsType.PDB_ID);int accessVal = 3;@@ -2194,7 +2185,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testManagedStMsType() throws PdbException, CancelledException {+ public void testManagedStMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(ManagedStMsType.PDB_ID);writer.putByteLengthPrefixedUtf8String("managedTypeName");@@ -2207,7 +2198,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testManagedMsType() throws PdbException, CancelledException {+ public void testManagedMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(ManagedMsType.PDB_ID);writer.putNullTerminatedUtf8String("managedTypeName");@@ -2220,7 +2211,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testAliasStMsType() throws PdbException, CancelledException {+ public void testAliasStMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(AliasStMsType.PDB_ID);writer.putInt(4096); // underlying type index@@ -2234,7 +2225,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testAliasMsType() throws PdbException, CancelledException {+ public void testAliasMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(AliasMsType.PDB_ID);writer.putInt(4096); // underlying type index@@ -2248,7 +2239,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testHighLevelShaderLanguageMsType() throws PdbException, CancelledException {+ public void testHighLevelShaderLanguageMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(HighLevelShaderLanguageMsType.PDB_ID);writer.putInt(4096); // subtype index (0 if none?)@@ -2272,7 +2263,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testModifierExMsType() throws PdbException, CancelledException {+ public void testModifierExMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(ModifierExMsType.PDB_ID);writer.putInt(4096); // modified type index@@ -2297,7 +2288,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testVectorMsType() throws PdbException, CancelledException {+ public void testVectorMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(VectorMsType.PDB_ID);writer.putInt(4096); // element type index@@ -2320,7 +2311,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testMatrixMsType() throws PdbException, CancelledException {+ public void testMatrixMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(MatrixMsType.PDB_ID);writer.putInt(4096); // element type index@@ -2345,7 +2336,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testFunctionIdMsType() throws PdbException, CancelledException {+ public void testFunctionIdMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(FunctionIdMsType.PDB_ID);writer.putInt(4096); // scope type index@@ -2360,7 +2351,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testMemberFunctionIdMsType() throws PdbException, CancelledException {+ public void testMemberFunctionIdMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(MemberFunctionIdMsType.PDB_ID);writer.putInt(4096); // parent type index@@ -2375,7 +2366,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testUserDefinedTypeSourceAndLineMsType() throws PdbException, CancelledException {+ public void testUserDefinedTypeSourceAndLineMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(UserDefinedTypeSourceAndLineMsType.PDB_ID);writer.putInt(4096); // user defined type, type index@@ -2393,8 +2384,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testUserDefinedTypeModuleSourceAndLineMsType()- throws PdbException, CancelledException {+ public void testUserDefinedTypeModuleSourceAndLineMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(UserDefinedTypeModuleSourceAndLineMsType.PDB_ID);writer.putInt(4096); // user defined type, type index@@ -2411,7 +2401,7 @@ public class TypesTest extends AbstractGenericTest {}@Test- public void testBuildInfoMsType() throws PdbException, CancelledException {+ public void testBuildInfoMsType() throws Exception {PdbByteWriter writer = new PdbByteWriter();writer.putUnsignedShort(BuildInfoMsType.PDB_ID);writer.putUnsignedShort(5); // number of arguments