From d7cc532fe329a98961803d20b420790fba97e988 Mon Sep 17 00:00:00 2001 From: RoboSchmied Date: Fri, 22 Mar 2024 02:25:30 +0100 Subject: [PATCH] Fix: 132 typos Signed-off-by: RoboSchmied --- .../src/global/docs/ChangeHistory.html | 6 ++--- .../pcodetest/c_src/pcode_test.h | 2 +- .../DataTypeEditors/StructureEditor.htm | 4 ++-- .../help/topics/ImporterPlugin/importer.htm | 2 +- .../topics/Tables/GhidraTableHeaders.html | 2 +- .../core/searchmem/MemSearchDialog.java | 4 ++-- .../core/searchmem/MemSearchPlugin.java | 2 +- .../debug/GenerateOldLanguagePlugin.java | 2 +- .../app/util/bin/format/elf/ElfHeader.java | 8 +++---- .../ghidra/app/util/opinion/XmlLoader.java | 2 +- .../java/ghidra/app/util/xml/ProgramInfo.java | 2 +- .../java/ghidra/test/ToyProgramBuilder.java | 6 ++--- .../support/PCodeTestControlBlock.java | 2 +- .../java/ghidra/util/state/ContextState.java | 2 +- .../util/table/field/BytesTableColumn.java | 4 ++-- .../column/EndianProjectDataColumn.java | 2 +- .../core/searchmem/AbstractMemSearchTest.java | 2 +- .../core/searchmem/MemSearchAsciiTest.java | 2 +- .../model/data/CompositeZeroArrayTest.java | 2 +- .../model/data/StructureDataTypeTest.java | 2 +- .../Decompiler/src/decompile/cpp/cast.hh | 2 +- .../src/decompile/cpp/emulateutil.hh | 4 ++-- .../src/decompile/cpp/sleigh_arch.hh | 2 +- .../src/decompile/cpp/slgh_compile.cc | 4 ++-- .../src/main/doc/decompileplugin.xml | 2 +- .../Decompiler/src/main/doc/pcoderef.xml | 8 +++---- .../Decompiler/src/main/doc/sleigh.xml | 18 +++++++-------- .../DecompilePlugin/DecompilerConcepts.html | 2 +- .../src/main/java/sarif/SarifLoader.java | 2 +- .../main/java/sarif/managers/ProgramInfo.java | 2 +- .../ghidra/pcode/memstate/MemoryBank.java | 2 +- .../main/java/ghidra/util/DataConverter.java | 2 +- .../processors/sleigh/SleighDebugLogger.java | 2 +- .../slgh_compile/SleighCompile.java | 2 +- .../program/database/mem/MemoryMapDB.java | 2 +- .../model/data/DataOrganizationImpl.java | 14 ++++++------ .../model/data/EndianSettingsDefinition.java | 10 ++++----- .../model/data/StringDataInstance.java | 2 +- .../ghidra/program/model/data/Structure.java | 2 +- .../program/model/data/StructureDataType.java | 4 ++-- .../java/ghidra/program/model/data/Union.java | 2 +- .../ghidra/program/model/lang/Endian.java | 12 +++++----- .../program/model/lang/LanguageService.java | 4 ++-- .../model/lang/SleighLanguageDescription.java | 4 ++-- .../model/listing/VariableStorage.java | 2 +- .../ghidra/program/model/mem/MemBuffer.java | 22 +++++++++---------- .../ghidra/program/util/AddressEvaluator.java | 2 +- .../program/util/DefaultLanguageService.java | 8 +++---- .../database/data/StructureDBTest.java | 4 ++-- .../program/database/data/UnionDBTest.java | 2 +- .../ARM/data/languages/ARMinstructions.sinc | 2 +- .../Toy/data/languages/old/v01stuff/toy.sinc | 2 +- .../Xtensa/data/languages/xtensa.cspec | 4 ++-- .../languages/html/pcodedescription.html | 4 ++-- GhidraDocs/languages/html/pcoderef.html | 4 ++-- GhidraDocs/languages/html/sleigh.html | 4 ++-- .../languages/html/sleigh_definitions.html | 10 ++++----- GhidraDocs/languages/html/sleigh_tokens.html | 4 ++-- 58 files changed, 122 insertions(+), 122 deletions(-) diff --git a/Ghidra/Configurations/Public_Release/src/global/docs/ChangeHistory.html b/Ghidra/Configurations/Public_Release/src/global/docs/ChangeHistory.html index 80b31d54ca..29fe27c1ab 100644 --- a/Ghidra/Configurations/Public_Release/src/global/docs/ChangeHistory.html +++ b/Ghidra/Configurations/Public_Release/src/global/docs/ChangeHistory.html @@ -467,7 +467,7 @@
  • Build. Added support for building with Gradle 8. (GP-2476, Issue #3527, #5003)
  • Build. The build now enforces a maximum-supported Gradle version. The current supported versions are Gradle 7.3 or later. (GP-3111)
  • Build. Ghidra can now run from development/repository mode using Gradle's compiled jars, instead of just relying on Eclipse's compilation output. (GP-3140)
  • -
  • C Parsing. Provided GDT archives have been updated to include new ProgramArchitecture settings for processor, data organization, and endianess. (GP-1377)
  • +
  • C Parsing. Provided GDT archives have been updated to include new ProgramArchitecture settings for processor, data organization, and endianness. (GP-1377)
  • CParser. Removed unnecessary -D defines related to wchar_t from CParser prf files and GDT parsing scripts. (GP-3294, Issue #5196)
  • Data Types. Function definitions can now be applied from selected Category instead of only from an entire Archive. (GP-199)
  • Data Types. Changed Structure/Union editor to show numbers in hex format by default. Also added Shift-H keybinding action for toggling hex/decimal view. (GP-2943)
  • @@ -1760,7 +1760,7 @@
  • Data Types. Fixed a NullPointerException that occurred when trying to edit a function datatype in a datatype archive when there was no open program in the tool. (GP-356, Issue #2407)
  • Data Types. Corrected the retention of datatype archive search paths, which did not properly remember disabled paths. (GP-639)
  • Data Types. Fixed potential deadlock encountered when working with the DataTypes tree. (GP-774, Issue #2832)
  • -
  • Decompiler. Fixed endianess issue for joined, two-register returns of longlong values for MIPS 32-bit little endian variants. (GP-513)
  • +
  • Decompiler. Fixed endianness issue for joined, two-register returns of longlong values for MIPS 32-bit little endian variants. (GP-513)
  • Decompiler. The Decompiler no longer emits comments in the middle of conditional expressions. (GP-621, Issue #1670)
  • Decompiler. Fixed Redefinition of structure... exceptions in the Decompiler caused by a PNG Image and other opaque datatypes. (GP-820, Issue #2734)
  • Decompiler. Fixed infinite loop in the Decompiler when analyzing return values. (GP-821, Issue #2851)
  • @@ -1921,7 +1921,7 @@
  • Decompiler. Fixed issue with the Auto Create/Fill Structure command that caused it to silently miss some pointer accesses. (GP-344)
  • Decompiler. Jump table recovery now takes into account encoded bits, like ARM/THUMB mode transition, that may be present in address tables. (GP-387, Issue #2420)
  • Decompiler. Fixed a bug in the Decompiler renaming action when applied to function references. (GP-477, Issue #2415)
  • -
  • Decompiler. Corrected 8-byte return value storage specification in compiler-spec affecting longlong and double return values. Endianess ordering of r0/r1 was incorrect. (GP-512, Issue #2547)
  • +
  • Decompiler. Corrected 8-byte return value storage specification in compiler-spec affecting longlong and double return values. Endianness ordering of r0/r1 was incorrect. (GP-512, Issue #2547)
  • Graphing. Fixed the Function Graph's drag-to-select-nodes feature. (GP-430)
  • Graphing. Fixed issue where the graph in the satellite view is sometimes truncated. (GP-469)
  • Graphing. Fixed a stack trace issue caused by reusing a graph display window to show a graph that is larger than is allowed. (GP-492)
  • diff --git a/Ghidra/Extensions/SleighDevTools/pcodetest/c_src/pcode_test.h b/Ghidra/Extensions/SleighDevTools/pcodetest/c_src/pcode_test.h index 6787ee493b..474807ea40 100644 --- a/Ghidra/Extensions/SleighDevTools/pcodetest/c_src/pcode_test.h +++ b/Ghidra/Extensions/SleighDevTools/pcodetest/c_src/pcode_test.h @@ -42,7 +42,7 @@ typedef struct PACKED_STRUCTURE TestInfo { char id[8]; /* id constains a "Magic Number" which will allow us to find this in a binary */ u4 ptrSz; /* how many bytes in a pointer? */ - u4 byteOrder; /* value 0x01020304 used to detect endianess */ + u4 byteOrder; /* value 0x01020304 used to detect endianness */ void *onPass; /* address of breakOnPass function, (where it goes on test pass) */ void *onError; /* address of breakOnError function, (where it goes on test failure) */ void *onDone; /* address of breakOnDone function, (where it goes when all test done) */ diff --git a/Ghidra/Features/Base/src/main/help/help/topics/DataTypeEditors/StructureEditor.htm b/Ghidra/Features/Base/src/main/help/help/topics/DataTypeEditors/StructureEditor.htm index eb0c250284..96678b8888 100644 --- a/Ghidra/Features/Base/src/main/help/help/topics/DataTypeEditors/StructureEditor.htm +++ b/Ghidra/Features/Base/src/main/help/help/topics/DataTypeEditors/StructureEditor.htm @@ -362,7 +362,7 @@ bit-size is generally appended to the base datatype for datatype specification and presentation purposes (e.g., char:1).
  • A zero-length bitfield may be defined within a byte but its precise bit position - is controlled by endianess alone. A zero-length bitfield has no affect within a non-packed + is controlled by endianness alone. A zero-length bitfield has no affect within a non-packed structure and is intended for use within packed structures where it may impart alignment affects based upon compiler conventions.
  • Inserting a bitfield within a non-packed structure may cause component shifts based @@ -382,7 +382,7 @@

    Note:While packing of bitfields within packed structures is controlled by the compiler specification (e.g., data organization), bit-packing - order is currently fixed based upon endianess. Little-endian packs starting with bit-0 (lsb) + order is currently fixed based upon endianness. Little-endian packs starting with bit-0 (lsb) while big-endian packs starting with bit-7 (msb).

    Note:The use of bitfield components is not diff --git a/Ghidra/Features/Base/src/main/help/help/topics/ImporterPlugin/importer.htm b/Ghidra/Features/Base/src/main/help/help/topics/ImporterPlugin/importer.htm index 7761843a34..46c598862e 100644 --- a/Ghidra/Features/Base/src/main/help/help/topics/ImporterPlugin/importer.htm +++ b/Ghidra/Features/Base/src/main/help/help/topics/ImporterPlugin/importer.htm @@ -802,7 +802,7 @@

  • Size - the size in bits of the processor address space
  • -
  • Endian - the endianess of the processor
  • +
  • Endian - the endianness of the processor
  • Compile - the compiler specification used to build the program
  • diff --git a/Ghidra/Features/Base/src/main/help/help/topics/Tables/GhidraTableHeaders.html b/Ghidra/Features/Base/src/main/help/help/topics/Tables/GhidraTableHeaders.html index 8d4ae5f55f..22ad048284 100644 --- a/Ghidra/Features/Base/src/main/help/help/topics/Tables/GhidraTableHeaders.html +++ b/Ghidra/Features/Base/src/main/help/help/topics/Tables/GhidraTableHeaders.html @@ -130,7 +130,7 @@

    - This dialog allows you to change various features of the bytes column, such as endianess + This dialog allows you to change various features of the bytes column, such as endianness and the number of bytes that appear in the display.

    diff --git a/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/searchmem/MemSearchDialog.java b/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/searchmem/MemSearchDialog.java index ee57b50e27..8435c0f76b 100644 --- a/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/searchmem/MemSearchDialog.java +++ b/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/searchmem/MemSearchDialog.java @@ -113,7 +113,7 @@ class MemSearchDialog extends ReusableDialogComponentProvider { mainPanel = buildMainPanel(); addWorkPanel(mainPanel); buildButtons(); - setEndianess(isBigEndian); + setEndianness(isBigEndian); setAlignment(1); setUseSharedLocation(true); } @@ -135,7 +135,7 @@ class MemSearchDialog extends ReusableDialogComponentProvider { updateDisplay(); } - void setEndianess(boolean isBigEndian) { + void setEndianness(boolean isBigEndian) { if (isBigEndian) { bigEndian.setSelected(isBigEndian); } diff --git a/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/searchmem/MemSearchPlugin.java b/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/searchmem/MemSearchPlugin.java index 5c02dfe394..19d7b8fde8 100644 --- a/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/searchmem/MemSearchPlugin.java +++ b/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/core/searchmem/MemSearchPlugin.java @@ -280,7 +280,7 @@ public class MemSearchPlugin extends Plugin implements OptionsChangeListener, searchDialog.setShowAdvancedOptions(showAdvancedOptions); } else { - searchDialog.setEndianess(navigatable.getProgram().getLanguage().isBigEndian()); + searchDialog.setEndianness(navigatable.getProgram().getLanguage().isBigEndian()); searchDialog.close(); // close it to make sure it gets parented to the current focused window. } diff --git a/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/debug/GenerateOldLanguagePlugin.java b/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/debug/GenerateOldLanguagePlugin.java index 5535277c3e..b0c600bbf2 100644 --- a/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/debug/GenerateOldLanguagePlugin.java +++ b/Ghidra/Features/Base/src/main/java/ghidra/app/plugin/debug/GenerateOldLanguagePlugin.java @@ -545,7 +545,7 @@ public class GenerateOldLanguagePlugin extends Plugin implements ApplicationLeve */ @Override public List getLanguageDescriptions(Processor processor, - Endian endianess, Integer size, String variant) { + Endian endianness, Integer size, String variant) { throw new UnsupportedOperationException(); } diff --git a/Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/elf/ElfHeader.java b/Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/elf/ElfHeader.java index 2e063897eb..c0c6a13477 100644 --- a/Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/elf/ElfHeader.java +++ b/Ghidra/Features/Base/src/main/java/ghidra/app/util/bin/format/elf/ElfHeader.java @@ -117,7 +117,7 @@ public class ElfHeader implements StructConverter { e_ident_magic_num = ElfConstants.MAGIC_NUM; e_ident_magic_str = ElfConstants.MAGIC_STR; - determineHeaderEndianess(); + determineHeaderEndianness(); // reader uses unbounded provider wrapper to allow handling of missing/truncated headers reader = new BinaryReader(new UnlimitedByteProviderWrapper(provider), @@ -1328,7 +1328,7 @@ public class ElfHeader implements StructConverter { return false; } - private void determineHeaderEndianess() throws ElfException, IOException { + private void determineHeaderEndianness() throws ElfException, IOException { if (provider.length() < INITIAL_READ_LEN) { throw new ElfException("Not enough bytes to be a valid ELF executable."); @@ -1344,10 +1344,10 @@ public class ElfHeader implements StructConverter { Integer.toHexString(bytes[ElfConstants.EI_DATA]) + ")"); } if (!hasLittleEndianHeaders && bytes[ElfConstants.EI_NIDENT] != 0) { - // Header endianess sanity check + // Header endianness sanity check // Some toolchains always use little endian Elf Headers - // TODO: unsure if forced endianess applies to relocation data + // TODO: unsure if forced endianness applies to relocation data // Check first byte of version (allow switch if equal 1) if (bytes[ElfConstants.EI_NIDENT + 4] == 1) { diff --git a/Ghidra/Features/Base/src/main/java/ghidra/app/util/opinion/XmlLoader.java b/Ghidra/Features/Base/src/main/java/ghidra/app/util/opinion/XmlLoader.java index 11f6da0da2..0294978ade 100644 --- a/Ghidra/Features/Base/src/main/java/ghidra/app/util/opinion/XmlLoader.java +++ b/Ghidra/Features/Base/src/main/java/ghidra/app/util/opinion/XmlLoader.java @@ -134,7 +134,7 @@ public class XmlLoader extends AbstractProgramLoader { } if (loadSpecs.isEmpty()) { - // just put 'em all in (give endianess preference) + // just put 'em all in (give endianness preference) Endian endian = Endian.toEndian(info.endian); List languageDescriptions = getLanguageService().getLanguageDescriptions(false); diff --git a/Ghidra/Features/Base/src/main/java/ghidra/app/util/xml/ProgramInfo.java b/Ghidra/Features/Base/src/main/java/ghidra/app/util/xml/ProgramInfo.java index bd93d4c295..824f3b9a9e 100644 --- a/Ghidra/Features/Base/src/main/java/ghidra/app/util/xml/ProgramInfo.java +++ b/Ghidra/Features/Base/src/main/java/ghidra/app/util/xml/ProgramInfo.java @@ -49,7 +49,7 @@ public class ProgramInfo { public String version; /**The size of the addressing (eg, "32 bit"). @deprecated since version 2.1.*/ public String addressModel; - /**The endianess (eg, big or little).*/ + /**The endianness (eg, big or little).*/ public String endian; /**The absolute path of where the original executable was imported.*/ public String exePath; diff --git a/Ghidra/Features/Base/src/main/java/ghidra/test/ToyProgramBuilder.java b/Ghidra/Features/Base/src/main/java/ghidra/test/ToyProgramBuilder.java index 261bf44e37..6334510753 100644 --- a/Ghidra/Features/Base/src/main/java/ghidra/test/ToyProgramBuilder.java +++ b/Ghidra/Features/Base/src/main/java/ghidra/test/ToyProgramBuilder.java @@ -53,7 +53,7 @@ public class ToyProgramBuilder extends ProgramBuilder { * Construct toy program builder using toy language "builder" variant. * This builder will be the program consumer and must be disposed * @param name program name - * @param bigEndian language endianess + * @param bigEndian language endianness * @throws Exception */ public ToyProgramBuilder(String name, boolean bigEndian) throws Exception { @@ -64,7 +64,7 @@ public class ToyProgramBuilder extends ProgramBuilder { * Construct toy program builder using toy language "builder" variant. * This builder will be the program consumer and must be disposed * @param name program name - * @param bigEndian language endianess + * @param bigEndian language endianness * @param consumer program consumer (if null this builder will be used as consumer and must be disposed to release program) * @throws Exception */ @@ -76,7 +76,7 @@ public class ToyProgramBuilder extends ProgramBuilder { * Construct toy program builder using toy language "builder" variant. * This builder will be the program consumer and must be disposed * @param name program name - * @param bigEndian language endianess + * @param bigEndian language endianness * @param consumer program consumer (if null this builder will be used as consumer and must be disposed to release program) * @throws Exception */ diff --git a/Ghidra/Features/Base/src/main/java/ghidra/test/processors/support/PCodeTestControlBlock.java b/Ghidra/Features/Base/src/main/java/ghidra/test/processors/support/PCodeTestControlBlock.java index 0cc07d06f3..b6893fe804 100644 --- a/Ghidra/Features/Base/src/main/java/ghidra/test/processors/support/PCodeTestControlBlock.java +++ b/Ghidra/Features/Base/src/main/java/ghidra/test/processors/support/PCodeTestControlBlock.java @@ -204,7 +204,7 @@ public class PCodeTestControlBlock extends PCodeTestAbstractControlBlock { if (byteOrder != 0x1020304) { throw new InvalidControlBlockException( "TestInfo @ " + infoStructAddr.toString(true) + - " has invalid byteOrder - language endianess may be incorrect (" + + " has invalid byteOrder - language endianness may be incorrect (" + Integer.toHexString(byteOrder) + ")"); } diff --git a/Ghidra/Features/Base/src/main/java/ghidra/util/state/ContextState.java b/Ghidra/Features/Base/src/main/java/ghidra/util/state/ContextState.java index c09f51a6fb..ec3de42375 100644 --- a/Ghidra/Features/Base/src/main/java/ghidra/util/state/ContextState.java +++ b/Ghidra/Features/Base/src/main/java/ghidra/util/state/ContextState.java @@ -692,7 +692,7 @@ public class ContextState { /** * Combine byte values into a single varnode value. - * @param byteValues bytes stored with LSB in bytes[0] and MSB in bytes[bytes.length-1] with correct endianess. + * @param byteValues bytes stored with LSB in bytes[0] and MSB in bytes[bytes.length-1] with correct endianness. * @return varnode or null */ private Varnode combineByteValues(Varnode[] byteValues, TaskMonitor monitor) diff --git a/Ghidra/Features/Base/src/main/java/ghidra/util/table/field/BytesTableColumn.java b/Ghidra/Features/Base/src/main/java/ghidra/util/table/field/BytesTableColumn.java index c815273328..ce86c12c65 100644 --- a/Ghidra/Features/Base/src/main/java/ghidra/util/table/field/BytesTableColumn.java +++ b/Ghidra/Features/Base/src/main/java/ghidra/util/table/field/BytesTableColumn.java @@ -34,11 +34,11 @@ public class BytesTableColumn extends ProgramLocationTableColumnExtensionPoint monospacedRenderer = new MonospacedByteRenderer(); diff --git a/Ghidra/Features/Base/src/main/java/ghidra/util/table/projectdata/column/EndianProjectDataColumn.java b/Ghidra/Features/Base/src/main/java/ghidra/util/table/projectdata/column/EndianProjectDataColumn.java index be399dbff2..293b4c5654 100644 --- a/Ghidra/Features/Base/src/main/java/ghidra/util/table/projectdata/column/EndianProjectDataColumn.java +++ b/Ghidra/Features/Base/src/main/java/ghidra/util/table/projectdata/column/EndianProjectDataColumn.java @@ -25,7 +25,7 @@ import ghidra.util.table.column.AbstractGhidraColumnRenderer; import ghidra.util.table.column.GColumnRenderer; /** - * Column for the ProjectDataTable (Frontend) to display the endianess of a program. + * Column for the ProjectDataTable (Frontend) to display the endianness of a program. */ public class EndianProjectDataColumn extends ProjectDataColumn { diff --git a/Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/searchmem/AbstractMemSearchTest.java b/Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/searchmem/AbstractMemSearchTest.java index 04e05c4907..ce118b9ab5 100644 --- a/Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/searchmem/AbstractMemSearchTest.java +++ b/Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/searchmem/AbstractMemSearchTest.java @@ -297,7 +297,7 @@ public abstract class AbstractMemSearchTest extends AbstractProgramBasedTest { return hlProvider.createHighlights(bytes, field, -1); } - protected void setEndianess(String text) { + protected void setEndianness(String text) { // we use this method because the given button may be disabled, which means we cannot // click it, but we can select it AbstractButton button = findAbstractButtonByText(pane, text); diff --git a/Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/searchmem/MemSearchAsciiTest.java b/Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/searchmem/MemSearchAsciiTest.java index df55a46838..ef2300365a 100644 --- a/Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/searchmem/MemSearchAsciiTest.java +++ b/Ghidra/Features/Base/src/test.slow/java/ghidra/app/plugin/core/searchmem/MemSearchAsciiTest.java @@ -191,7 +191,7 @@ public class MemSearchAsciiTest extends AbstractMemSearchTest { public void testUnicodeBigEndian() throws Exception { // with Big Endian selected, unicode bytes should be reversed - setEndianess("Big Endian"); + setEndianness("Big Endian"); setEncoding(StandardCharsets.UTF_16); setValueText("start"); diff --git a/Ghidra/Features/Base/src/test/java/ghidra/program/model/data/CompositeZeroArrayTest.java b/Ghidra/Features/Base/src/test/java/ghidra/program/model/data/CompositeZeroArrayTest.java index ec45b234a8..cba9f8a7ac 100644 --- a/Ghidra/Features/Base/src/test/java/ghidra/program/model/data/CompositeZeroArrayTest.java +++ b/Ghidra/Features/Base/src/test/java/ghidra/program/model/data/CompositeZeroArrayTest.java @@ -19,7 +19,7 @@ import org.junit.Test; public class CompositeZeroArrayTest extends AbstractCompositeZeroArrayTest { - // NOTE: In the absence of bit-fields these tests are not sensitive to endianess + // NOTE: In the absence of bit-fields these tests are not sensitive to endianness private static DataTypeManager dataMgr; diff --git a/Ghidra/Features/Base/src/test/java/ghidra/program/model/data/StructureDataTypeTest.java b/Ghidra/Features/Base/src/test/java/ghidra/program/model/data/StructureDataTypeTest.java index 249f327956..69b9c1ea33 100644 --- a/Ghidra/Features/Base/src/test/java/ghidra/program/model/data/StructureDataTypeTest.java +++ b/Ghidra/Features/Base/src/test/java/ghidra/program/model/data/StructureDataTypeTest.java @@ -1936,7 +1936,7 @@ public class StructureDataTypeTest extends AbstractGenericTest { public void testReplaceWith2() throws InvalidDataTypeException { // NOTE: pack(disabled) bitfields should remain unchanged when - // transitioning endianess even though it makes little sense. + // transitioning endianness even though it makes little sense. // pack(disabled) structures are not intended to be portable! TypeDef td = new TypedefDataType("Foo", IntegerDataType.dataType); diff --git a/Ghidra/Features/Decompiler/src/decompile/cpp/cast.hh b/Ghidra/Features/Decompiler/src/decompile/cpp/cast.hh index 6d8dadff51..8d315fed05 100644 --- a/Ghidra/Features/Decompiler/src/decompile/cpp/cast.hh +++ b/Ghidra/Features/Decompiler/src/decompile/cpp/cast.hh @@ -128,7 +128,7 @@ public: /// \return \b true if the SUBPIECE should be represented as a cast virtual bool isSubpieceCast(Datatype *outtype,Datatype *intype,uint4 offset) const=0; - /// \brief Is the given data-type truncation considered a cast, given endianess concerns. + /// \brief Is the given data-type truncation considered a cast, given endianness concerns. /// /// This is equivalent to isSubpieceCast() but where the truncation is accomplished by pulling /// bytes directly out of memory. We assume the input data-type is layed down in memory, and diff --git a/Ghidra/Features/Decompiler/src/decompile/cpp/emulateutil.hh b/Ghidra/Features/Decompiler/src/decompile/cpp/emulateutil.hh index f82fa816cc..314349419c 100644 --- a/Ghidra/Features/Decompiler/src/decompile/cpp/emulateutil.hh +++ b/Ghidra/Features/Decompiler/src/decompile/cpp/emulateutil.hh @@ -49,7 +49,7 @@ protected: /// \brief Pull a value from the load-image given a specific address /// /// A contiguous chunk of memory is pulled from the load-image and returned as a - /// constant value, respecting the endianess of the address space. The default implementation + /// constant value, respecting the endianness of the address space. The default implementation /// of this method pulls the value directly from the LoadImage object. /// \param spc is the address space to pull the value from /// \param offset is the starting address offset (from within the space) to pull the value from @@ -121,7 +121,7 @@ class EmulateSnippet : public Emulate { /// \brief Pull a value from the load-image given a specific address /// /// A contiguous chunk of memory is pulled from the load-image and returned as a - /// constant value, respecting the endianess of the address space. + /// constant value, respecting the endianness of the address space. /// \param spc is the address space to pull the value from /// \param offset is the starting address offset (from within the space) to pull the value from /// \param sz is the number of bytes to pull from memory diff --git a/Ghidra/Features/Decompiler/src/decompile/cpp/sleigh_arch.hh b/Ghidra/Features/Decompiler/src/decompile/cpp/sleigh_arch.hh index fa1eab9667..a0f20d934f 100644 --- a/Ghidra/Features/Decompiler/src/decompile/cpp/sleigh_arch.hh +++ b/Ghidra/Features/Decompiler/src/decompile/cpp/sleigh_arch.hh @@ -140,7 +140,7 @@ public: virtual string getDescription(void) const; static string normalizeProcessor(const string &nm); ///< Try to recover a \e language \e id processor field - static string normalizeEndian(const string &nm); ///< Try to recover a \e language \e id endianess field + static string normalizeEndian(const string &nm); ///< Try to recover a \e language \e id endianness field static string normalizeSize(const string &nm); ///< Try to recover a \e language \e id size field static string normalizeArchitecture(const string &nm); ///< Try to recover a \e language \e id string static void scanForSleighDirectories(const string &rootpath); diff --git a/Ghidra/Features/Decompiler/src/decompile/cpp/slgh_compile.cc b/Ghidra/Features/Decompiler/src/decompile/cpp/slgh_compile.cc index c060053bfe..5bc3a0be38 100644 --- a/Ghidra/Features/Decompiler/src/decompile/cpp/slgh_compile.cc +++ b/Ghidra/Features/Decompiler/src/decompile/cpp/slgh_compile.cc @@ -973,7 +973,7 @@ bool ConsistencyChecker::checkVarnodeTruncation(Constructor *ct,int4 slot, /// /// Run through all Varnodes looking for offset templates marked as ConstTpl::v_offset_plus, /// which indicates they were constructed using truncation notation. These truncation expressions -/// are checked for validity and adjusted depending on the endianess of the address space. +/// are checked for validity and adjusted depending on the endianness of the address space. /// \param ct is the Constructor /// \param cttpl is the given p-code section /// \param isbigendian is set to \b true if the SLEIGH specification is big endian @@ -2589,7 +2589,7 @@ void SleighCompile::setEndian(int4 end) { setBigEndian( (end == 1) ); - predefinedSymbols(); // Set up symbols now that we know endianess + predefinedSymbols(); // Set up symbols now that we know endianness } /// \brief Definition a set of Varnodes diff --git a/Ghidra/Features/Decompiler/src/main/doc/decompileplugin.xml b/Ghidra/Features/Decompiler/src/main/doc/decompileplugin.xml index 5706aa44ef..e131bffe1b 100644 --- a/Ghidra/Features/Decompiler/src/main/doc/decompileplugin.xml +++ b/Ghidra/Features/Decompiler/src/main/doc/decompileplugin.xml @@ -1326,7 +1326,7 @@ Processor family - Endianess + Endianness Size of the address bus Processor variant Compiler producing the Program diff --git a/Ghidra/Features/Decompiler/src/main/doc/pcoderef.xml b/Ghidra/Features/Decompiler/src/main/doc/pcoderef.xml index 5dbad3a82d..24bdaed3c8 100644 --- a/Ghidra/Features/Decompiler/src/main/doc/pcoderef.xml +++ b/Ghidra/Features/Decompiler/src/main/doc/pcoderef.xml @@ -198,7 +198,7 @@ of RAM. It is defined simply as an indexed sequence of bytes that can be read and written by the p-code operations. For a specific byte, the unique index that labels it is the byte's address. An address space has a name to identify it, a size that indicates the number of distinct -indices into the space, and an endianess +indices into the space, and an endianness associated with it that indicates how integers and other multi-byte values are encoded into the space. A typical processor will have a ram space, to model @@ -249,7 +249,7 @@ on the varnodes: integer, boolean, and floating-point. Operations that manipulate integers always interpret a varnode as a - twos-complement encoding using the endianess associated with the + twos-complement encoding using the endianness associated with the address space containing the varnode. @@ -878,7 +878,7 @@ subroutine. -This is a concatenation operator that understands the endianess of the +This is a concatenation operator that understands the endianness of the data. The size of input0 and input1 must add up to the size of output. The data from the inputs is concatenated in such a way that, if the inputs and output are considered integers, the first input @@ -928,7 +928,7 @@ makes up the most significant part of the output. -This is a truncation operator that understands the endianess of the +This is a truncation operator that understands the endianness of the data. Input1 indicates the number of least significant bytes of input0 to be thrown away. Output is then filled with any remaining bytes of input0 up to the size of output. If the size of diff --git a/Ghidra/Features/Decompiler/src/main/doc/sleigh.xml b/Ghidra/Features/Decompiler/src/main/doc/sleigh.xml index d9563cdf1a..d83b38ed33 100644 --- a/Ghidra/Features/Decompiler/src/main/doc/sleigh.xml +++ b/Ghidra/Features/Decompiler/src/main/doc/sleigh.xml @@ -294,7 +294,7 @@ forces an interpretation on each varnode that it uses, as either an integer, a floating-point number, or a boolean value. In the case of an integer, the varnode is interpreted as having a big endian or little endian encoding, depending on the specification (see -). Certain instructions +). Certain instructions also distinguish between signed and unsigned interpretations. For a signed integer, the varnode is considered to have a standard twos complement encoding. For a boolean interpretation, the varnode must be @@ -645,10 +645,10 @@ SLEIGH files must start with all the definitions needed by the rest of the specification. All definition statements start with the keyword define and end with a semicolon ‘;’. - -Endianess Definition + +Endianness Definition -The first definition in any SLEIGH specification must be for endianess. Either +The first definition in any SLEIGH specification must be for endianness. Either define endian=big; OR @@ -659,11 +659,11 @@ This defines how the processor interprets contiguous sequences of bytes as integers or other values and globally affects values across all address spaces. It also affects how integer fields within an instruction are interpreted, (see ), -although it is possible to override this setting in the rare case that endianess is +although it is possible to override this setting in the rare case that endianness is different for data versus instruction encoding. The specification designer generally only needs to worry about -endianess when labeling instruction fields and when defining overlapping registers, -otherwise the specification language hides endianess issues. +endianness when labeling instruction fields and when defining overlapping registers, +otherwise the specification language hides endianness issues. @@ -1147,9 +1147,9 @@ field and the range of bits within the token making up the field. The size of a field does not need to be a multiple of 8. The range is inclusive where the least significant bit in the token is labeled 0. When defining tokens that are bigger than 1 byte, the -global endianess setting (See ) +global endianness setting (See ) will affect this labeling. Although it is rarely required, it is possible to override -the global endianess setting for a specific token by appending either the qualifier +the global endianness setting for a specific token by appending either the qualifier endian=little or endian=big immediately after the token name and size. For instance: diff --git a/Ghidra/Features/Decompiler/src/main/help/help/topics/DecompilePlugin/DecompilerConcepts.html b/Ghidra/Features/Decompiler/src/main/help/help/topics/DecompilePlugin/DecompilerConcepts.html index da0f13f2e4..2255c22195 100644 --- a/Ghidra/Features/Decompiler/src/main/help/help/topics/DecompilePlugin/DecompilerConcepts.html +++ b/Ghidra/Features/Decompiler/src/main/help/help/topics/DecompilePlugin/DecompilerConcepts.html @@ -1226,7 +1226,7 @@
    • Processor family
    • -
    • Endianess
    • +
    • Endianness
    • Size of the address bus
    • Processor variant
    • Compiler producing the Program
    • diff --git a/Ghidra/Features/Sarif/src/main/java/sarif/SarifLoader.java b/Ghidra/Features/Sarif/src/main/java/sarif/SarifLoader.java index 7e3447a67e..1b93d450d0 100644 --- a/Ghidra/Features/Sarif/src/main/java/sarif/SarifLoader.java +++ b/Ghidra/Features/Sarif/src/main/java/sarif/SarifLoader.java @@ -149,7 +149,7 @@ public class SarifLoader extends AbstractProgramLoader { } if (loadSpecs.isEmpty() && provider.getName().endsWith(FILE_EXTENSION)) { - // just put 'em all in (give endianess preference) + // just put 'em all in (give endianness preference) List languageDescriptions = getLanguageService().getLanguageDescriptions(false); for (LanguageDescription languageDescription : languageDescriptions) { diff --git a/Ghidra/Features/Sarif/src/main/java/sarif/managers/ProgramInfo.java b/Ghidra/Features/Sarif/src/main/java/sarif/managers/ProgramInfo.java index b3f39ab7b4..782543b357 100644 --- a/Ghidra/Features/Sarif/src/main/java/sarif/managers/ProgramInfo.java +++ b/Ghidra/Features/Sarif/src/main/java/sarif/managers/ProgramInfo.java @@ -49,7 +49,7 @@ public class ProgramInfo { public String version; /**The size of the addressing (eg, "32 bit"). @deprecated since version 2.1.*/ public String addressModel; - /**The endianess (eg, big or little).*/ + /**The endianness (eg, big or little).*/ public String endian; /**The absolute path of where the original executable was imported.*/ public String exePath; diff --git a/Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/memstate/MemoryBank.java b/Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/memstate/MemoryBank.java index 6792f6eee6..0d87303ad8 100644 --- a/Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/memstate/MemoryBank.java +++ b/Ghidra/Framework/Emulation/src/main/java/ghidra/pcode/memstate/MemoryBank.java @@ -30,7 +30,7 @@ public abstract class MemoryBank { * A MemoryBank must be associated with a specific address space, have a preferred or natural * pagesize. The pagesize must be a power of 2. * @param spc is the associated address space - * @param isBigEndian memory endianess + * @param isBigEndian memory endianness * @param ps ps is the number of bytes in a page (must be a power of 2) * @param faultHandler memory fault handler */ diff --git a/Ghidra/Framework/Generic/src/main/java/ghidra/util/DataConverter.java b/Ghidra/Framework/Generic/src/main/java/ghidra/util/DataConverter.java index cb639935fe..5a0cc161ee 100644 --- a/Ghidra/Framework/Generic/src/main/java/ghidra/util/DataConverter.java +++ b/Ghidra/Framework/Generic/src/main/java/ghidra/util/DataConverter.java @@ -37,7 +37,7 @@ public interface DataConverter extends Serializable { } /** - * Returns the endianess of this DataConverter instance. + * Returns the endianness of this DataConverter instance. * * @return boolean flag, true means big-endian */ diff --git a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/app/plugin/processors/sleigh/SleighDebugLogger.java b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/app/plugin/processors/sleigh/SleighDebugLogger.java index 3579e38a2b..a057deb6fc 100644 --- a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/app/plugin/processors/sleigh/SleighDebugLogger.java +++ b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/app/plugin/processors/sleigh/SleighDebugLogger.java @@ -98,7 +98,7 @@ public class SleighDebugLogger { append("\nNOTE: bitrange's number leftmost/most-significant bit as 0 (zero).\n"); append(" This bit numbering agrees with the context field specification\n"); append(" but differs from token field specification. The bit correspondence\n"); - append(" for token fields depends upon the specific token size/endianess and\n"); + append(" for token fields depends upon the specific token size/endianness and\n"); append(" current byte-offset of pattern matcher.\n\n"); int contextSize = contextCache.getContextSize(); diff --git a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/pcodeCPort/slgh_compile/SleighCompile.java b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/pcodeCPort/slgh_compile/SleighCompile.java index 951c1a3770..a953e401ff 100644 --- a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/pcodeCPort/slgh_compile/SleighCompile.java +++ b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/pcodeCPort/slgh_compile/SleighCompile.java @@ -1017,7 +1017,7 @@ public class SleighCompile extends SleighBase { public void setEndian(int end) { entry("setEndian", end); target_endian = end; - predefinedSymbols(); // Set up symbols now that we know endianess + predefinedSymbols(); // Set up symbols now that we know endianness } public void setAlignment(int val) { diff --git a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/mem/MemoryMapDB.java b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/mem/MemoryMapDB.java index 6003b44fc9..0f8aa33943 100644 --- a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/mem/MemoryMapDB.java +++ b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/database/mem/MemoryMapDB.java @@ -88,7 +88,7 @@ public class MemoryMapDB implements Memory, ManagerDB, LiveMemoryListener { * @param handle the open database handle. * @param addrMap the address map. * @param openMode the open mode for the program. - * @param isBigEndian endianess flag + * @param isBigEndian endianness flag * @param lock the program synchronization lock * @param monitor Task monitor for upgrading * @throws IOException if a database io error occurs. diff --git a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/data/DataOrganizationImpl.java b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/data/DataOrganizationImpl.java index 85737bd9cc..3cd8147f02 100644 --- a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/data/DataOrganizationImpl.java +++ b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/data/DataOrganizationImpl.java @@ -75,7 +75,7 @@ public class DataOrganizationImpl implements DataOrganization { private int doubleSize = DEFAULT_DOUBLE_SIZE; private int longDoubleSize = DEFAULT_LONG_DOUBLE_SIZE; - // Endianess explicitly set and not supported by saveXml/restore + // Endianness explicitly set and not supported by saveXml/restore private boolean bigEndian = false; private BitFieldPackingImpl bitFieldPacking = new BitFieldPackingImpl(); @@ -99,7 +99,7 @@ public class DataOrganizationImpl implements DataOrganization { * Creates a new default DataOrganization. This has a mapping which defines the alignment * of a data type based on its size. The map defines pairs for data types that are * 1, 2, 4, and 8 bytes in length. - * @param language optional language used to initialize defaults (pointer size, endianess, etc.) + * @param language optional language used to initialize defaults (pointer size, endianness, etc.) * (may be null) * @return a new default DataOrganization. */ @@ -112,7 +112,7 @@ public class DataOrganizationImpl implements DataOrganization { if (language != null) { // NOTE: Ensure that saveXml always saves pointer size dataOrganization.setPointerSize(language.getDefaultSpace().getPointerSize()); - // NOTE: Endianess is not handled by saveXml/restore + // NOTE: Endianness is not handled by saveXml/restore dataOrganization.setBigEndian(language.isBigEndian()); } return dataOrganization; @@ -195,7 +195,7 @@ public class DataOrganizationImpl implements DataOrganization { } /** - * Set data endianess + * Set data endianness * @param bigEndian true if big-endian, false if little-endian */ public void setBigEndian(boolean bigEndian) { @@ -803,7 +803,7 @@ public class DataOrganizationImpl implements DataOrganization { public void encode(Encoder encoder) throws IOException { encoder.openElement(ELEM_DATA_ORGANIZATION); - // NOTE: endianess intentionally omitted from output + // NOTE: endianness intentionally omitted from output if (absoluteMaxAlignment != NO_MAXIMUM_ALIGNMENT) { encoder.openElement(ELEM_ABSOLUTE_MAX_ALIGNMENT); @@ -905,13 +905,13 @@ public class DataOrganizationImpl implements DataOrganization { * Restore settings from an XML stream. This expects to see parser positioned on the * <data_organization> start tag. The XML is designed to override existing language-specific * default settings which are pre-populated with {@link #getDefaultOrganization(Language)}. This - * will will ensure that the endianess setting is properly established since it is not included + * will will ensure that the endianness setting is properly established since it is not included * in the XML. * @param parser is the XML stream */ public void restoreXml(XmlPullParser parser) { - // NOTE: endianess intentionally omitted from XML. + // NOTE: endianness intentionally omitted from XML. parser.start(); while (parser.peek().isStart()) { diff --git a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/data/EndianSettingsDefinition.java b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/data/EndianSettingsDefinition.java index 6939ea0bab..2a7f72ed81 100644 --- a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/data/EndianSettingsDefinition.java +++ b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/data/EndianSettingsDefinition.java @@ -21,7 +21,7 @@ import ghidra.program.model.lang.Endian; import ghidra.program.model.mem.MemBuffer; /** - * SettingsDefinition for endianess + * SettingsDefinition for endianness */ public class EndianSettingsDefinition implements EnumSettingsDefinition { @@ -41,11 +41,11 @@ public class EndianSettingsDefinition implements EnumSettingsDefinition { } /** - * Returns the endianess settings. First looks in settings, then defaultSettings + * Returns the endianness settings. First looks in settings, then defaultSettings * and finally returns a default value if the first two have no value for this definition. * @param settings the instance settings to search for the value * @param buf the data context - * @return a boolean value for the endianess setting + * @return a boolean value for the endianness setting */ public boolean isBigEndian(Settings settings, MemBuffer buf) { int val = getChoice(settings); @@ -55,7 +55,7 @@ public class EndianSettingsDefinition implements EnumSettingsDefinition { return val == BIG; } - public Endian getEndianess(Settings settings, Endian defaultValue) { + public Endian getEndianness(Settings settings, Endian defaultValue) { int val = getChoice(settings); switch (val) { default: @@ -115,7 +115,7 @@ public class EndianSettingsDefinition implements EnumSettingsDefinition { @Override public String getDescription() { - return "Selects the endianess of the data"; + return "Selects the endianness of the data"; } @Override diff --git a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/data/StringDataInstance.java b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/data/StringDataInstance.java index 4932c8b8ce..51e0095fe6 100644 --- a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/data/StringDataInstance.java +++ b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/data/StringDataInstance.java @@ -324,7 +324,7 @@ public class StringDataInstance { this.showTranslation = TRANSLATION.isShowTranslated(settings); this.translatedValue = getTranslatedValue(settings, buf); this.renderSetting = RENDER.getEnumValue(settings); - this.endianSetting = ENDIAN.getEndianess(settings, null); + this.endianSetting = ENDIAN.getEndianness(settings, null); this.length = length; } diff --git a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/data/Structure.java b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/data/Structure.java index 6366f0cd7b..e9889f9fb2 100644 --- a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/data/Structure.java +++ b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/data/Structure.java @@ -511,7 +511,7 @@ public interface Structure extends Composite { /** * Compute the normalized bit offset of a bitfield relative to the start of a structure. * - * NOTE: This implementation currently relies only on endianess to dictate bit allocation + * NOTE: This implementation currently relies only on endianness to dictate bit allocation * ordering. If future support is added for alternate bitfield packing, this implementation * will require modification. * diff --git a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/data/StructureDataType.java b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/data/StructureDataType.java index dadb3390fe..67202c2046 100644 --- a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/data/StructureDataType.java +++ b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/data/StructureDataType.java @@ -1097,7 +1097,7 @@ public class StructureDataType extends CompositeDataTypeImpl implements Structur * Create copy of structure for target dtm (source archive information is discarded). *

      * WARNING! copying non-packed structures which contain bitfields can produce invalid results when - * switching endianess due to the differences in packing order. + * switching endianness due to the differences in packing order. * * @param dtm target data type manager * @return cloned structure @@ -1114,7 +1114,7 @@ public class StructureDataType extends CompositeDataTypeImpl implements Structur /** * Create cloned structure for target dtm preserving source archive information. WARNING! * cloning non-packed structures which contain bitfields can produce invalid results when - * switching endianess due to the differences in packing order. + * switching endianness due to the differences in packing order. * * @param dtm target data type manager * @return cloned structure diff --git a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/data/Union.java b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/data/Union.java index 8c969036ec..cfbefb8784 100644 --- a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/data/Union.java +++ b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/data/Union.java @@ -20,7 +20,7 @@ package ghidra.program.model.data; *

      * NOTE: The use of bitfields within all unions assumes a default packing where bit allocation * always starts with byte-0 of the union. Bit allocation order is dictated by data organization - * endianess (byte-0 msb allocated first for big-endian, while byte-0 lsb allocated first for little-endian). + * endianness (byte-0 msb allocated first for big-endian, while byte-0 lsb allocated first for little-endian). */ public interface Union extends Composite { diff --git a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/lang/Endian.java b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/lang/Endian.java index eb14ecc337..3d16d365cd 100644 --- a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/lang/Endian.java +++ b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/lang/Endian.java @@ -28,14 +28,14 @@ public enum Endian { this.shortName = shortName; } - public static Endian toEndian(String endianess) { - if (endianess != null) { - if ((Endian.BIG.toString().equalsIgnoreCase(endianess)) || - (Endian.BIG.toShortString().equalsIgnoreCase(endianess))) { + public static Endian toEndian(String endianness) { + if (endianness != null) { + if ((Endian.BIG.toString().equalsIgnoreCase(endianness)) || + (Endian.BIG.toShortString().equalsIgnoreCase(endianness))) { return Endian.BIG; } - else if ((Endian.LITTLE.toString().equalsIgnoreCase(endianess)) || - (Endian.LITTLE.toShortString().equalsIgnoreCase(endianess))) { + else if ((Endian.LITTLE.toString().equalsIgnoreCase(endianness)) || + (Endian.LITTLE.toShortString().equalsIgnoreCase(endianness))) { return Endian.LITTLE; } else { diff --git a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/lang/LanguageService.java b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/lang/LanguageService.java index f8bc31095b..e255d3dbe9 100644 --- a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/lang/LanguageService.java +++ b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/lang/LanguageService.java @@ -58,14 +58,14 @@ public interface LanguageService { * Returns all known language descriptions which satisfy the criteria identify by the * non-null parameters. A null value implies a don't-care wildcard value. * @param processor the processor for which to get a language - * @param endianess big or little + * @param endianness big or little * @param size processor address space size (in bits) * @param variant the processor version (usually 'default') * @return the language descriptions that fit the parameters * @deprecated use {@link #getLanguageDescriptions(Processor)} instead */ @Deprecated - List getLanguageDescriptions(Processor processor, Endian endianess, + List getLanguageDescriptions(Processor processor, Endian endianness, Integer size, String variant); /** diff --git a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/lang/SleighLanguageDescription.java b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/lang/SleighLanguageDescription.java index fd8585bbd0..75b0a0adb9 100644 --- a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/lang/SleighLanguageDescription.java +++ b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/lang/SleighLanguageDescription.java @@ -36,8 +36,8 @@ public class SleighLanguageDescription extends BasicLanguageDescription { * @param id the name of the language * @param description language description text * @param processor processor name/family - * @param endian data endianess - * @param instructionEndian instruction endianess + * @param endian data endianness + * @param instructionEndian instruction endianness * @param size processor size * @param variant processor variant name * @param version the major version of the language. diff --git a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/listing/VariableStorage.java b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/listing/VariableStorage.java index 732c1f0a8d..a6f4c3dbf2 100644 --- a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/listing/VariableStorage.java +++ b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/listing/VariableStorage.java @@ -927,7 +927,7 @@ public class VariableStorage implements Comparable { } if (oldReg != null && !(oldReg instanceof UnknownRegister)) { Register newReg = translator.getNewRegister(oldReg); - if (newReg != null) { // assume reg endianess unchanged + if (newReg != null) { // assume reg endianness unchanged // NOTE: could produce bad results if not careful with mapping int origByteShift = (int) offset - oldReg.getOffset(); offset = newReg.getOffset() + origByteShift; diff --git a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/mem/MemBuffer.java b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/mem/MemBuffer.java index eb21dfcbc4..61cb948474 100644 --- a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/mem/MemBuffer.java +++ b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/model/mem/MemBuffer.java @@ -126,9 +126,9 @@ public interface MemBuffer { public boolean isBigEndian(); /** - * returns the short at the given offset, taking into account the endianess. + * returns the short at the given offset, taking into account the endianness. * @param offset the offset from the membuffers origin (the address that it is set at) - * @return the short at the given offset, taking into account the endianess. + * @return the short at the given offset, taking into account the endianness. * @throws MemoryAccessException if a 2-byte short value cannot be read at the specified offset */ public short getShort(int offset) throws MemoryAccessException; @@ -136,7 +136,7 @@ public interface MemBuffer { /** * Returns the unsigned short at the given offset, taking into account the endian-ness. * @param offset the offset from the membuffers origin (the address that it is set at) - * @return the unsigned short at the given offset, as a {@code int}, taking into account the endianess. + * @return the unsigned short at the given offset, as a {@code int}, taking into account the endianness. * @throws MemoryAccessException if a 2-byte short value cannot be read at the specified offset */ default public int getUnsignedShort(int offset) throws MemoryAccessException { @@ -144,17 +144,17 @@ public interface MemBuffer { } /** - * returns the int at the given offset, taking into account the endianess. + * returns the int at the given offset, taking into account the endianness. * @param offset the offset from the membuffers origin (the address that it is set at) - * @return the int at the given offset, taking into account the endianess. + * @return the int at the given offset, taking into account the endianness. * @throws MemoryAccessException if a 4-byte integer value cannot be read at the specified offset */ public int getInt(int offset) throws MemoryAccessException; /** - * Returns the unsigned int at the given offset, taking into account the endianess. + * Returns the unsigned int at the given offset, taking into account the endianness. * @param offset the offset from the membuffers origin (the address that it is set at) - * @return the unsigned int at the given offset, as a {@code long}, taking into account the endianess. + * @return the unsigned int at the given offset, as a {@code long}, taking into account the endianness. * @throws MemoryAccessException if a 4-byte integer value cannot be read at the specified offset */ default public long getUnsignedInt(int offset) throws MemoryAccessException { @@ -162,19 +162,19 @@ public interface MemBuffer { } /** - * returns the long at the given offset, taking into account the endianess. + * returns the long at the given offset, taking into account the endianness. * @param offset the offset from the membuffers origin (the address that it is set at) - * @return the long at the given offset, taking into account the endianess. + * @return the long at the given offset, taking into account the endianness. * @throws MemoryAccessException if a 8-byte long value cannot be read at the specified offset */ public long getLong(int offset) throws MemoryAccessException; /** - * returns the value at the given offset, taking into account the endianess. + * returns the value at the given offset, taking into account the endianness. * @param offset the offset from the membuffers origin (the address that it is set at) * @param size the number of bytes to include in the value * @param signed true if value should be treated as a signed twos-compliment value. - * @return the value at the given offset, taking into account the endianess. + * @return the value at the given offset, taking into account the endianness. * @throws MemoryAccessException if the request size value cannot be read at the specified offset */ public BigInteger getBigInteger(int offset, int size, boolean signed) diff --git a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/util/AddressEvaluator.java b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/util/AddressEvaluator.java index acbcf856d7..665591baaf 100644 --- a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/util/AddressEvaluator.java +++ b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/util/AddressEvaluator.java @@ -206,7 +206,7 @@ public class AddressEvaluator { } /* - * Make sure we account for endianess of the program. + * Make sure we account for endianness of the program. * Computing the number of bits to shift the current byte value * is different for Little vs. Big Endian. Need to multiply by * 8 to shift in 1-byte increments. diff --git a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/util/DefaultLanguageService.java b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/util/DefaultLanguageService.java index 43329a2663..2a1b28b196 100644 --- a/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/util/DefaultLanguageService.java +++ b/Ghidra/Framework/SoftwareModeling/src/main/java/ghidra/program/util/DefaultLanguageService.java @@ -86,7 +86,7 @@ public class DefaultLanguageService implements LanguageService { } @Override - public List getLanguageDescriptions(Processor processor, Endian endianess, + public List getLanguageDescriptions(Processor processor, Endian endianness, Integer size, String variant) { List languageDescriptions = new ArrayList<>(); for (LanguageInfo info : languageInfos) { @@ -94,7 +94,7 @@ public class DefaultLanguageService implements LanguageService { if (processor != null && processor != description.getProcessor()) { continue; } - if (endianess != null && endianess != description.getEndian()) { + if (endianness != null && endianness != description.getEndian()) { continue; } if (size != null && size.intValue() != description.getSize()) { @@ -129,7 +129,7 @@ public class DefaultLanguageService implements LanguageService { } public List getExternalLanguageDescriptions(String externalProcessorName, - String externalTool, Endian endianess, Integer size) { + String externalTool, Endian endianness, Integer size) { List languageDescriptions = new ArrayList<>(); for (LanguageInfo info : languageInfos) { @@ -140,7 +140,7 @@ public class DefaultLanguageService implements LanguageService { continue; } - if (endianess != null && endianess != description.getEndian()) { + if (endianness != null && endianness != description.getEndian()) { continue; } if (size != null && size.intValue() != description.getSize()) { diff --git a/Ghidra/Framework/SoftwareModeling/src/test/java/ghidra/program/database/data/StructureDBTest.java b/Ghidra/Framework/SoftwareModeling/src/test/java/ghidra/program/database/data/StructureDBTest.java index 779a6f86bc..e255431f9d 100644 --- a/Ghidra/Framework/SoftwareModeling/src/test/java/ghidra/program/database/data/StructureDBTest.java +++ b/Ghidra/Framework/SoftwareModeling/src/test/java/ghidra/program/database/data/StructureDBTest.java @@ -60,7 +60,7 @@ public class StructureDBTest extends AbstractGenericTest { DataOrganizationImpl dataOrg = (DataOrganizationImpl) dataMgr.getDataOrganization(); dataOrg.setBigEndian(true); - // re-resolve with modified endianess + // re-resolve with modified endianness struct = (StructureDB) dataMgr.resolve(structClone, null); } @@ -1312,7 +1312,7 @@ public class StructureDBTest extends AbstractGenericTest { public void testReplaceWith2() throws InvalidDataTypeException { // NOTE: non-packed bitfields should remain unchanged when - // transitioning endianess even though it makes little sense. + // transitioning endianness even though it makes little sense. // Unaligned structures are not intended to be portable! TypeDef td = new TypedefDataType("Foo", IntegerDataType.dataType); diff --git a/Ghidra/Framework/SoftwareModeling/src/test/java/ghidra/program/database/data/UnionDBTest.java b/Ghidra/Framework/SoftwareModeling/src/test/java/ghidra/program/database/data/UnionDBTest.java index b6b060cc0b..3fc6a377d9 100644 --- a/Ghidra/Framework/SoftwareModeling/src/test/java/ghidra/program/database/data/UnionDBTest.java +++ b/Ghidra/Framework/SoftwareModeling/src/test/java/ghidra/program/database/data/UnionDBTest.java @@ -58,7 +58,7 @@ public class UnionDBTest extends AbstractGenericTest { DataOrganizationImpl dataOrg = (DataOrganizationImpl) dataMgr.getDataOrganization(); dataOrg.setBigEndian(true); - // re-resolve with modified endianess + // re-resolve with modified endianness union = (UnionDB) dataMgr.resolve(unionClone, null); } diff --git a/Ghidra/Processors/ARM/data/languages/ARMinstructions.sinc b/Ghidra/Processors/ARM/data/languages/ARMinstructions.sinc index d26172a9e8..bf815c6a62 100644 --- a/Ghidra/Processors/ARM/data/languages/ARMinstructions.sinc +++ b/Ghidra/Processors/ARM/data/languages/ARMinstructions.sinc @@ -4940,7 +4940,7 @@ macro BitReverse_arm(val) { @endif # VERSION_6K -# Hopefully we never encounter this instruction since we can not change the effective endianess of the language +# Hopefully we never encounter this instruction since we can not change the effective endianness of the language armEndianNess: "LE" is c0031=0xf1010000 { export 0:1; } armEndianNess: "BE" is c0031=0xf1010200 { export 1:1; } diff --git a/Ghidra/Processors/Toy/data/languages/old/v01stuff/toy.sinc b/Ghidra/Processors/Toy/data/languages/old/v01stuff/toy.sinc index be41ed9d1a..6ac0dcd907 100644 --- a/Ghidra/Processors/Toy/data/languages/old/v01stuff/toy.sinc +++ b/Ghidra/Processors/Toy/data/languages/old/v01stuff/toy.sinc @@ -1,4 +1,4 @@ -# Main slaspec must define endianess and alignment +# Main slaspec must define endianness and alignment @ifndef WORDSIZE @define WORDSIZE "1" diff --git a/Ghidra/Processors/Xtensa/data/languages/xtensa.cspec b/Ghidra/Processors/Xtensa/data/languages/xtensa.cspec index e4a40899e8..75f895b234 100644 --- a/Ghidra/Processors/Xtensa/data/languages/xtensa.cspec +++ b/Ghidra/Processors/Xtensa/data/languages/xtensa.cspec @@ -55,7 +55,7 @@ - + @@ -126,7 +126,7 @@ - + diff --git a/GhidraDocs/languages/html/pcodedescription.html b/GhidraDocs/languages/html/pcodedescription.html index c73f909037..067fc2b82a 100644 --- a/GhidraDocs/languages/html/pcodedescription.html +++ b/GhidraDocs/languages/html/pcodedescription.html @@ -572,7 +572,7 @@ subroutine.

    -This is a concatenation operator that understands the endianess of the +This is a concatenation operator that understands the endianness of the data. The size of input0 and input1 must add up to the size of output. The data from the inputs is concatenated in such a way that, if the inputs and output are considered integers, the first input @@ -621,7 +621,7 @@ makes up the most significant part of the output.

    -This is a truncation operator that understands the endianess of the +This is a truncation operator that understands the endianness of the data. Input1 indicates the number of least significant bytes of input0 to be thrown away. Output is then filled with any remaining bytes of input0 up to the size of output. If the size of diff --git a/GhidraDocs/languages/html/pcoderef.html b/GhidraDocs/languages/html/pcoderef.html index 0f26ca1c75..5347599c67 100644 --- a/GhidraDocs/languages/html/pcoderef.html +++ b/GhidraDocs/languages/html/pcoderef.html @@ -228,7 +228,7 @@ of RAM. It is defined simply as an indexed sequence of bytes that can be read and written by the p-code operations. For a specific byte, the unique index that labels it is the byte's address. An address space has a name to identify it, a size that indicates the number of distinct -indices into the space, and an endianess +indices into the space, and an endianness associated with it that indicates how integers and other multi-byte values are encoded into the space. A typical processor will have a ram space, to model @@ -280,7 +280,7 @@ on the varnodes: integer, boolean, and floating-point.

    -The first definition in any SLEIGH specification must be for endianess. Either +The first definition in any SLEIGH specification must be for endianness. Either

     define endian=big;            OR
    @@ -47,11 +47,11 @@ This defines how the processor interprets contiguous sequences of
     bytes as integers or other values and globally affects values across
     all address spaces. It also affects how integer fields
     within an instruction are interpreted, (see Section 6.1, “Defining Tokens and Fields”),
    -although it is possible to override this setting in the rare case that endianess is
    +although it is possible to override this setting in the rare case that endianness is
     different for data versus instruction encoding.
     The specification designer generally only needs to worry about
    -endianess when labeling instruction fields and when defining overlapping registers,
    -otherwise the specification language hides endianess issues.
    +endianness when labeling instruction fields and when defining overlapping registers,
    +otherwise the specification language hides endianness issues.
     

    diff --git a/GhidraDocs/languages/html/sleigh_tokens.html b/GhidraDocs/languages/html/sleigh_tokens.html index 90f10cfc67..2ba08cdfa2 100644 --- a/GhidraDocs/languages/html/sleigh_tokens.html +++ b/GhidraDocs/languages/html/sleigh_tokens.html @@ -57,9 +57,9 @@ field and the range of bits within the token making up the field. The size of a field does not need to be a multiple of 8. The range is inclusive where the least significant bit in the token is labeled 0. When defining tokens that are bigger than 1 byte, the -global endianess setting (See Section 4.1, “Endianess Definition”) +global endianness setting (See Section 4.1, “Endianness Definition”) will affect this labeling. Although it is rarely required, it is possible to override -the global endianess setting for a specific token by appending either the qualifier +the global endianness setting for a specific token by appending either the qualifier endian=little or endian=big immediately after the token name and size. For instance: