mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 02:39:44 +02:00
GP-1772: Corrected spelling of the word 'language' throughout ghidra.
This commit is contained in:
parent
e267c8b8ae
commit
5c9977bd34
8 changed files with 12 additions and 12 deletions
|
@ -245,7 +245,7 @@ public class WatchRow {
|
||||||
Language newLanguage = trace.getBaseLanguage();
|
Language newLanguage = trace.getBaseLanguage();
|
||||||
if (language != newLanguage) {
|
if (language != newLanguage) {
|
||||||
if (!(newLanguage instanceof SleighLanguage)) {
|
if (!(newLanguage instanceof SleighLanguage)) {
|
||||||
error = new RuntimeException("Not a sleigh-based langauge");
|
error = new RuntimeException("Not a sleigh-based language");
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
language = (SleighLanguage) newLanguage;
|
language = (SleighLanguage) newLanguage;
|
||||||
|
|
|
@ -37,7 +37,7 @@ public class DBTraceData extends AbstractDBTraceCodeUnit<DBTraceData>
|
||||||
implements DBTraceDefinedDataAdapter {
|
implements DBTraceDefinedDataAdapter {
|
||||||
private static final String TABLE_NAME = "Data";
|
private static final String TABLE_NAME = "Data";
|
||||||
|
|
||||||
static final String LANGUAGE_COLUMN_NAME = "Langauge";
|
static final String LANGUAGE_COLUMN_NAME = "Language";
|
||||||
static final String DATATYPE_COLUMN_NAME = "DataType";
|
static final String DATATYPE_COLUMN_NAME = "DataType";
|
||||||
|
|
||||||
@DBAnnotatedColumn(LANGUAGE_COLUMN_NAME)
|
@DBAnnotatedColumn(LANGUAGE_COLUMN_NAME)
|
||||||
|
@ -75,7 +75,7 @@ public class DBTraceData extends AbstractDBTraceCodeUnit<DBTraceData>
|
||||||
}
|
}
|
||||||
language = space.manager.languageManager.getLanguageByKey(langKey);
|
language = space.manager.languageManager.getLanguageByKey(langKey);
|
||||||
if (language == null) {
|
if (language == null) {
|
||||||
throw new IOException("Data table is corrupt. Missing langauge: " + langKey);
|
throw new IOException("Data table is corrupt. Missing language: " + langKey);
|
||||||
}
|
}
|
||||||
dataType = space.dataTypeManager.getDataType(dataTypeID);
|
dataType = space.dataTypeManager.getDataType(dataTypeID);
|
||||||
if (dataType == null) {
|
if (dataType == null) {
|
||||||
|
|
|
@ -55,7 +55,7 @@ public class DBTraceLanguageManagerTest extends AbstractGhidraHeadlessIntegratio
|
||||||
}
|
}
|
||||||
|
|
||||||
@Test
|
@Test
|
||||||
public void testAddGuestLangauge() throws LanguageNotFoundException {
|
public void testAddGuestLanguage() throws LanguageNotFoundException {
|
||||||
try (UndoableTransaction tid = b.startTransaction()) {
|
try (UndoableTransaction tid = b.startTransaction()) {
|
||||||
assertEquals(0, manager.languageStore.getRecordCount());
|
assertEquals(0, manager.languageStore.getRecordCount());
|
||||||
manager.addGuestLanguage(b.getLanguage("x86:LE:32:default"));
|
manager.addGuestLanguage(b.getLanguage("x86:LE:32:default"));
|
||||||
|
|
|
@ -21,7 +21,7 @@ import ghidra.util.Msg;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
|
|
||||||
public class ReloadSleighLangauge extends GhidraScript {
|
public class ReloadSleighLanguage extends GhidraScript {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public void run() throws Exception {
|
public void run() throws Exception {
|
|
@ -272,7 +272,7 @@ class ProgramUserDataDB extends DomainObjectAdapterDB implements ProgramUserData
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Language specified by languageName was not found. Check for
|
* Language specified by languageName was not found. Check for
|
||||||
* valid language translation/migration. Old langauge version specified by
|
* valid language translation/migration. Old language version specified by
|
||||||
* languageVersion.
|
* languageVersion.
|
||||||
* @param openMode one of:
|
* @param openMode one of:
|
||||||
* READ_ONLY: the original database will not be modified
|
* READ_ONLY: the original database will not be modified
|
||||||
|
|
|
@ -1711,10 +1711,10 @@ public class Disassembler implements DisassemblerConflictHandler {
|
||||||
private static class InstructionContext implements ProcessorContext {
|
private static class InstructionContext implements ProcessorContext {
|
||||||
|
|
||||||
private RegisterValue contextValue;
|
private RegisterValue contextValue;
|
||||||
private Language langauge;
|
private Language language;
|
||||||
|
|
||||||
InstructionContext(Language language, RegisterValue contextValue) {
|
InstructionContext(Language language, RegisterValue contextValue) {
|
||||||
this.langauge = language;
|
this.language = language;
|
||||||
this.contextValue = contextValue;
|
this.contextValue = contextValue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1729,12 +1729,12 @@ public class Disassembler implements DisassemblerConflictHandler {
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public List<Register> getRegisters() {
|
public List<Register> getRegisters() {
|
||||||
return langauge.getRegisters();
|
return language.getRegisters();
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Register getRegister(String name) {
|
public Register getRegister(String name) {
|
||||||
return langauge.getRegister(name);
|
return language.getRegister(name);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|
|
@ -167,7 +167,7 @@ public class RegisterBuilder {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Rename a register. This allows generic register names declared within the langauge
|
* Rename a register. This allows generic register names declared within the language
|
||||||
* specification (*.slaspec) to be renamed for a processor variant specification (*.pspec).
|
* specification (*.slaspec) to be renamed for a processor variant specification (*.pspec).
|
||||||
* @param oldName original register name
|
* @param oldName original register name
|
||||||
* @param newName new register name
|
* @param newName new register name
|
||||||
|
|
|
@ -214,7 +214,7 @@ public class OldLanguageFactory {
|
||||||
LanguageService languageService = DefaultLanguageService.getLanguageService();
|
LanguageService languageService = DefaultLanguageService.getLanguageService();
|
||||||
if (lang instanceof OldLanguage) {
|
if (lang instanceof OldLanguage) {
|
||||||
throw new LanguageNotFoundException(
|
throw new LanguageNotFoundException(
|
||||||
"Can't create an Old Langauge file from an OldLanguage");
|
"Can't create an Old Language file from an OldLanguage");
|
||||||
}
|
}
|
||||||
LanguageDescription languageDescription =
|
LanguageDescription languageDescription =
|
||||||
languageService.getLanguageDescription(lang.getLanguageID());
|
languageService.getLanguageDescription(lang.getLanguageID());
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue