mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 09:49:23 +02:00
Fix spelling errors
This commit is contained in:
parent
4361f39fe2
commit
a5efecea84
78 changed files with 95 additions and 95 deletions
|
@ -93,7 +93,7 @@ This file was changed on July 4th, 2019.
|
||||||
|
|
||||||
IN_GLIBCPP_V3
|
IN_GLIBCPP_V3
|
||||||
If defined, this file defines only __cxa_demangle() and
|
If defined, this file defines only __cxa_demangle() and
|
||||||
__gcclibcxx_demangle_callback(), and no other publically visible
|
__gcclibcxx_demangle_callback(), and no other publicly visible
|
||||||
functions or variables.
|
functions or variables.
|
||||||
|
|
||||||
STANDALONE_DEMANGLER
|
STANDALONE_DEMANGLER
|
||||||
|
|
|
@ -2651,7 +2651,7 @@ iterate_demangle_function (struct work_stuff *work, const char **mangled,
|
||||||
/* Iterate over occurrences of __, allowing names and types to have a
|
/* Iterate over occurrences of __, allowing names and types to have a
|
||||||
"__" sequence in them. We must start with the first (not the last)
|
"__" sequence in them. We must start with the first (not the last)
|
||||||
occurrence, since "__" most often occur between independent mangled
|
occurrence, since "__" most often occur between independent mangled
|
||||||
parts, hence starting at the last occurence inside a signature
|
parts, hence starting at the last occurrence inside a signature
|
||||||
might get us a "successful" demangling of the signature. */
|
might get us a "successful" demangling of the signature. */
|
||||||
|
|
||||||
while (scan[2])
|
while (scan[2])
|
||||||
|
|
|
@ -97,7 +97,7 @@ public class CallAnotherScriptForAllPrograms extends GhidraScript {
|
||||||
runScript(SUBSCRIPT_NAME, newState);
|
runScript(SUBSCRIPT_NAME, newState);
|
||||||
}
|
}
|
||||||
catch (Exception e) {
|
catch (Exception e) {
|
||||||
printerr("ERROR! Exception occured while processing file: " +
|
printerr("ERROR! Exception occurred while processing file: " +
|
||||||
program.getDomainFile().getPathname());
|
program.getDomainFile().getPathname());
|
||||||
printerr(" " + e.getMessage());
|
printerr(" " + e.getMessage());
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
|
|
|
@ -179,7 +179,7 @@
|
||||||
CParserPlugin.out file produced in your home directory.<BR>
|
CParserPlugin.out file produced in your home directory.<BR>
|
||||||
</P>
|
</P>
|
||||||
|
|
||||||
<P>Use the Line numbers to determine where in the file the parse error occured.<BR>
|
<P>Use the Line numbers to determine where in the file the parse error occurred.<BR>
|
||||||
</P>
|
</P>
|
||||||
|
|
||||||
<P>The <SPAN style="font-style: italic; font-weight: bold;">last valid data parsed</SPAN>
|
<P>The <SPAN style="font-style: italic; font-weight: bold;">last valid data parsed</SPAN>
|
||||||
|
|
|
@ -147,7 +147,7 @@
|
||||||
<TD><I><B>Comment Prefix</B></I><BR>
|
<TD><I><B>Comment Prefix</B></I><BR>
|
||||||
</TD>
|
</TD>
|
||||||
|
|
||||||
<TD valign="top">the string to append on the begining of comments<BR>
|
<TD valign="top">the string to append on the beginning of comments<BR>
|
||||||
</TD>
|
</TD>
|
||||||
</TR>
|
</TR>
|
||||||
</TBODY>
|
</TBODY>
|
||||||
|
|
|
@ -295,7 +295,7 @@
|
||||||
|
|
||||||
<TD valign="top">A memory address "label" identifying a memory reference destination
|
<TD valign="top">A memory address "label" identifying a memory reference destination
|
||||||
which is located at an offcut address within a code unit. These labels only
|
which is located at an offcut address within a code unit. These labels only
|
||||||
appears within the listing to flag the existance of a hidden offcut label.
|
appears within the listing to flag the existence of a hidden offcut label.
|
||||||
Double-clicking the corresponding offcut XRef will take you to the code unit
|
Double-clicking the corresponding offcut XRef will take you to the code unit
|
||||||
which has the offcut reference,<BR>
|
which has the offcut reference,<BR>
|
||||||
</TD>
|
</TD>
|
||||||
|
@ -1343,7 +1343,7 @@
|
||||||
|
|
||||||
<P>A code unit selection from the CodeBrowser Listing may be dragged and dropped onto the
|
<P>A code unit selection from the CodeBrowser Listing may be dragged and dropped onto the
|
||||||
<B><I>References Editor</I></B> panel to create <A href="#memRefs">Memory References</A> in bulk
|
<B><I>References Editor</I></B> panel to create <A href="#memRefs">Memory References</A> in bulk
|
||||||
for the current Source. This capability must be used carefully since a seperate reference
|
for the current Source. This capability must be used carefully since a separate reference
|
||||||
will be created "to" every code unit contained within the selection. <BR>
|
will be created "to" every code unit contained within the selection. <BR>
|
||||||
</P>
|
</P>
|
||||||
|
|
||||||
|
|
|
@ -65,7 +65,7 @@ snapshot view.<br>
|
||||||
<blockquote>
|
<blockquote>
|
||||||
<p>Snapshot views can be docked with normal views or they can live in
|
<p>Snapshot views can be docked with normal views or they can live in
|
||||||
their own windows. Global menu and toolbar actions have been
|
their own windows. Global menu and toolbar actions have been
|
||||||
changed to accomodate snapshot views. Global actions now operate
|
changed to accommodate snapshot views. Global actions now operate
|
||||||
on whatever component has focus (the component whose header bar is
|
on whatever component has focus (the component whose header bar is
|
||||||
colored blue). For example, if you have the connected <span
|
colored blue). For example, if you have the connected <span
|
||||||
style="font-style: italic;">Listing View</span> and a snapshot <span
|
style="font-style: italic;">Listing View</span> and a snapshot <span
|
||||||
|
|
|
@ -99,7 +99,7 @@ public class CreateStructureInStructureCmd extends AbstractCreateStructureCmd{
|
||||||
}
|
}
|
||||||
Structure originalStructure = (Structure) parentDataType;
|
Structure originalStructure = (Structure) parentDataType;
|
||||||
|
|
||||||
// clear and initialize the orignal structure and then get the new
|
// clear and initialize the original structure and then get the new
|
||||||
// data
|
// data
|
||||||
clearStruct(originalStructure, comp1.getParentOffset(), dataLength );
|
clearStruct(originalStructure, comp1.getParentOffset(), dataLength );
|
||||||
originalStructure.replace(comp1.getComponentIndex(),
|
originalStructure.replace(comp1.getComponentIndex(),
|
||||||
|
|
|
@ -138,7 +138,7 @@ public class EntryPointAnalyzer extends AbstractAnalyzer {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Process the items on the do later set. If doing block analysis, then this is the initial
|
* Process the items on the do later set. If doing block analysis, then this is the initial
|
||||||
* analysis of the program, so schedule the do later set after some analysis has occured.
|
* analysis of the program, so schedule the do later set after some analysis has occurred.
|
||||||
*
|
*
|
||||||
* @param program - this program
|
* @param program - this program
|
||||||
* @param monitor - monitor
|
* @param monitor - monitor
|
||||||
|
@ -313,7 +313,7 @@ public class EntryPointAnalyzer extends AbstractAnalyzer {
|
||||||
}
|
}
|
||||||
|
|
||||||
// It isn't smart enough to pick up
|
// It isn't smart enough to pick up
|
||||||
// valid wierd code. Need to look at things that are marked as an entry point
|
// valid weird code. Need to look at things that are marked as an entry point
|
||||||
// to see if we should disassemble...
|
// to see if we should disassemble...
|
||||||
// Save the bad ones to do last.
|
// Save the bad ones to do last.
|
||||||
Symbol symbol = symbolTable.getPrimarySymbol(entry);
|
Symbol symbol = symbolTable.getPrimarySymbol(entry);
|
||||||
|
|
|
@ -346,7 +346,7 @@ public final class LanguageProviderPlugin extends Plugin implements FrontEndable
|
||||||
catch (InvocationTargetException e) {
|
catch (InvocationTargetException e) {
|
||||||
Throwable t = e.getCause();
|
Throwable t = e.getCause();
|
||||||
Msg.showError(this, tool.getToolFrame(), "Tool Launch Failed",
|
Msg.showError(this, tool.getToolFrame(), "Tool Launch Failed",
|
||||||
"An error occured while attempting to launch your default tool!", t);
|
"An error occurred while attempting to launch your default tool!", t);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -695,7 +695,7 @@ class SymbolTableModel extends AddressBasedTableModel<Symbol> {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getColumnDescription() {
|
public String getColumnDescription() {
|
||||||
return "The orignal (pre-demangled) import name (External Symbols Only)";
|
return "The original (pre-demangled) import name (External Symbols Only)";
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -216,7 +216,7 @@ public class GenerateOldLanguagePlugin extends Plugin implements FrontEndable {
|
||||||
}
|
}
|
||||||
catch (IOException e) {
|
catch (IOException e) {
|
||||||
Msg.showError(this, panel, "IO Error",
|
Msg.showError(this, panel, "IO Error",
|
||||||
"Error occured while generating old language file:\n" + file, e);
|
"Error occurred while generating old language file:\n" + file, e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
@ -317,7 +317,7 @@ public class GenerateOldLanguagePlugin extends Plugin implements FrontEndable {
|
||||||
}
|
}
|
||||||
catch (IOException e) {
|
catch (IOException e) {
|
||||||
Msg.showError(this, panel, "IO Error",
|
Msg.showError(this, panel, "IO Error",
|
||||||
"Error occured while generating translator file:\n" + transFile, e);
|
"Error occurred while generating translator file:\n" + transFile, e);
|
||||||
}
|
}
|
||||||
close();
|
close();
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,7 +46,7 @@ public interface ProgramDropProvider {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Adds the dropped data to this drop service.
|
* Adds the dropped data to this drop service.
|
||||||
* @param contextObj The object where the drop occured
|
* @param contextObj The object where the drop occurred
|
||||||
* @param data The actual data dropped
|
* @param data The actual data dropped
|
||||||
* @param flavor The selected data flavor
|
* @param flavor The selected data flavor
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -156,7 +156,7 @@ public interface ElfLoadHelper {
|
||||||
* Get the program image base offset adjustment. The value returned reflects the
|
* Get the program image base offset adjustment. The value returned reflects the
|
||||||
* actual program image base minus the default image base (see {@link ElfHeader#getImageBase()}.
|
* actual program image base minus the default image base (see {@link ElfHeader#getImageBase()}.
|
||||||
* This will generally be zero (0), unless the program image base differs from the
|
* This will generally be zero (0), unless the program image base differs from the
|
||||||
* default. It may be neccessary to add this value to any pre-linked address values
|
* default. It may be necessary to add this value to any pre-linked address values
|
||||||
* such as those contained with the dynamic table. (Applies to default address space only)
|
* such as those contained with the dynamic table. (Applies to default address space only)
|
||||||
* @return image base adjustment value
|
* @return image base adjustment value
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1214,7 +1214,7 @@ public class HeadlessAnalyzer {
|
||||||
if (!readOnlyFile) { // can't change anything if read-only file
|
if (!readOnlyFile) { // can't change anything if read-only file
|
||||||
|
|
||||||
// Undo checkout of it is still checked-out and either the file is to be
|
// Undo checkout of it is still checked-out and either the file is to be
|
||||||
// deleted, or we just checked it out and file changes have been comitted
|
// deleted, or we just checked it out and file changes have been committed
|
||||||
if (domFile.isCheckedOut()) {
|
if (domFile.isCheckedOut()) {
|
||||||
if (!keepFile ||
|
if (!keepFile ||
|
||||||
(terminateCheckoutWhenDone && !domFile.modifiedSinceCheckout())) {
|
(terminateCheckoutWhenDone && !domFile.modifiedSinceCheckout())) {
|
||||||
|
|
|
@ -162,7 +162,7 @@ class LibraryHints {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
catch (Exception e) {
|
catch (Exception e) {
|
||||||
Msg.error(this, "Error occured while parsing hints file: " + hintsFile, e);
|
Msg.error(this, "Error occurred while parsing hints file: " + hintsFile, e);
|
||||||
}
|
}
|
||||||
finally {
|
finally {
|
||||||
if (is != null) {
|
if (is != null) {
|
||||||
|
|
|
@ -273,7 +273,7 @@ public class FunctionSignatureParser {
|
||||||
}
|
}
|
||||||
|
|
||||||
// The following regex pattern attempts to isolate the parameter name from
|
// The following regex pattern attempts to isolate the parameter name from
|
||||||
// the begining of a parameter specification. Since the name is optional,
|
// the beginning of a parameter specification. Since the name is optional,
|
||||||
// additional steps must be taken in code to ensure that the trailing word of
|
// additional steps must be taken in code to ensure that the trailing word of
|
||||||
// a multi-word type-specified is not treated as a name (e.g., unsigned long).
|
// a multi-word type-specified is not treated as a name (e.g., unsigned long).
|
||||||
//
|
//
|
||||||
|
|
|
@ -39,7 +39,7 @@ public class ErrorFieldMouseHandler implements FieldMouseHandlerExtension {
|
||||||
}
|
}
|
||||||
ErrorListingField errorField = (ErrorListingField) clickedObject;
|
ErrorListingField errorField = (ErrorListingField) clickedObject;
|
||||||
String fieldName = errorField.getFieldFactory().getFieldName();
|
String fieldName = errorField.getFieldFactory().getFieldName();
|
||||||
Msg.showError(this, null, "Listing Field Exception", "Exception occured while rendering '" +
|
Msg.showError(this, null, "Listing Field Exception", "Exception occurred while rendering '" +
|
||||||
fieldName + "' field", errorField.getThrowable());
|
fieldName + "' field", errorField.getThrowable());
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -1034,7 +1034,7 @@ public class FlatProgramAPI {
|
||||||
public final Function getFunctionBefore(Address address) {
|
public final Function getFunctionBefore(Address address) {
|
||||||
FunctionIterator iterator = currentProgram.getListing().getFunctions(address, false);
|
FunctionIterator iterator = currentProgram.getListing().getFunctions(address, false);
|
||||||
// skip over this function.
|
// skip over this function.
|
||||||
// This is wierd, but if you have multiple overlay spaces or address spaces,
|
// This is weird, but if you have multiple overlay spaces or address spaces,
|
||||||
// you WILL miss functions by not using the iterator and doing address math yourself.
|
// you WILL miss functions by not using the iterator and doing address math yourself.
|
||||||
if (!iterator.hasNext()) {
|
if (!iterator.hasNext()) {
|
||||||
return null;
|
return null;
|
||||||
|
@ -1074,7 +1074,7 @@ public class FlatProgramAPI {
|
||||||
public final Function getFunctionAfter(Address address) {
|
public final Function getFunctionAfter(Address address) {
|
||||||
FunctionIterator iterator = currentProgram.getListing().getFunctions(address, true);
|
FunctionIterator iterator = currentProgram.getListing().getFunctions(address, true);
|
||||||
// skip over this function.
|
// skip over this function.
|
||||||
// This is wierd, but if you have multiple overlay spaces or address spaces,
|
// This is weird, but if you have multiple overlay spaces or address spaces,
|
||||||
// you WILL miss functions by not using the iterator and doing address math yourself.
|
// you WILL miss functions by not using the iterator and doing address math yourself.
|
||||||
if (!iterator.hasNext()) {
|
if (!iterator.hasNext()) {
|
||||||
return null;
|
return null;
|
||||||
|
|
|
@ -1191,7 +1191,7 @@ public abstract class ProcessorEmulatorTestAdapter extends TestCase implements E
|
||||||
|
|
||||||
if (pass < 0 || fail < 0) {
|
if (pass < 0 || fail < 0) {
|
||||||
failTest(testRunner,
|
failTest(testRunner,
|
||||||
"ERROR Invalid pass/fail counts - test may not have run properly or improper TestInfo structure updates occured: pass " +
|
"ERROR Invalid pass/fail counts - test may not have run properly or improper TestInfo structure updates occurred: pass " +
|
||||||
pass + " fail " + fail);
|
pass + " fail " + fail);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1243,8 +1243,8 @@ public abstract class ProcessorEmulatorTestAdapter extends TestCase implements E
|
||||||
|
|
||||||
}
|
}
|
||||||
catch (Exception e) {
|
catch (Exception e) {
|
||||||
log(testGroup, "Exception occured during test", e);
|
log(testGroup, "Exception occurred during test", e);
|
||||||
fail("Exception occured during test: " + e.getMessage());
|
fail("Exception occurred during test: " + e.getMessage());
|
||||||
}
|
}
|
||||||
finally {
|
finally {
|
||||||
if (testRunner != null) {
|
if (testRunner != null) {
|
||||||
|
@ -1390,7 +1390,7 @@ public abstract class ProcessorEmulatorTestAdapter extends TestCase implements E
|
||||||
catch (UsrException e) {
|
catch (UsrException e) {
|
||||||
if (inDelaySlot) {
|
if (inDelaySlot) {
|
||||||
log(testRunner.getTestGroup(),
|
log(testRunner.getTestGroup(),
|
||||||
"Instruction parse error occured in delay-slot at: " +
|
"Instruction parse error occurred in delay-slot at: " +
|
||||||
memBuf.getAddress().toString(true));
|
memBuf.getAddress().toString(true));
|
||||||
}
|
}
|
||||||
// parse failed
|
// parse failed
|
||||||
|
|
|
@ -654,7 +654,7 @@ public class AutoTableDisassemblerTest extends AbstractGhidraHeadedIntegrationTe
|
||||||
}
|
}
|
||||||
|
|
||||||
for (String addr : addrs) {
|
for (String addr : addrs) {
|
||||||
assertTrue("Table model does not contain address table adress: " + addr,
|
assertTrue("Table model does not contain address table address: " + addr,
|
||||||
modelAddresses.contains(addr));
|
modelAddresses.contains(addr));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -417,7 +417,7 @@ public class ScalarSearchTest extends AbstractGhidraHeadedIntegrationTest {
|
||||||
Address codeUnitAddress = rowObject.getAddress();
|
Address codeUnitAddress = rowObject.getAddress();
|
||||||
if (codeUnitAddress.toString().equals(DATA_STRING_ADDRESS)) {
|
if (codeUnitAddress.toString().equals(DATA_STRING_ADDRESS)) {
|
||||||
Data stringData = program.getListing().getDataAt(codeUnitAddress);
|
Data stringData = program.getListing().getDataAt(codeUnitAddress);
|
||||||
fail("Table not created correctly: found the occurence of data string " +
|
fail("Table not created correctly: found the occurrence of data string " +
|
||||||
stringData.getValue().toString() + " at address: " + codeUnitAddress);
|
stringData.getValue().toString() + " at address: " + codeUnitAddress);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -98,7 +98,7 @@ public class TransactionLockingTaskMonitorTest extends AbstractGhidraHeadedInteg
|
||||||
// wait for all thread to terminate
|
// wait for all thread to terminate
|
||||||
coordinationEndLatch.await(2, TimeUnit.SECONDS);
|
coordinationEndLatch.await(2, TimeUnit.SECONDS);
|
||||||
|
|
||||||
assertNull("Error occured in transaction thread", throwable);
|
assertNull("Error occurred in transaction thread", throwable);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -146,7 +146,7 @@ public class TransactionLockingTaskMonitorTest extends AbstractGhidraHeadedInteg
|
||||||
// wait for all thread to terminate
|
// wait for all thread to terminate
|
||||||
coordinationEndLatch.await(2, TimeUnit.SECONDS);
|
coordinationEndLatch.await(2, TimeUnit.SECONDS);
|
||||||
|
|
||||||
assertNull("Error occured in transaction thread", throwable);
|
assertNull("Error occurred in transaction thread", throwable);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,7 +24,7 @@ import java.util.HashSet;
|
||||||
public class Face extends DittedBitSequence implements Comparable<Face> {
|
public class Face extends DittedBitSequence implements Comparable<Face> {
|
||||||
private int weight; //Typically represents the number of data points this face contains.
|
private int weight; //Typically represents the number of data points this face contains.
|
||||||
private double dit_ratio; // 1 / (2 to the number of dits)
|
private double dit_ratio; // 1 / (2 to the number of dits)
|
||||||
private HashSet<Face> children; //A set of faces this face contains. (Used in the heirarchy of ditted pattern finding.)
|
private HashSet<Face> children; //A set of faces this face contains. (Used in the hierarchy of ditted pattern finding.)
|
||||||
public String strID; //A unique string ID. Two faces with the same ID ought to be thought of as the same.
|
public String strID; //A unique string ID. Two faces with the same ID ought to be thought of as the same.
|
||||||
private Pair<Face, Face> joinOf; //Keep track of what pair of faces made this face (if it was created as a join).
|
private Pair<Face, Face> joinOf; //Keep track of what pair of faces made this face (if it was created as a join).
|
||||||
|
|
||||||
|
@ -47,7 +47,7 @@ public class Face extends DittedBitSequence implements Comparable<Face> {
|
||||||
this.children = new HashSet<Face>();
|
this.children = new HashSet<Face>();
|
||||||
this.joinOf = new Pair<Face, Face>(f1, f2); //We'll need to know *how* this edge was made.
|
this.joinOf = new Pair<Face, Face>(f1, f2); //We'll need to know *how* this edge was made.
|
||||||
|
|
||||||
//Set up the children for tracking heirarchy.
|
//Set up the children for tracking hierarchy.
|
||||||
for (Face kid : patterns) {
|
for (Face kid : patterns) {
|
||||||
DittedBitSequence temp = new DittedBitSequence(this, kid);
|
DittedBitSequence temp = new DittedBitSequence(this, kid);
|
||||||
if (temp.getNumUncertainBits() == this.getNumUncertainBits()) { //Check to see if kid is a subface of this.
|
if (temp.getNumUncertainBits() == this.getNumUncertainBits()) { //Check to see if kid is a subface of this.
|
||||||
|
|
|
@ -35,7 +35,7 @@ struct SizePass {
|
||||||
/// \brief Map object for keeping track of which address ranges have been heritaged
|
/// \brief Map object for keeping track of which address ranges have been heritaged
|
||||||
///
|
///
|
||||||
/// We keep track of a fairly fine grained description of when each address range
|
/// We keep track of a fairly fine grained description of when each address range
|
||||||
/// was entered in SSA form, refered to as \b heritaged or, for Varnode objects,
|
/// was entered in SSA form, referred to as \b heritaged or, for Varnode objects,
|
||||||
/// no longer \b free. An address range is added using the add() method, which includes
|
/// no longer \b free. An address range is added using the add() method, which includes
|
||||||
/// the particular pass when it was entered. The map can be queried using findPass()
|
/// the particular pass when it was entered. The map can be queried using findPass()
|
||||||
/// that informs the caller whether the address has been heritaged and if so in which pass.
|
/// that informs the caller whether the address has been heritaged and if so in which pass.
|
||||||
|
|
|
@ -66,7 +66,7 @@ class Varnode {
|
||||||
public:
|
public:
|
||||||
/// There are a large number of boolean attributes that can be placed on a Varnode.
|
/// There are a large number of boolean attributes that can be placed on a Varnode.
|
||||||
/// Some are calculated and maintained by the friend classes Funcdata and VarnodeBank,
|
/// Some are calculated and maintained by the friend classes Funcdata and VarnodeBank,
|
||||||
/// and others can be set and cleared publically by separate subsystems.
|
/// and others can be set and cleared publicly by separate subsystems.
|
||||||
enum varnode_flags {
|
enum varnode_flags {
|
||||||
mark = 0x01, ///< Prevents infinite loops
|
mark = 0x01, ///< Prevents infinite loops
|
||||||
constant = 0x02, ///< The varnode is constant
|
constant = 0x02, ///< The varnode is constant
|
||||||
|
|
|
@ -294,7 +294,7 @@ public class DecompilerParameterIdCmd extends BackgroundCommand {
|
||||||
|
|
||||||
// TODO: should unaff_ be checked?
|
// TODO: should unaff_ be checked?
|
||||||
|
|
||||||
// TODO: should wierd stack references be checked?
|
// TODO: should weird stack references be checked?
|
||||||
}
|
}
|
||||||
|
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -1055,7 +1055,7 @@ public class GnuDemanglerParser implements DemanglerParser {
|
||||||
}
|
}
|
||||||
|
|
||||||
private DemangledObject parseVariable(String demangled) {
|
private DemangledObject parseVariable(String demangled) {
|
||||||
// Are all of these neccessary? Many appear to be duplicated within doParse method
|
// Are all of these necessary? Many appear to be duplicated within doParse method
|
||||||
if (demangled.startsWith(TYPEINFO_NAME_FOR)) {
|
if (demangled.startsWith(TYPEINFO_NAME_FOR)) {
|
||||||
return parseTypeInfoName(demangled);
|
return parseTypeInfoName(demangled);
|
||||||
}
|
}
|
||||||
|
|
|
@ -575,7 +575,7 @@ public class PdbParser {
|
||||||
}
|
}
|
||||||
throw new PdbException("PDB Execution failure of " + PDB_EXE + ".\n" +
|
throw new PdbException("PDB Execution failure of " + PDB_EXE + ".\n" +
|
||||||
"This was likely caused by severe execution failure which can occur if executed\n" +
|
"This was likely caused by severe execution failure which can occur if executed\n" +
|
||||||
"on an unsupported platform. It may be neccessary to rebuild the PDB executable\n" +
|
"on an unsupported platform. It may be necessary to rebuild the PDB executable\n" +
|
||||||
"for your platform (see Ghidra/Features/PDB/src).");
|
"for your platform (see Ghidra/Features/PDB/src).");
|
||||||
}
|
}
|
||||||
throw new PdbException("PDB parsing problem: " + e.getMessage());
|
throw new PdbException("PDB parsing problem: " + e.getMessage());
|
||||||
|
|
|
@ -114,7 +114,7 @@ class ApplyDiffCommand extends BackgroundCommand implements AnalysisWorker {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Msg.showError(this, plugin.getListingPanel(), "Error Applying Diff",
|
Msg.showError(this, plugin.getListingPanel(), "Error Applying Diff",
|
||||||
"An error occured while applying differences.\n"
|
"An error occurred while applying differences.\n"
|
||||||
+ "Only some of the differences may have been applied.",
|
+ "Only some of the differences may have been applied.",
|
||||||
(t != null) ? t : e);
|
(t != null) ? t : e);
|
||||||
applyMsg = message + diffControl.getApplyMessage();
|
applyMsg = message + diffControl.getApplyMessage();
|
||||||
|
|
|
@ -570,7 +570,7 @@ public class FunctionNameMarkupItemTest extends AbstractVTMarkupItemTest {
|
||||||
assertEquals("Function name should have been applied", sourceName,
|
assertEquals("Function name should have been applied", sourceName,
|
||||||
destinationFunction.getName());
|
destinationFunction.getName());
|
||||||
// if (destinationFunction.isExternal()) {
|
// if (destinationFunction.isExternal()) {
|
||||||
// // orignal name may get set if symbol type was IMPORTED
|
// // original name may get set if symbol type was IMPORTED
|
||||||
// }
|
// }
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -37,7 +37,7 @@ public class DBBuffer {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Split this DBBuffer object into two seperate DBBuffers. This DBBuffer remains
|
* Split this DBBuffer object into two separate DBBuffers. This DBBuffer remains
|
||||||
* valid but its new size is equal offset. The newly created DBBuffer is
|
* valid but its new size is equal offset. The newly created DBBuffer is
|
||||||
* returned.
|
* returned.
|
||||||
* @param offset the split point. The byte at this offset becomes the first
|
* @param offset the split point. The byte at this offset becomes the first
|
||||||
|
|
|
@ -261,7 +261,7 @@ public abstract class Database {
|
||||||
protected void scanFiles(boolean repair) throws FileNotFoundException {
|
protected void scanFiles(boolean repair) throws FileNotFoundException {
|
||||||
synchronized (syncObject) {
|
synchronized (syncObject) {
|
||||||
|
|
||||||
// TODO: May need to make repair an option (may not have write priviledge)
|
// TODO: May need to make repair an option (may not have write privilege)
|
||||||
|
|
||||||
ArrayList<String> bufFiles = new ArrayList<>();
|
ArrayList<String> bufFiles = new ArrayList<>();
|
||||||
ArrayList<String> verFiles = new ArrayList<>();
|
ArrayList<String> verFiles = new ArrayList<>();
|
||||||
|
|
|
@ -26,7 +26,7 @@ import db.buffers.DataBuffer;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The <code>NodeMgr</code> manages all database nodes associated with
|
* The <code>NodeMgr</code> manages all database nodes associated with
|
||||||
* a table. Each table should use a seperate instance of a NodeMgr.
|
* a table. Each table should use a separate instance of a NodeMgr.
|
||||||
* The NodeMgr is resposible for interacting with the BufferMgr performing
|
* The NodeMgr is resposible for interacting with the BufferMgr performing
|
||||||
* buffer allocations, retrievals and releases as required. The NodeMgr
|
* buffer allocations, retrievals and releases as required. The NodeMgr
|
||||||
* also performs hard caching of all buffers until the releaseNodes
|
* also performs hard caching of all buffers until the releaseNodes
|
||||||
|
|
|
@ -357,7 +357,7 @@ class VarKeyInteriorNode extends VarKeyNode {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Update the child key associated with the specified key index.
|
* Update the child key associated with the specified key index.
|
||||||
* Other entries are shifted as necessary to accomodate the new key length for
|
* Other entries are shifted as necessary to accommodate the new key length for
|
||||||
* the updated entry.
|
* the updated entry.
|
||||||
* @param index child key index
|
* @param index child key index
|
||||||
* @param updateKey updated child node key
|
* @param updateKey updated child node key
|
||||||
|
@ -741,7 +741,7 @@ class VarKeyInteriorNode extends VarKeyNode {
|
||||||
* @param leftNode
|
* @param leftNode
|
||||||
* @param rightNode
|
* @param rightNode
|
||||||
* @param count
|
* @param count
|
||||||
* @return true if movement occured, else false
|
* @return true if movement occurred, else false
|
||||||
*/
|
*/
|
||||||
private static boolean moveKeysRight(VarKeyInteriorNode leftNode, VarKeyInteriorNode rightNode,
|
private static boolean moveKeysRight(VarKeyInteriorNode leftNode, VarKeyInteriorNode rightNode,
|
||||||
int count) {
|
int count) {
|
||||||
|
|
|
@ -28,7 +28,7 @@ import db.ChainedBuffer;
|
||||||
/**
|
/**
|
||||||
* <code>ChangeMapFile</code> tracks which buffers within a LocalBufferFile
|
* <code>ChangeMapFile</code> tracks which buffers within a LocalBufferFile
|
||||||
* have been modified between an older and newer version. The older
|
* have been modified between an older and newer version. The older
|
||||||
* file is also refered to as the target file.
|
* file is also referred to as the target file.
|
||||||
*/
|
*/
|
||||||
public class ChangeMapFile {
|
public class ChangeMapFile {
|
||||||
|
|
||||||
|
|
|
@ -130,7 +130,7 @@ public class LocalManagedBufferFile extends LocalBufferFile implements ManagedBu
|
||||||
* <code>saveChangeFile</code> is a buffer file which contains application
|
* <code>saveChangeFile</code> is a buffer file which contains application
|
||||||
* specific change-data associated with a new version of this file.
|
* specific change-data associated with a new version of this file.
|
||||||
* <code>saveChangeFile</code> is instantiated when the getSaveFile method
|
* <code>saveChangeFile</code> is instantiated when the getSaveFile method
|
||||||
* is successfully invoked. This file is commited when the saveCompleted
|
* is successfully invoked. This file is committed when the saveCompleted
|
||||||
* method is invoked.
|
* method is invoked.
|
||||||
*/
|
*/
|
||||||
private LocalBufferFile saveChangeFile;
|
private LocalBufferFile saveChangeFile;
|
||||||
|
|
|
@ -76,7 +76,7 @@ public interface LayoutModel {
|
||||||
* Returns an iterator that walks all the Layout items in this model, starting at the
|
* Returns an iterator that walks all the Layout items in this model, starting at the
|
||||||
* specified index.
|
* specified index.
|
||||||
*
|
*
|
||||||
* @param startIndex start index in the model to begining iterating
|
* @param startIndex start index in the model to beginning iterating
|
||||||
* @return new iterator
|
* @return new iterator
|
||||||
*/
|
*/
|
||||||
public default LayoutModelIterator iterator(BigInteger startIndex) {
|
public default LayoutModelIterator iterator(BigInteger startIndex) {
|
||||||
|
|
|
@ -37,7 +37,7 @@ import mockit.Mock;
|
||||||
import mockit.MockUp;
|
import mockit.MockUp;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This test performs operations on swing components in the test thread. I beleive this is ok
|
* This test performs operations on swing components in the test thread. I believe this is ok
|
||||||
* since in this test, the widgets are never realized and the swing thread in generally not
|
* since in this test, the widgets are never realized and the swing thread in generally not
|
||||||
* involved. If this test has displays intermittent failures, then more work will be needed to
|
* involved. If this test has displays intermittent failures, then more work will be needed to
|
||||||
* fix the threading when accessing swing components.
|
* fix the threading when accessing swing components.
|
||||||
|
|
|
@ -182,7 +182,7 @@ public class RepositoryServerAdapter {
|
||||||
cause = t;
|
cause = t;
|
||||||
}
|
}
|
||||||
Msg.showError(this, null, "Server Error",
|
Msg.showError(this, null, "Server Error",
|
||||||
"An error occured on the server (" + serverInfoStr + ").\n" + msg, e);
|
"An error occurred on the server (" + serverInfoStr + ").\n" + msg, e);
|
||||||
}
|
}
|
||||||
catch (IOException e) {
|
catch (IOException e) {
|
||||||
String err = e.getMessage();
|
String err = e.getMessage();
|
||||||
|
@ -191,7 +191,7 @@ public class RepositoryServerAdapter {
|
||||||
}
|
}
|
||||||
String msg = err != null ? err : e.toString();
|
String msg = err != null ? err : e.toString();
|
||||||
Msg.showError(this, null, "Server Error",
|
Msg.showError(this, null, "Server Error",
|
||||||
"An error occured while connecting to the server (" + serverInfoStr + ").\n" + msg,
|
"An error occurred while connecting to the server (" + serverInfoStr + ").\n" + msg,
|
||||||
e);
|
e);
|
||||||
}
|
}
|
||||||
throw new NotConnectedException("Not connected to repository server", cause);
|
throw new NotConnectedException("Not connected to repository server", cause);
|
||||||
|
@ -283,7 +283,7 @@ public class RepositoryServerAdapter {
|
||||||
// serverHandle = null;
|
// serverHandle = null;
|
||||||
// fireStateChanged();
|
// fireStateChanged();
|
||||||
// if (error != null) {
|
// if (error != null) {
|
||||||
// Err.show(null, "Server Error", "A server communications error occured!", error);
|
// Err.show(null, "Server Error", "A server communications error occurred!", error);
|
||||||
// error = null;
|
// error = null;
|
||||||
// throw new NotConnectedException("Not connected to repository server");
|
// throw new NotConnectedException("Not connected to repository server");
|
||||||
// }
|
// }
|
||||||
|
|
|
@ -129,7 +129,7 @@ class ServerConnectTask extends Task {
|
||||||
throw new IOException("User PKI Certificate not installed", e);
|
throw new IOException("User PKI Certificate not installed", e);
|
||||||
}
|
}
|
||||||
// assume user cancelled connect attempt when prompted for cert password
|
// assume user cancelled connect attempt when prompted for cert password
|
||||||
// or other cert error occured
|
// or other cert error occurred
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
// TODO: Translate SSL exceptions to more meaningful errors
|
// TODO: Translate SSL exceptions to more meaningful errors
|
||||||
|
|
|
@ -203,7 +203,7 @@ public interface FileSystem {
|
||||||
* @param folderPath path of folder to be deleted
|
* @param folderPath path of folder to be deleted
|
||||||
* @throws FolderNotEmptyException Thrown if the folder is not empty.
|
* @throws FolderNotEmptyException Thrown if the folder is not empty.
|
||||||
* @throws FileNotFoundException if there is no folder with the given path name.
|
* @throws FileNotFoundException if there is no folder with the given path name.
|
||||||
* @throws IOException if error occured during delete.
|
* @throws IOException if error occurred during delete.
|
||||||
*/
|
*/
|
||||||
public void deleteFolder(String folderPath) throws IOException;
|
public void deleteFolder(String folderPath) throws IOException;
|
||||||
|
|
||||||
|
|
|
@ -39,7 +39,7 @@ public class FileSystemListenerList implements FileSystemListener {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Construct FileSystemListenerList
|
* Construct FileSystemListenerList
|
||||||
* @param enableAsynchronousDispatching if true a seperate dispatch thread will be used
|
* @param enableAsynchronousDispatching if true a separate dispatch thread will be used
|
||||||
* to notify listeners. If false, blocking notification will be performed.
|
* to notify listeners. If false, blocking notification will be performed.
|
||||||
*/
|
*/
|
||||||
public FileSystemListenerList(boolean enableAsynchronousDispatching) {
|
public FileSystemListenerList(boolean enableAsynchronousDispatching) {
|
||||||
|
|
|
@ -493,7 +493,7 @@ public abstract class LocalFolderItem implements FolderItem {
|
||||||
// * If in-use files prevent renaming a FileInUseException will be thrown.
|
// * If in-use files prevent renaming a FileInUseException will be thrown.
|
||||||
// * @param name new name for this item
|
// * @param name new name for this item
|
||||||
// * @throws InvalidNameException invalid name was specified
|
// * @throws InvalidNameException invalid name was specified
|
||||||
// * @throws IOException an error occured
|
// * @throws IOException an error occurred
|
||||||
// */
|
// */
|
||||||
// void doSetName(String name) throws InvalidNameException, IOException {
|
// void doSetName(String name) throws InvalidNameException, IOException {
|
||||||
// synchronized (fileSystem) {
|
// synchronized (fileSystem) {
|
||||||
|
|
|
@ -156,7 +156,7 @@ public class ApplicationTrustManagerFactory {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Get trust managers after performing any neccessary initialization.
|
* Get trust managers after performing any necessary initialization.
|
||||||
* @return trust managers
|
* @return trust managers
|
||||||
*/
|
*/
|
||||||
static synchronized TrustManager[] getTrustManagers() {
|
static synchronized TrustManager[] getTrustManagers() {
|
||||||
|
|
|
@ -21,7 +21,7 @@ import ghidra.util.exception.NoValueException;
|
||||||
* Class that implements a hashtable with int keys and int values.
|
* Class that implements a hashtable with int keys and int values.
|
||||||
* Because this class uses array of primitives
|
* Because this class uses array of primitives
|
||||||
* to store the information, it serializes very fast. This implementation uses
|
* to store the information, it serializes very fast. This implementation uses
|
||||||
* seperate chaining to resolve collisions.
|
* separate chaining to resolve collisions.
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public class IntIntHashtable {
|
public class IntIntHashtable {
|
||||||
|
|
|
@ -24,7 +24,7 @@ import ghidra.util.exception.AssertException;
|
||||||
* the smallest unused index is allocated and associated with that key.
|
* the smallest unused index is allocated and associated with that key.
|
||||||
* Basically hashes the keys into linked lists using the IntListIndexer class,
|
* Basically hashes the keys into linked lists using the IntListIndexer class,
|
||||||
* where all values in a list have
|
* where all values in a list have
|
||||||
* the same hashcode. Does most of the work in implementing a seperate chaining
|
* the same hashcode. Does most of the work in implementing a separate chaining
|
||||||
* version of a hashtable - the only thing missing is the values which are stored
|
* version of a hashtable - the only thing missing is the values which are stored
|
||||||
* in the individual implementations of the various hashtables.
|
* in the individual implementations of the various hashtables.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -25,7 +25,7 @@ import java.io.Serializable;
|
||||||
* Class that implements a hashtable with long keys and double values.
|
* Class that implements a hashtable with long keys and double values.
|
||||||
* Because this class uses array of primitives
|
* Because this class uses array of primitives
|
||||||
* to store the information, it serializes very fast. This implementation uses
|
* to store the information, it serializes very fast. This implementation uses
|
||||||
* seperate chaining to resolve collisions.
|
* separate chaining to resolve collisions.
|
||||||
*
|
*
|
||||||
* My local change of LongShortHashtable (SCP 4/13/00)
|
* My local change of LongShortHashtable (SCP 4/13/00)
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -25,7 +25,7 @@ import java.util.Arrays;
|
||||||
* the smallest unused index is allocated and associated with that key.
|
* the smallest unused index is allocated and associated with that key.
|
||||||
* Basically hashes the keys into linked lists using the IntListIndexer class,
|
* Basically hashes the keys into linked lists using the IntListIndexer class,
|
||||||
* where all values in a list have
|
* where all values in a list have
|
||||||
* the same hashcode. Does most of the work in implementing a seperate chaining
|
* the same hashcode. Does most of the work in implementing a separate chaining
|
||||||
* version of a hashtable - the only thing missing is the values which are stored
|
* version of a hashtable - the only thing missing is the values which are stored
|
||||||
* in the individual implementations of the various hashtables.
|
* in the individual implementations of the various hashtables.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -24,7 +24,7 @@ import ghidra.util.exception.AssertException;
|
||||||
* the smallest unused index is allocated and associated with that key.
|
* the smallest unused index is allocated and associated with that key.
|
||||||
* Basically hashes the keys into linked lists using the ShortListIndexer class,
|
* Basically hashes the keys into linked lists using the ShortListIndexer class,
|
||||||
* where all values in a list have
|
* where all values in a list have
|
||||||
* the same hashcode. Does most of the work in implementing a seperate chaining
|
* the same hashcode. Does most of the work in implementing a separate chaining
|
||||||
* version of a hashtable - the only thing missing is the values which are stored
|
* version of a hashtable - the only thing missing is the values which are stored
|
||||||
* in the individual implementations of the various hashtables.
|
* in the individual implementations of the various hashtables.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -26,7 +26,7 @@ import java.util.Iterator;
|
||||||
* the smallest unused index is allocated and associated with that key.
|
* the smallest unused index is allocated and associated with that key.
|
||||||
* Basically hashes the keys into linked lists using the IntListIndexer class,
|
* Basically hashes the keys into linked lists using the IntListIndexer class,
|
||||||
* where all values in a list have
|
* where all values in a list have
|
||||||
* the same hashcode. Does most of the work in implementing a seperate chaining
|
* the same hashcode. Does most of the work in implementing a separate chaining
|
||||||
* version of a hashtable - the only thing missing is the values which are stored
|
* version of a hashtable - the only thing missing is the values which are stored
|
||||||
* in the individual implementations of the various hashtables.
|
* in the individual implementations of the various hashtables.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -204,7 +204,7 @@ public class ExtensionFileFilter implements GhidraFileFilter {
|
||||||
* Determines whether the extension list (.jpg, .gif, etc) should
|
* Determines whether the extension list (.jpg, .gif, etc) should
|
||||||
* show up in the human readable description.
|
* show up in the human readable description.
|
||||||
*
|
*
|
||||||
* Only relevent if a description was provided in the constructor
|
* Only relevant if a description was provided in the constructor
|
||||||
* or using setDescription();
|
* or using setDescription();
|
||||||
*
|
*
|
||||||
* @see #getDescription
|
* @see #getDescription
|
||||||
|
@ -220,7 +220,7 @@ public class ExtensionFileFilter implements GhidraFileFilter {
|
||||||
* Returns whether the extension list (.jpg, .gif, etc) should
|
* Returns whether the extension list (.jpg, .gif, etc) should
|
||||||
* show up in the human readable description.
|
* show up in the human readable description.
|
||||||
*
|
*
|
||||||
* Only relevent if a description was provided in the constructor
|
* Only relevant if a description was provided in the constructor
|
||||||
* or using setDescription();
|
* or using setDescription();
|
||||||
*
|
*
|
||||||
* @see #getDescription
|
* @see #getDescription
|
||||||
|
|
|
@ -127,7 +127,7 @@ class EditActionManager {
|
||||||
}
|
}
|
||||||
catch (IOException e) {
|
catch (IOException e) {
|
||||||
Msg.error(this,
|
Msg.error(this,
|
||||||
"Error occured while clearing PKI certificate setting: " + e.getMessage());
|
"Error occurred while clearing PKI certificate setting: " + e.getMessage());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -124,7 +124,7 @@ public interface DomainFile extends Comparable<DomainFile> {
|
||||||
* out of date.
|
* out of date.
|
||||||
* @param okToRecover if true, allows the system to recover unsaved file changes which
|
* @param okToRecover if true, allows the system to recover unsaved file changes which
|
||||||
* resulted from a crash. If false, any existing recovery data will be deleted.
|
* resulted from a crash. If false, any existing recovery data will be deleted.
|
||||||
* This flag is only relevent if project is open for update (isInProject) and the file can be
|
* This flag is only relevant if project is open for update (isInProject) and the file can be
|
||||||
* opened for update.
|
* opened for update.
|
||||||
* @param monitor permits monitoring of open progress.
|
* @param monitor permits monitoring of open progress.
|
||||||
* @return an open domain object can be modified and saved. (Not read-only)
|
* @return an open domain object can be modified and saved. (Not read-only)
|
||||||
|
@ -393,7 +393,7 @@ public interface DomainFile extends Comparable<DomainFile> {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Forcefully terminate a checkout for the associated versioned file.
|
* Forcefully terminate a checkout for the associated versioned file.
|
||||||
* The user must be the owner of the checkout or have admin priviledge
|
* The user must be the owner of the checkout or have admin privilege
|
||||||
* on the versioned filesystem (i.e., repository).
|
* on the versioned filesystem (i.e., repository).
|
||||||
* @param checkoutId checkout ID
|
* @param checkoutId checkout ID
|
||||||
* @throws IOException if an IO or access error occurs
|
* @throws IOException if an IO or access error occurs
|
||||||
|
|
|
@ -139,7 +139,7 @@ public interface Tool extends DockingTool, ToolListener {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Removes a ToolListener from receiving any event generated by this Tool.
|
* Removes a ToolListener from receiving any event generated by this Tool.
|
||||||
* The tool will still recieve specific events that it has registered for.
|
* The tool will still receive specific events that it has registered for.
|
||||||
*
|
*
|
||||||
* @param listener The ToolListener to be removed from receiving all events.
|
* @param listener The ToolListener to be removed from receiving all events.
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -41,7 +41,7 @@ public interface TransactionListener {
|
||||||
void undoStackChanged(DomainObjectAdapterDB domainObj);
|
void undoStackChanged(DomainObjectAdapterDB domainObj);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Notification that undo or redo has occured.
|
* Notification that undo or redo has occurred.
|
||||||
* @param domainObj the affected domain object
|
* @param domainObj the affected domain object
|
||||||
*/
|
*/
|
||||||
void undoRedoOccurred(DomainObjectAdapterDB domainObj);
|
void undoRedoOccurred(DomainObjectAdapterDB domainObj);
|
||||||
|
|
|
@ -60,7 +60,7 @@ when generating Java source. There are two benefits: 1) I can keep most Java sou
|
||||||
source files instead of the grammar source, 2) The code is no longer duplicated among many parsers
|
source files instead of the grammar source, 2) The code is no longer duplicated among many parsers
|
||||||
can lexers.
|
can lexers.
|
||||||
|
|
||||||
Second, I've split each sub-grammar into separate lexer and parser. This is required becuase ANTLR
|
Second, I've split each sub-grammar into separate lexer and parser. This is required because ANTLR
|
||||||
does not allow a "combined lexer/parser" to be imported by another lexer, parser, or combination.
|
does not allow a "combined lexer/parser" to be imported by another lexer, parser, or combination.
|
||||||
Aside from avoiding situations that are difficult to define, ANTLR's restriction also enforces the
|
Aside from avoiding situations that are difficult to define, ANTLR's restriction also enforces the
|
||||||
practice of separating components out. Note that BooleanExpression.g is unaffected by all of this,
|
practice of separating components out. Note that BooleanExpression.g is unaffected by all of this,
|
||||||
|
|
|
@ -70,7 +70,7 @@ public class VarnodeData {
|
||||||
|
|
||||||
// Build this VarnodeData from an \b \<addr\> tag
|
// Build this VarnodeData from an \b \<addr\> tag
|
||||||
// \param el is the parsed tag
|
// \param el is the parsed tag
|
||||||
// \param trans is the relevent processor translator
|
// \param trans is the relevant processor translator
|
||||||
public void restoreXml( Element el, Translate trans ) {
|
public void restoreXml( Element el, Translate trans ) {
|
||||||
String name = el.getAttributeValue( "name" );
|
String name = el.getAttributeValue( "name" );
|
||||||
if (name != null) {
|
if (name != null) {
|
||||||
|
|
|
@ -36,7 +36,7 @@ abstract class CategoryDBAdapter {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the category record for the given ID.
|
* Gets the category record for the given ID.
|
||||||
* @param categoryID the key into the catagory table
|
* @param categoryID the key into the category table
|
||||||
* @return the record for the given ID or null if no record with that id exists.
|
* @return the record for the given ID or null if no record with that id exists.
|
||||||
*/
|
*/
|
||||||
abstract Record getRecord(long categoryID) throws IOException;
|
abstract Record getRecord(long categoryID) throws IOException;
|
||||||
|
@ -53,7 +53,7 @@ abstract class CategoryDBAdapter {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns a list of categoryIDs that have the given parent ID.
|
* Returns a list of categoryIDs that have the given parent ID.
|
||||||
* @param categoryID the key into the catagory table
|
* @param categoryID the key into the category table
|
||||||
* @return an array of categoryIDs that have the specified parent
|
* @return an array of categoryIDs that have the specified parent
|
||||||
*/
|
*/
|
||||||
abstract long[] getRecordIdsWithParent(long categoryID) throws IOException;
|
abstract long[] getRecordIdsWithParent(long categoryID) throws IOException;
|
||||||
|
@ -61,7 +61,7 @@ abstract class CategoryDBAdapter {
|
||||||
/**
|
/**
|
||||||
* Creates a new category with the given name and parent ID.
|
* Creates a new category with the given name and parent ID.
|
||||||
* @param name the name of the new category.
|
* @param name the name of the new category.
|
||||||
* @param categoryID the key into the catagory table
|
* @param categoryID the key into the category table
|
||||||
* @return a new record for the new category.
|
* @return a new record for the new category.
|
||||||
*/
|
*/
|
||||||
abstract Record createCategory(String name, long parentID) throws IOException;
|
abstract Record createCategory(String name, long parentID) throws IOException;
|
||||||
|
|
|
@ -1313,7 +1313,7 @@ public class Disassembler implements DisassemblerConflictHandler {
|
||||||
disassemblerContext.getRegisterValue(disassemblerContext.getBaseContextRegister()),
|
disassemblerContext.getRegisterValue(disassemblerContext.getBaseContextRegister()),
|
||||||
instAddr, e.getMessage());
|
instAddr, e.getMessage());
|
||||||
}
|
}
|
||||||
return null; // error occured
|
return null; // error occurred
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -879,7 +879,7 @@ public class DisassemblerContextImpl implements DisassemblerContext {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the future register value at the specified address that occured because of a flow
|
* Returns the future register value at the specified address that occurred because of a flow
|
||||||
* from the fromAddr. If no future value is stored, it will return the value stored in the program.
|
* from the fromAddr. If no future value is stored, it will return the value stored in the program.
|
||||||
*
|
*
|
||||||
* @param register the register to get a value for.
|
* @param register the register to get a value for.
|
||||||
|
@ -914,7 +914,7 @@ public class DisassemblerContextImpl implements DisassemblerContext {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns the future RegisterValue at the specified address that occured because of a flow from
|
* Returns the future RegisterValue at the specified address that occurred because of a flow from
|
||||||
* the fromAddr. If no future value is stored, it will return the value stored in the program.
|
* the fromAddr. If no future value is stored, it will return the value stored in the program.
|
||||||
* The value returned may not have a complete value for the requested register.
|
* The value returned may not have a complete value for the requested register.
|
||||||
*
|
*
|
||||||
|
|
|
@ -109,7 +109,7 @@ public interface CodeBlock extends AddressSetView {
|
||||||
* Get an Iterator over the CodeBlocks that are flowed to from this
|
* Get an Iterator over the CodeBlocks that are flowed to from this
|
||||||
* CodeBlock.
|
* CodeBlock.
|
||||||
* @param monitor task monitor which allows user to cancel operation.
|
* @param monitor task monitor which allows user to cancel operation.
|
||||||
* @return An iterator over CodeBlocks refered to by this Block.
|
* @return An iterator over CodeBlocks referred to by this Block.
|
||||||
* @throws CancelledException if the monitor cancels the operation.
|
* @throws CancelledException if the monitor cancels the operation.
|
||||||
*/
|
*/
|
||||||
public CodeBlockReferenceIterator getDestinations(TaskMonitor monitor) throws CancelledException;
|
public CodeBlockReferenceIterator getDestinations(TaskMonitor monitor) throws CancelledException;
|
||||||
|
|
|
@ -599,7 +599,7 @@ public class SimpleBlockModel implements CodeBlockModel {
|
||||||
// return FlowType.INVALID;
|
// return FlowType.INVALID;
|
||||||
// }
|
// }
|
||||||
//
|
//
|
||||||
// // look at all refs to symbol, if not refered to by fallthrough
|
// // look at all refs to symbol, if not referred to by fallthrough
|
||||||
// // instruction, must be flow, so return true.
|
// // instruction, must be flow, so return true.
|
||||||
// Referent refs[] = sym.getReferences();
|
// Referent refs[] = sym.getReferences();
|
||||||
// if (refs == null) {
|
// if (refs == null) {
|
||||||
|
|
|
@ -29,7 +29,7 @@ import ghidra.util.Msg;
|
||||||
*
|
*
|
||||||
* Base abstract data type for a Dynamic structure data type that contains
|
* Base abstract data type for a Dynamic structure data type that contains
|
||||||
* some number of repeated data types. After each data type, including the header
|
* some number of repeated data types. After each data type, including the header
|
||||||
* there is a terminator value which specifies wether there are any more data structures
|
* there is a terminator value which specifies weather there are any more data structures
|
||||||
* following. TerminatorValue can be 1,2,4,or 8 bytes.
|
* following. TerminatorValue can be 1,2,4,or 8 bytes.
|
||||||
*
|
*
|
||||||
* The dynamic structure looks like this:
|
* The dynamic structure looks like this:
|
||||||
|
|
|
@ -323,7 +323,7 @@ public interface ReferenceManager {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return true if a memory reference exists with the given "to" address.
|
* Return true if a memory reference exists with the given "to" address.
|
||||||
* @param toAddr address being refered to.
|
* @param toAddr address being referred to.
|
||||||
*/
|
*/
|
||||||
public boolean hasReferencesTo(Address toAddr);
|
public boolean hasReferencesTo(Address toAddr);
|
||||||
|
|
||||||
|
|
|
@ -35,7 +35,7 @@ import ghidra.util.prop.PropertyVisitor;
|
||||||
* For any long the property
|
* For any long the property
|
||||||
* manager can be used to tell if the property exists there and
|
* manager can be used to tell if the property exists there and
|
||||||
* what its value is. It also maintains information that allows it
|
* what its value is. It also maintains information that allows it
|
||||||
* to efficiently search for the next and previous occurence of the
|
* to efficiently search for the next and previous occurrence of the
|
||||||
* property relative to a given address.
|
* property relative to a given address.
|
||||||
* The subclass provides the createPage() method that dictates
|
* The subclass provides the createPage() method that dictates
|
||||||
* the type of PropertyPage that will be managed.
|
* the type of PropertyPage that will be managed.
|
||||||
|
|
|
@ -307,7 +307,7 @@ abstract public class AbstractStoredProgramContext extends AbstractProgramContex
|
||||||
if (space.isOverlaySpace()) {
|
if (space.isOverlaySpace()) {
|
||||||
address = ((OverlayAddressSpace) space).translateAddress(address, true);
|
address = ((OverlayAddressSpace) space).translateAddress(address, true);
|
||||||
}
|
}
|
||||||
// there is a wierd deleted overlay case that the following code handles - sortof
|
// there is a weird deleted overlay case that the following code handles - sortof
|
||||||
else if (space.getType() == AddressSpace.TYPE_UNKNOWN) {
|
else if (space.getType() == AddressSpace.TYPE_UNKNOWN) {
|
||||||
return new RegisterValue(register);
|
return new RegisterValue(register);
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,7 +27,7 @@ define register offset=0x140 size=4 [ SFC DFC TC ITT0 ITT1 DTT0 DTT1 MMUSR URP
|
||||||
define register offset=0x180 size=4 [ BUSCR MBB RAMBAR0 RAMBAR1 ];
|
define register offset=0x180 size=4 [ BUSCR MBB RAMBAR0 RAMBAR1 ];
|
||||||
define register offset=0x200 size=2 [ SR ACUSR ];
|
define register offset=0x200 size=2 [ SR ACUSR ];
|
||||||
# NOTE that SR overlaps XF, ZF, VF, CF
|
# NOTE that SR overlaps XF, ZF, VF, CF
|
||||||
# NOTE that A7 refers to USP, ISP, or MSP depending on privelege level
|
# NOTE that A7 refers to USP, ISP, or MSP depending on privilege level
|
||||||
|
|
||||||
|
|
||||||
define register offset=0x300 size=4 [ glbdenom movemptr ];
|
define register offset=0x300 size=4 [ glbdenom movemptr ];
|
||||||
|
|
|
@ -99,7 +99,7 @@ public class m68kEmulateInstructionStateModifier extends EmulateInstructionState
|
||||||
|
|
||||||
if ((currentAddress.getOffset() & 0x1) == 1) {
|
if ((currentAddress.getOffset() & 0x1) == 1) {
|
||||||
throw new LowlevelError(
|
throw new LowlevelError(
|
||||||
"Flow to odd address occured without setting ISM register (16-bit mode)");
|
"Flow to odd address occurred without setting ISM register (16-bit mode)");
|
||||||
}
|
}
|
||||||
|
|
||||||
// MIPS mode
|
// MIPS mode
|
||||||
|
|
|
@ -1426,7 +1426,7 @@ with : ARMcondCk=1 {
|
||||||
# other ARM instructions to avoid incorrect
|
# other ARM instructions to avoid incorrect
|
||||||
# constructor matching for those that use the
|
# constructor matching for those that use the
|
||||||
# COND subconstructor. This also ensures
|
# COND subconstructor. This also ensures
|
||||||
# that the various VFP instructions supercede the
|
# that the various VFP instructions supersede the
|
||||||
# CDP/MCR/MRC general coprocessor instructions
|
# CDP/MCR/MRC general coprocessor instructions
|
||||||
#
|
#
|
||||||
#################################################
|
#################################################
|
||||||
|
|
|
@ -160,7 +160,7 @@ public class ARMEmulateInstructionStateModifier extends EmulateInstructionStateM
|
||||||
|
|
||||||
if ((currentAddress.getOffset() & 0x1) == 1) {
|
if ((currentAddress.getOffset() & 0x1) == 1) {
|
||||||
throw new LowlevelError(
|
throw new LowlevelError(
|
||||||
"Flow to odd address occured without setting TB register (Thumb mode)");
|
"Flow to odd address occurred without setting TB register (Thumb mode)");
|
||||||
}
|
}
|
||||||
|
|
||||||
// ARM mode
|
// ARM mode
|
||||||
|
|
|
@ -249,7 +249,7 @@ public class AVR32_ElfRelocationHandler extends ElfRelocationHandler {
|
||||||
memory.setInt(relocationAddress, newValue);
|
memory.setInt(relocationAddress, newValue);
|
||||||
System.out.println(" HANDLED AVR relocation: R_AVR32_21S at "+relocationAddress + ", New = " + newValue);
|
System.out.println(" HANDLED AVR relocation: R_AVR32_21S at "+relocationAddress + ", New = " + newValue);
|
||||||
break;
|
break;
|
||||||
case AVR32_ElfRelocationConstants.R_AVR32_16U: //Use long to accomodate the Unsignedness...
|
case AVR32_ElfRelocationConstants.R_AVR32_16U: //Use long to accommodate the Unsignedness...
|
||||||
long newValueLong = ((symbolValue + addend) & 0x0000ffff);
|
long newValueLong = ((symbolValue + addend) & 0x0000ffff);
|
||||||
memory.setLong(relocationAddress, newValueLong);
|
memory.setLong(relocationAddress, newValueLong);
|
||||||
System.out.println(" HANDLED AVR relocation: R_AVR32_16U at "+relocationAddress + ", NewLong = " + newValueLong);
|
System.out.println(" HANDLED AVR relocation: R_AVR32_16U at "+relocationAddress + ", NewLong = " + newValueLong);
|
||||||
|
|
|
@ -124,7 +124,7 @@ public class MIPSEmulateInstructionStateModifier extends EmulateInstructionState
|
||||||
|
|
||||||
if ((currentAddress.getOffset() & 0x1) == 1) {
|
if ((currentAddress.getOffset() & 0x1) == 1) {
|
||||||
throw new LowlevelError(
|
throw new LowlevelError(
|
||||||
"Flow to odd address occured without setting ISM register (16-bit mode)");
|
"Flow to odd address occurred without setting ISM register (16-bit mode)");
|
||||||
}
|
}
|
||||||
|
|
||||||
// MIPS mode
|
// MIPS mode
|
||||||
|
|
|
@ -157,7 +157,7 @@ task zipJavadocs(type: Zip) {
|
||||||
|
|
||||||
/**********************************************************************************************
|
/**********************************************************************************************
|
||||||
*
|
*
|
||||||
* Copies platform independant files to the distribution staging area in preparation
|
* Copies platform independent files to the distribution staging area in preparation
|
||||||
* for the distribution zip
|
* for the distribution zip
|
||||||
*
|
*
|
||||||
**********************************************************************************************/
|
**********************************************************************************************/
|
||||||
|
|
|
@ -153,7 +153,7 @@ def generateRandomDebugPort() {
|
||||||
|
|
||||||
/*********************************************************************************
|
/*********************************************************************************
|
||||||
* Loads application specific property file that contains info we need.
|
* Loads application specific property file that contains info we need.
|
||||||
* Properties will be imediately added to the global System.properties file so we
|
* Properties will be immediately added to the global System.properties file so we
|
||||||
* can readily access them from just one place.
|
* can readily access them from just one place.
|
||||||
*********************************************************************************/
|
*********************************************************************************/
|
||||||
def loadApplicationProperties() {
|
def loadApplicationProperties() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue