mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-24 13:21:22 +08:00
Many typo's
These were found using the command below searching for duplicated words, and manually going through the results to remove the false positives and reword the true positives. Sometimes I removed the doubled word and sometimes I replaced the duplicated word. The grep command: grep -nIEr '\b([a-zA-Z]+)[[:space:]*]+\1\b' ./Ghidra
This commit is contained in:
+1
-1
@@ -68,7 +68,7 @@ public interface LocationTrackingSpecFactory extends ExtensionPoint {
|
||||
List<LocationTrackingSpec> getSuggested(PluginTool tool);
|
||||
|
||||
/**
|
||||
* Attempt to parse the given configuration name as as specification
|
||||
* Attempt to parse the given configuration name as a specification
|
||||
*
|
||||
* @param name the configuration name, usually including a prefix unique to each factory
|
||||
* @return the specification, or null if this factory cannot parse it
|
||||
|
||||
+1
-1
@@ -558,7 +558,7 @@ public interface LogicalBreakpoint {
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the desired state were the the logical breakpoint to be toggled
|
||||
* Get the desired state were the logical breakpoint to be toggled
|
||||
*
|
||||
* <p>
|
||||
* The expected "action" when toggling a breakpoint may vary depending on whether or not the
|
||||
|
||||
@@ -134,7 +134,7 @@ I instead just use a fixed 32-bit int now.
|
||||
|
||||
# How-To?
|
||||
|
||||
For now, I'd say just the the gdb implementation as a template / guide.
|
||||
For now, I'd say just take the gdb implementation as a template / guide.
|
||||
Just beware, the whole thing is a bit unstable, so the code may change, but still, I don't expect it to change so drastically that integration work would be scrapped.
|
||||
|
||||
If you're writing Python, create a Python package following the template for gdb's.
|
||||
|
||||
@@ -376,7 +376,7 @@ class Trace(Generic[E]):
|
||||
List[str], RemoteResult[Any, List[str]]]:
|
||||
"""Set register values at the given time on.
|
||||
|
||||
values is a dictionary, where each key is a a register name, and
|
||||
values is a dictionary, where each key is a register name, and
|
||||
the value is a byte array. No matter the target architecture,
|
||||
the value is given in big-endian byte order.
|
||||
"""
|
||||
|
||||
+3
-3
@@ -289,7 +289,7 @@ public class DebuggerDisassemblyTest extends AbstractGhidraHeadedDebuggerTest {
|
||||
assertMnemonic("JMP", instructions.getAt(0, tb.addr(0x00400000)));
|
||||
/**
|
||||
* Depending on preference for branch or fall-through, the disassembler may or may not
|
||||
* proceed to the following instructions. I don't really care, since the test is the the
|
||||
* proceed to the following instructions. I don't really care, since the test is that the
|
||||
* JMP gets deleted after the update to PC.
|
||||
*/
|
||||
});
|
||||
@@ -324,7 +324,7 @@ public class DebuggerDisassemblyTest extends AbstractGhidraHeadedDebuggerTest {
|
||||
assertMnemonic("JMP", instructions.getAt(0, tb.addr(0x00400000)));
|
||||
/**
|
||||
* Depending on preference for branch or fall-through, the disassembler may or may not
|
||||
* proceed to the following instructions. I don't really care, since the test is the the
|
||||
* proceed to the following instructions. I don't really care, since the test is that the
|
||||
* JMP gets deleted after the update to PC.
|
||||
*/
|
||||
});
|
||||
@@ -374,7 +374,7 @@ public class DebuggerDisassemblyTest extends AbstractGhidraHeadedDebuggerTest {
|
||||
assertMnemonic("JMP", instructions.getAt(0, tb.addr(0x00400000)));
|
||||
/**
|
||||
* Depending on preference for branch or fall-through, the disassembler may or may not
|
||||
* proceed to the following instructions. I don't really care, since the test is the the
|
||||
* proceed to the following instructions. I don't really care, since the test is that the
|
||||
* JMP gets deleted after the update to PC.
|
||||
*/
|
||||
});
|
||||
|
||||
+2
-2
@@ -1467,13 +1467,13 @@ public class DBTraceProgramView implements TraceProgramView {
|
||||
}
|
||||
|
||||
public void updateMemoryAddSpaceBlock(AddressSpace space) {
|
||||
// Spaces not not time-bound. No visibility check.
|
||||
// Spaces are not time-bound. No visibility check.
|
||||
memory.updateAddSpaceBlock(space);
|
||||
allAddressesValid = false;
|
||||
}
|
||||
|
||||
public void updateMemoryDeleteSpaceBlock(AddressSpace space) {
|
||||
// Spaces not not time-bound. No visibility check.
|
||||
// Spaces are not time-bound. No visibility check.
|
||||
memory.updateDeleteSpaceBlock(space);
|
||||
allAddressesValid = false;
|
||||
}
|
||||
|
||||
+1
-1
@@ -46,7 +46,7 @@ public class XmlTargetObjectSchemaTest {
|
||||
<schema name="down1">
|
||||
<attribute schema="VOID" fixed="yes" hidden="yes" />
|
||||
</schema>
|
||||
</context>"""; // Cannot have final final new-line or serialize test will fail
|
||||
</context>"""; // Cannot have a final new-line or serialize test will fail
|
||||
|
||||
protected static final DefaultSchemaContext CTX = new DefaultSchemaContext();
|
||||
protected static final SchemaName NAME_ROOT = new SchemaName("root");
|
||||
|
||||
@@ -63,7 +63,7 @@
|
||||
"filename">localhost</CODE> is running both a Ghidra Server and a BSim PostgreSQL database
|
||||
server. On the Ghidra Server, a repository named <CODE class="filename">repo</CODE> has
|
||||
been created. On the BSim server, a database named <CODE class="filename">repo</CODE> has
|
||||
also been created. See See <A class="xref" href=
|
||||
also been created. See <A class="xref" href=
|
||||
"CommandLineReference.html#BSimCommand">Command-Line Utility Reference</A> for more
|
||||
details on use of <STRONG>bsim</STRONG> command and other supported BSim databases.</P>
|
||||
|
||||
|
||||
+1
-1
@@ -24,7 +24,7 @@ import java.io.IOException;
|
||||
import java.io.Writer;
|
||||
|
||||
/**
|
||||
* A user-defined category associated associated with an executable
|
||||
* A user-defined category associated with an executable
|
||||
* Specified by a -type- and then the particular -category- (within the type) that
|
||||
* the executable belongs to.
|
||||
*
|
||||
|
||||
@@ -113,7 +113,7 @@
|
||||
|
||||
|
||||
<A name="Show_Xrefs"></A>
|
||||
<P>In the XRef field, sometimes there are too many addresses to display so the the field will
|
||||
<P>In the XRef field, sometimes there are too many addresses to display so the field will
|
||||
display "[more]" to indicate that one or more cross-reference addresses are not shown.</P>
|
||||
|
||||
<BLOCKQUOTE>
|
||||
|
||||
+1
-1
@@ -897,7 +897,7 @@
|
||||
contains the prefix to use for local labels.</P>
|
||||
|
||||
<P><B>Enable Word Wrapping -</B> Option to wrap strings in operand lines that are too long
|
||||
to fit in the operand field. Note that that word wrapping can only occur where spaces exist
|
||||
to fit in the operand field. Note that word wrapping can only occur where spaces exist
|
||||
in the string.<BR>
|
||||
</P>
|
||||
|
||||
|
||||
@@ -421,7 +421,7 @@
|
||||
must be used to precisely place a bitfield component. Adding a bitfield component via the
|
||||
structure table view via datatype text entry (e.g., char:1) provides only rough placement for non-packed
|
||||
structures since additional bytes will be introduced.
|
||||
The BitField Editor may be displayed using the the Add Bitfield and
|
||||
The BitField Editor may be displayed using the Add Bitfield and
|
||||
Edit Bitfield popup menu actions on a selected structure component. The datatype text entry approach
|
||||
must be used for all unions and packed structures.</li>
|
||||
</ul>
|
||||
|
||||
+1
-1
@@ -1133,7 +1133,7 @@
|
||||
<BLOCKQUOTE>
|
||||
<P>On occasion there may be the need to add stipulate additional attributes on a pointer
|
||||
type to stipulate how the associated pointer should be interpreted or processed during analysis.
|
||||
Such pointer attributes may only be specified when such a pointer in in the form of a Typedef
|
||||
Such pointer attributes may only be specified when such a pointer in the form of a Typedef
|
||||
which enables the datatype to preserve these attributes during type resolution and propagation.
|
||||
This includes preservation of such Typedef Settings within a data type archive, and through
|
||||
merge processing, which normal Data Settings do not support.</P>
|
||||
|
||||
+3
-3
@@ -142,7 +142,7 @@
|
||||
</TD>
|
||||
|
||||
<TD style="vertical-align: top;">- Indicates the archive has datatypes from a
|
||||
source archive that has been been modified. An update is needed.</TD>
|
||||
source archive that has been modified. An update is needed.</TD>
|
||||
</TR>
|
||||
|
||||
<TR valign="top">
|
||||
@@ -519,7 +519,7 @@
|
||||
<H3><A name="Copy"></A>Copy</H3>
|
||||
|
||||
<BLOCKQUOTE>
|
||||
<P>The <I><B>Copy</B></I> action can be be used to
|
||||
<P>The <I><B>Copy</B></I> action can be used to
|
||||
<A href="data_type_manager_description.htm#CopyDataType">copy
|
||||
selected data types</A> and/or
|
||||
<A href="data_type_manager_description.htm#CopyCategory">copy selected categories</A>.
|
||||
@@ -533,7 +533,7 @@
|
||||
<H3><A name="Cut"></A>Cut</H3>
|
||||
|
||||
<BLOCKQUOTE>
|
||||
<P>The <I><B>Cut</B></I> action can be be used to
|
||||
<P>The <I><B>Cut</B></I> action can be used to
|
||||
<A href="data_type_manager_description.htm#MoveDataType">move selected
|
||||
data types</A> and/or
|
||||
<A href="data_type_manager_description.htm#MoveCategory">move selected categories</A>. The
|
||||
|
||||
@@ -105,10 +105,10 @@
|
||||
<BLOCKQUOTE>
|
||||
<UL>
|
||||
<LI><B>Format</B> - This field is a drop-down list containing all the valid <A href=
|
||||
"#Exporter_Formats">export file formats</A> that could be used to to export the
|
||||
"#Exporter_Formats">export file formats</A> that could be used to export the
|
||||
program. By default, the last used format will be auto-selected.</LI>
|
||||
|
||||
<LI><B>Output File</B> - This field specifies the the output file for the export. By
|
||||
<LI><B>Output File</B> - This field specifies the output file for the export. By
|
||||
default, the output file's name will be the name of the program and the output folder
|
||||
will be the user's home folder or the last folder used for an export if an export has
|
||||
been performed in the current session. Use the "..." button to bring up a file chooser
|
||||
|
||||
+1
-1
@@ -40,7 +40,7 @@
|
||||
Address</I> field is disabled. If an instruction has no default fallthrough (e.g., "jump"),
|
||||
the Fallthrough Address field is empty. Choose the <B>User</B> button to enter a new
|
||||
fallthrough address. When the <B>User</B> button is selected, the <I>Fallthrough</I>
|
||||
<I>Address</I> field is updated as you move the cursor in the the Code Browser.</P>
|
||||
<I>Address</I> field is updated as you move the cursor in the Code Browser.</P>
|
||||
|
||||
<P>Select the Home button to navigate the Code Browser back to this address. The home panel
|
||||
shows the address and the instruction when you selected the <B>Set</B> option.</P>
|
||||
|
||||
@@ -108,7 +108,7 @@
|
||||
<OL>
|
||||
<LI>Connect the tools in one direction as described above.</LI>
|
||||
|
||||
<LI>Select Tool B as the event producer and and Tool A as the event consumer.</LI>
|
||||
<LI>Select Tool B as the event producer and Tool A as the event consumer.</LI>
|
||||
|
||||
<LI>Select the check box for the event of interest in the <I>Event Names</I> list.</LI>
|
||||
</OL>
|
||||
@@ -174,7 +174,7 @@
|
||||
<OL>
|
||||
<LI>Disconnect the tools in one direction as described above.</LI>
|
||||
|
||||
<LI>Select Tool B as the event producer and and Tool A as the event consumer.</LI>
|
||||
<LI>Select Tool B as the event producer and Tool A as the event consumer.</LI>
|
||||
|
||||
<LI>Turn off the check box for the event of interest in the <I>Event Names</I> list.</LI>
|
||||
</OL>
|
||||
|
||||
@@ -530,7 +530,7 @@
|
||||
<TD width="40%"><A name="HijackedFile"></A>The private file "Example" exists on your
|
||||
computer, but another user added "Example" to version control, which
|
||||
caused the private file to appear as <I>hijacked</I>, (i.e., the file can be saved "as
|
||||
is" using "<B>Save As</B>" since you do not have the the file checked out that is on
|
||||
is" using "<B>Save As</B>" since you do not have the file checked out that is on
|
||||
the Ghidra Server.) Hijacked files may also result from a checkout that was <A href=
|
||||
"help/topics/VersionControl/project_repository.htm#TerminateCheckout">terminated</A>. The
|
||||
<I>shared</I> version of "Example" will not be visible in your project until you
|
||||
|
||||
@@ -256,7 +256,7 @@
|
||||
<BLOCKQUOTE>
|
||||
<UL>
|
||||
<LI><B>Format</B> - This field is a drop-down list containing all the valid <A href=
|
||||
"#Supported_Formats">file formats</A> that could be used to to import the file.
|
||||
"#Supported_Formats">file formats</A> that could be used to import the file.
|
||||
Typically, there are two options available. One for the actual format of the file (if
|
||||
Ghidra could detect it) and other is the <B>Raw Binary</B> format, which is always an
|
||||
option regardless of the actual file format and it will simply import the bytes in the
|
||||
@@ -276,7 +276,7 @@
|
||||
|
||||
<LI><B>Program Name</B> - This field specifies the name for the newly imported program.
|
||||
By default, it will be the name of the imported file with any format specific extenstion
|
||||
removed (e.g., .xml, .gzf). Path information at the beginning of the this field
|
||||
removed (e.g., .xml, .gzf). Path information at the beginning of this field
|
||||
will be used to create a destination folder in the current project under the root folder
|
||||
specified by the <B>Destination Folder</B> field.</LI><BR>
|
||||
|
||||
@@ -714,7 +714,7 @@
|
||||
<BLOCKQUOTE>
|
||||
<P>The Library Search Path dialog is used to specify the directories, container files,
|
||||
and/or FSRLs that Ghidra should use to resolve external libraries (e.g.; *.dll, *.so) while
|
||||
importing. A "." can be added to specify the the program's import location. FSRLs can be
|
||||
importing. A "." can be added to specify the program's import location. FSRLs can be
|
||||
added via the
|
||||
<A href="help/topics/FileSystemBrowserPlugin/FileSystemBrowserPlugin.html#FSB_Add_Library_Search_Path">File System Browser context menu</A>.
|
||||
</P>
|
||||
|
||||
@@ -56,7 +56,7 @@ data tree, and setlect <span style="font-weight: bold;">Set Language...</span>
|
||||
from the popup menu. Since setting the language is such a major
|
||||
change, the following warning will appear.</p>
|
||||
<p align="center"><img alt="" src="images/Warning.png"></p>
|
||||
<p align="left">Alternatively, if your file is versioned, you you
|
||||
<p align="left">Alternatively, if your file is versioned, you
|
||||
should check-in any recent changes prior to performing this
|
||||
operation. If you press the "OK" button, the Select Language
|
||||
dialog will be displayed:</p>
|
||||
|
||||
@@ -953,7 +953,7 @@
|
||||
</UL>
|
||||
|
||||
<P><B><A name="Start_Symbols"></A>Start Symbols</B> - A comma separated list of symbol
|
||||
names to be be used as the starting location for the program if the "Preferred Symbol Name"
|
||||
names to be used as the starting location for the program if the "Preferred Symbol Name"
|
||||
option is selected above. The first matching symbol found will be used as the starting
|
||||
location for newly opened programs.</P>
|
||||
|
||||
|
||||
@@ -844,7 +844,7 @@ c<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<P>When adding a <I>Stack</I> or <I>Register</I> reference, a corresponding parameter or
|
||||
variable may be created. If a local variable is created, the first-use-offset of the
|
||||
variable will correspond to the source instruction location. For this reason, it is
|
||||
recommended that the first reference to a variable be created on the the first "assignment"
|
||||
recommended that the first reference to a variable be created on the first "assignment"
|
||||
instruction. If a newly created variable is unwanted, it may be deleted by clicking on it
|
||||
within the Listing and hitting the "<I>Delete</I>" key. Keep in mind that when a variable
|
||||
is deleted, any explicit bindings to that variable will be cleared.<BR>
|
||||
@@ -1085,7 +1085,7 @@ c<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||
<P>When adding a <I>Stack</I> or <I>Register</I> reference, a corresponding parameter or
|
||||
variable may be created. If a local variable is created, the first-use-offset of the
|
||||
variable will correspond to the source instruction location. For this reason, it is
|
||||
recommended that the first reference to a variable be created on the the first "assignment"
|
||||
recommended that the first reference to a variable be created on the first "assignment"
|
||||
instruction. If a newly created variable is unwanted, it may be deleted by clicking on it
|
||||
within the Listing and hitting the "<I>Delete</I>" key. Keep in mind that when a variable
|
||||
is deleted, any explicit bindings to that variable will be cleared.<BR>
|
||||
|
||||
@@ -275,7 +275,7 @@
|
||||
<BLOCKQUOTE>
|
||||
<P>Press the <IMG alt="" src="icon.base.plugin.quickfix.done"> toolbar button or use the
|
||||
popup action <B>Execute Selected Action(s)</B> to apply just the selected entries in
|
||||
the table. If only one item is selected when this this is done, the selected item will
|
||||
the table. If only one item is selected when this is done, the selected item will
|
||||
move to the next item in the table to facilitate a one at a time workflow.</P>
|
||||
</BLOCKQUOTE>
|
||||
|
||||
|
||||
@@ -338,7 +338,7 @@
|
||||
<BLOCKQUOTE>
|
||||
<P>This action searches forward in memory, starting at the address just after the current
|
||||
cursor location. It will continue until a match is found or the highest address in the
|
||||
search space is reached. It does not "wrap". If a match is found, it it is added to the
|
||||
search space is reached. It does not "wrap". If a match is found, it is added to the
|
||||
current table of results.</P>
|
||||
</BLOCKQUOTE><A name="Search_Previous"></A>
|
||||
|
||||
@@ -347,7 +347,7 @@
|
||||
<BLOCKQUOTE>
|
||||
<P>This action searches backwards in memory, starting at the address just before the
|
||||
current cursor location. It will continue until a match is found or the lowest address in
|
||||
the search space is reached. It does not "wrap". If a match is found, it it is added to
|
||||
the search space is reached. It does not "wrap". If a match is found, it is added to
|
||||
the current table of results.</P>
|
||||
</BLOCKQUOTE><A name="Refresh_Values"></A>
|
||||
|
||||
|
||||
@@ -117,7 +117,7 @@
|
||||
<LI>Select the <B>Make Table</B> button.</LI>
|
||||
|
||||
<LI>An address table gets created at the location you chose, containing defined addresses
|
||||
which now point to to the address created. These addresses now contain XREFs to the table
|
||||
which now point to the address created. These addresses now contain XREFs to the table
|
||||
entries. If an index to the table exists immediately after the table, it will get created
|
||||
as an array of bytes, as well.</LI>
|
||||
</OL>
|
||||
|
||||
@@ -20,7 +20,7 @@
|
||||
various parts of the listing such as comments, labels, mnemonics, and operands. The
|
||||
<I><A href="SearchAndReplace.htm">Search and Replace</A></I> features allows for globally
|
||||
searching and replacing names or comments on many different types of program elements such as
|
||||
Labels, Functions, Datatypes, Enum Values, and and many others. The
|
||||
Labels, Functions, Datatypes, Enum Values, and many others. The
|
||||
<I><A href="Search_for_Strings.htm">Search For Strings</A></I> feature
|
||||
automatically finds potential ascii strings within the program memory.</P>
|
||||
|
||||
|
||||
@@ -331,7 +331,7 @@
|
||||
<H3><A name="Go_To_External_Location"></A>Navigating to External Locations</H3>
|
||||
|
||||
<BLOCKQUOTE>
|
||||
<P>If you select an external symbol (under the <I>Externals</I> folder in the the symbol
|
||||
<P>If you select an external symbol (under the <I>Externals</I> folder in the symbol
|
||||
tree), you will navigate to an external <I>reference</I> <I>source</I> which has a
|
||||
<I>destination</I> corresponding to the external symbol (i.e., where it is being called
|
||||
from). To actually <B>go to</B> the external location, right mouse click on the external
|
||||
|
||||
@@ -77,7 +77,7 @@
|
||||
<H3><A name="PluginDialog"></A>Configure Plugins Dialog</H3>
|
||||
|
||||
<BLOCKQUOTE>
|
||||
<P>Selecting the <I>Configure</I> link for a package will bring up the the <I>Configure
|
||||
<P>Selecting the <I>Configure</I> link for a package will bring up the <I>Configure
|
||||
Plugins Dialog</I>.</P>
|
||||
</BLOCKQUOTE>
|
||||
|
||||
|
||||
+2
-2
@@ -135,7 +135,7 @@
|
||||
|
||||
<P><IMG alt="" src="help/shared/note.png" border="0"> A normal checkout is indicated by a
|
||||
checkmark with a green background<IMG alt="" src="images/check.png" border="0">, while an
|
||||
exclusive checkout is is indicated by checkmark with a blue background<IMG alt="" src=
|
||||
exclusive checkout is indicated by checkmark with a blue background<IMG alt="" src=
|
||||
"images/checkex.png" border="0">. A checkmark with a red background<IMG alt="" src=
|
||||
"images/checkNotLatest.gif" border="0"> indicates that a newer version has been checked-in
|
||||
by another user.</P>
|
||||
@@ -150,7 +150,7 @@
|
||||
"0"> </H3>
|
||||
|
||||
<BLOCKQUOTE>
|
||||
<P>To check out a file, select the file in the Ghidra Project Window. You can either either
|
||||
<P>To check out a file, select the file in the Ghidra Project Window. You can either
|
||||
click on the check out icon <IMG alt="" src="images/vcCheckOut.png" border="0"> on the tool
|
||||
bar, or right mouse click on the file and choose the <B>Check Out...</B>
|
||||
option. </P>
|
||||
|
||||
+1
-1
@@ -44,7 +44,7 @@
|
||||
<li>Has Encoding Error - boolean flag that indicates the string had byte(s) that could not be converted by the character set.
|
||||
This is usually caused by having the wrong character set or if the string isn't really a string.</li>
|
||||
<li>Charset - name of the character set that this string is encoded in.</li>
|
||||
<li>Unicode Script - a list of the the scripts (alphabets) used in the string.</li>
|
||||
<li>Unicode Script - a list of the scripts (alphabets) used in the string.</li>
|
||||
</ul>
|
||||
<p>The <b>Is Ascii</b>, <b>Has Encoding Error</b>, <b>Unicode Script</b>, and <b>Charset</b> columns are not visible by default. To display
|
||||
them in the table, right click on the column header row and select
|
||||
|
||||
+1
-1
@@ -35,7 +35,7 @@ public abstract class AbstractCreateStructureCmd implements Command<Program> {
|
||||
private Address structureAddress;
|
||||
|
||||
/**
|
||||
* Initializes the this class to create a structure with the given name
|
||||
* Initializes this class to create a structure with the given name
|
||||
* and address when the {@link #applyTo(Program)} is called.
|
||||
*
|
||||
* @param name The name of the structure to create.
|
||||
|
||||
+1
-1
@@ -693,7 +693,7 @@ abstract class AbstractFunctionMerger implements ListingMergeConstants {
|
||||
}
|
||||
|
||||
// NOTE: Parameter level merging gets really complex when the presence of auto-params are inconsistent
|
||||
// between between two functions treat as a signature difference when this occurs
|
||||
// between two functions. Treat this as a signature difference when this occurs.
|
||||
|
||||
for (int i = 0; i < f1Parms.length; i++) {
|
||||
if (f1Parms[i].isAutoParameter() != f2Parms[i].isAutoParameter() ||
|
||||
|
||||
+3
-3
@@ -140,7 +140,7 @@ public class VariousChoicesPanel extends ConflictPanel {
|
||||
* Adds a row to the table that doesn't provide any choices.
|
||||
* Instead this row just provides information.
|
||||
*
|
||||
* @param title title the is placed at the beginning of the row
|
||||
* @param title title that is placed at the beginning of the row
|
||||
* @param info the text for each table column in the row
|
||||
* @param underline true indicates each info string should be underlined
|
||||
* when it appears. (Underlining is done on the header row (row 0) of the table.
|
||||
@@ -170,7 +170,7 @@ public class VariousChoicesPanel extends ConflictPanel {
|
||||
* Adds radiobutton choices as a row of the table.
|
||||
* Radiobuttons allow you to select only one choice in the row.
|
||||
*
|
||||
* @param title title the is placed at the beginning of the row
|
||||
* @param title title that is placed at the beginning of the row
|
||||
* @param choices the text for each choice in the row
|
||||
* @param listener listener that gets notified whenever the state of
|
||||
* one of the radiobuttons in this row changes.
|
||||
@@ -222,7 +222,7 @@ public class VariousChoicesPanel extends ConflictPanel {
|
||||
* Adds checkbox choices as a row of the table.
|
||||
* Check boxes allow you to select one or more choices in the row.
|
||||
*
|
||||
* @param title title the is placed at the beginning of the row
|
||||
* @param title title that is placed at the beginning of the row
|
||||
* @param choices the text for each choice in the row
|
||||
* @param listener listener that gets notified whenever the state of
|
||||
* one of the checkboxes in this row changes.
|
||||
|
||||
+1
-1
@@ -79,7 +79,7 @@ public class ProgramTreeMergeManager implements MergeResolver {
|
||||
* @param myProgram source of changes to apply to the destination
|
||||
* program
|
||||
* @param originalProgram program that was originally checked out
|
||||
* @param latestProgram program that that is the latest version; the
|
||||
* @param latestProgram program that is the latest version; the
|
||||
* resultProgram and latestProgram start out as being identical
|
||||
* @param latestChangeSet change set of the destination program
|
||||
* @param myChangeSet change set for the source program
|
||||
|
||||
+1
-1
@@ -126,7 +126,7 @@ public class ConstantPropagationAnalyzer extends AbstractAnalyzer {
|
||||
}
|
||||
|
||||
/**
|
||||
* Called to to register a more specific analyzer.
|
||||
* Called to register a more specific analyzer.
|
||||
*
|
||||
* @param processorName
|
||||
*/
|
||||
|
||||
+1
-1
@@ -1107,7 +1107,7 @@ public class OperandReferenceAnalyzer extends AbstractAnalyzer {
|
||||
/**
|
||||
* Returns the length of the Unicode string found at address.
|
||||
*
|
||||
* @return length of string in in words (two byte unicode characters).
|
||||
* @return length of string in words (two byte unicode characters).
|
||||
*/
|
||||
private int checkUnicodeString(Memory mem, Address adref) {
|
||||
int len = getWStrLen(mem, adref); // returns -1 for bad
|
||||
|
||||
+2
-2
@@ -109,8 +109,8 @@ class RegisterContextBuilder {
|
||||
* @param instr first instruction of range
|
||||
* @param valueFrom point from which existing register value should
|
||||
* be read from program context.
|
||||
* @param overwrite this method will take not action and return false if
|
||||
* this parameter is false and and a context value has previously been set,
|
||||
* @param overwrite this method will take no action and return false if
|
||||
* this parameter is false and a context value has previously been set,
|
||||
* otherwise an attempt will be made to overwrite the current value state.
|
||||
* @return true if value was set, otherwise false.
|
||||
*/
|
||||
|
||||
+1
-1
@@ -891,7 +891,7 @@ class RustType implements SymbolNode {
|
||||
}
|
||||
|
||||
/**
|
||||
* Parses and represents a a rust symbol const node
|
||||
* Parses and represents a rust symbol const node
|
||||
*/
|
||||
class RustConst implements SymbolNode {
|
||||
String name;
|
||||
|
||||
@@ -119,7 +119,7 @@ public abstract class CallNode extends GTreeSlowLoadingNode {
|
||||
Function function = nodeToAdd.getRemoteFunction();
|
||||
List<GTreeNode> nodes = nodesByFunction.get(function);
|
||||
if (nodes.isEmpty()) {
|
||||
nodes.add(nodeToAdd); // can can always add new nodes when the list is empty
|
||||
nodes.add(nodeToAdd); // we can always add new nodes when the list is empty
|
||||
return;
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -25,7 +25,7 @@ import ghidra.util.ColorUtils;
|
||||
/**
|
||||
* Class for blending two {@link ListingBackgroundColorModel}s. If neither model has a color
|
||||
* different from its default, then the primary's color is returned. If only one model
|
||||
* has a color different from its default, that that color is returned. If they both have
|
||||
* has a color different from its default, then that color is returned. If they both have
|
||||
* colors different, the color returned is a blend of the two colors.
|
||||
*/
|
||||
|
||||
|
||||
+2
-2
@@ -56,7 +56,7 @@ public class ProgramLocator {
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a {@link DomainFile} based based ProgramLocator for the current version of a Program.
|
||||
* Creates a {@link DomainFile}-based ProgramLocator for the current version of a Program.
|
||||
* @param domainFile the DomainFile for a program
|
||||
*/
|
||||
public ProgramLocator(DomainFile domainFile) {
|
||||
@@ -64,7 +64,7 @@ public class ProgramLocator {
|
||||
}
|
||||
|
||||
/**
|
||||
* Creates a {@link DomainFile} based based ProgramLocator for a specific Program version.
|
||||
* Creates a {@link DomainFile}-based ProgramLocator for a specific Program version.
|
||||
* @param domainFile the DomainFile for a program
|
||||
* @param version the specific version of the program
|
||||
*/
|
||||
|
||||
+2
-2
@@ -39,14 +39,14 @@ import ghidra.util.UserSearchUtils;
|
||||
import ghidra.util.task.TaskMonitor;
|
||||
|
||||
/**
|
||||
* This class attempts to search for text as it is rendered on the screen. This in in
|
||||
* This class attempts to search for text as it is rendered on the screen. This is in
|
||||
* contrast to the Program Database Searcher which searches the database. This is
|
||||
* needed because some information on the screen is rendered "on the fly" and not
|
||||
* stored in the database. This searcher is much slower, but delivers
|
||||
* results that are in-line with what the user sees.
|
||||
* <p>
|
||||
* The search is performed in two steps. First it uses Instruction and Data iterators to
|
||||
* find possible addresses where where information would be rendered. Then for each of those
|
||||
* find possible addresses where information would be rendered. Then for each of those
|
||||
* addresses, it uses the code browsers rendering engine to produce a textual representation
|
||||
* for that address. The textual representation also maintains information about the field
|
||||
* that generated it so that the search can be constrained to specific fields such as the
|
||||
|
||||
+3
-3
@@ -171,7 +171,7 @@ public class ClassCategoryNode extends SymbolCategoryNode {
|
||||
return;
|
||||
}
|
||||
|
||||
// start with the the top-level class node and walk the namespace path to find the
|
||||
// start with the top-level class node and walk the namespace path to find the
|
||||
// parent for the given symbol
|
||||
GTreeNode classNode = entry.getKey();
|
||||
List<Namespace> parentPath = entry.getValue();
|
||||
@@ -205,7 +205,7 @@ public class ClassCategoryNode extends SymbolCategoryNode {
|
||||
Set<Entry<GTreeNode, List<Namespace>>> entries = classNodes.entrySet();
|
||||
for (Entry<GTreeNode, List<Namespace>> entry : entries) {
|
||||
|
||||
// start with the the top-level class node and walk the namespace path to find the
|
||||
// start with the top-level class node and walk the namespace path to find the
|
||||
// parent for the given symbol
|
||||
GTreeNode classNode = entry.getKey();
|
||||
List<Namespace> parentPath = entry.getValue();
|
||||
@@ -237,7 +237,7 @@ public class ClassCategoryNode extends SymbolCategoryNode {
|
||||
|
||||
|
||||
In this tree, the Label2 symbol is in the tree twice. The mapping created by this method
|
||||
will have have as keys both Class1 and Class2. Class1 will be mapped to Class1/BarNs/Class2
|
||||
will have as keys both Class1 and Class2. Class1 will be mapped to Class1/BarNs/Class2
|
||||
and Class2 will be mapped to Class2 (since it only has one namespace element).
|
||||
|
||||
This code is needed because this Classes category node will duplicate class nodes. It puts
|
||||
|
||||
+1
-1
@@ -119,7 +119,7 @@ class RuntimeInfoProvider extends ReusableDialogComponentProvider {
|
||||
/**
|
||||
* Adds an "application layout" panel to the tabbed pane.
|
||||
* <p>
|
||||
* The goal of this panel is to display information information about the application such as
|
||||
* The goal of this panel is to display information about the application such as
|
||||
* what directories it is using on disk, what its PID is, etc.
|
||||
*/
|
||||
private void addApplicationLayout() {
|
||||
|
||||
@@ -800,7 +800,7 @@ public abstract class GhidraScript extends FlatProgramAPI {
|
||||
* <p>
|
||||
* The script being run uses the given {@link GhidraState} (e.g., script variables)
|
||||
* Any changes to the state by the script being run will be reflected in the given state
|
||||
* object. If the given object is the current state, the this scripts state may be changed
|
||||
* object. If the given object is the current state, this scripts state may be changed
|
||||
* by the called script.
|
||||
*
|
||||
* @param scriptName the name of the script to run
|
||||
@@ -822,7 +822,7 @@ public abstract class GhidraScript extends FlatProgramAPI {
|
||||
* <p>
|
||||
* The script being run uses the given {@link GhidraState} (e.g., script variables)
|
||||
* Any changes to the state by the script being run will be reflected in the given state
|
||||
* object. If the given object is the current state, the this scripts state may be changed
|
||||
* object. If the given object is the current state, this scripts state may be changed
|
||||
* by the called script.
|
||||
*
|
||||
* @param scriptName the name of the script to run
|
||||
|
||||
@@ -45,7 +45,7 @@ public interface MarkerSet extends Comparable<MarkerSet> {
|
||||
public void add(AddressRange range);
|
||||
|
||||
/**
|
||||
* Sets the AddressSetCollection to be used for this this marker set.
|
||||
* Sets the AddressSetCollection to be used for this marker set.
|
||||
*
|
||||
* <p><strong>Warning!</strong>
|
||||
* Using this method will cause this MarkerSet to directly use the given AddressSetCollection.
|
||||
|
||||
+1
-1
@@ -62,7 +62,7 @@ public interface VSCodeIntegrationService {
|
||||
public void createVSCodeModuleProject(File projectDir) throws IOException;
|
||||
|
||||
/**
|
||||
* Adds the given project directory to the the given Visual Studio Code workspace file
|
||||
* Adds the given project directory to the given Visual Studio Code workspace file
|
||||
* A new workspace will be created if it doesn't already exist
|
||||
*
|
||||
* @param workspaceFile The location of the workspace file
|
||||
|
||||
@@ -451,7 +451,7 @@ public class AddressInput extends JPanel implements FocusableEditor {
|
||||
}
|
||||
|
||||
private String removeLeadingZeros(String addressString) {
|
||||
// if it has a colon, then is is a segmented address, don't mess with it.
|
||||
// if it has a colon, then it is a segmented address, don't mess with it.
|
||||
if (addressString.indexOf(":") >= 0) {
|
||||
return addressString;
|
||||
}
|
||||
|
||||
+1
-1
@@ -53,7 +53,7 @@ public class CoffArchiveMemberHeader implements StructConverter {
|
||||
|
||||
/**
|
||||
* Reads a COFF archive member header from the specified {@link BinaryReader reader},
|
||||
* leaving the file position at the start of the this member's payload.
|
||||
* leaving the file position at the start of this member's payload.
|
||||
* <p>
|
||||
* The archive member's name is fixed up using the specified {@link LongNamesMember longNames}
|
||||
* object.
|
||||
|
||||
+1
-1
@@ -33,7 +33,7 @@ public class DWARFLocationListHeader extends DWARFIndirectTableHeader {
|
||||
// address_size : 1 byte
|
||||
// segment_selector_size : 1 byte
|
||||
// offset entry count: 4 bytes
|
||||
// offsets : array of elements are are dwarf_format_int sized
|
||||
// offsets : array of elements that are dwarf_format_int sized
|
||||
|
||||
long startOffset = reader.getPointerIndex();
|
||||
DWARFLengthValue lengthInfo = DWARFLengthValue.read(reader, defaultIntSize);
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user