Skip to content

Commit c5fa271

Browse files
committed
Initial commit
1 parent 7115ee3 commit c5fa271

164 files changed

Lines changed: 62506 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.classpath

Lines changed: 504 additions & 0 deletions
Large diffs are not rendered by default.

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
/bin/
2+
/dist/
3+
/build/
4+
/.gradle/

.project

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>V8_bytecode</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.xtext.ui.shared.xtextBuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
<buildCommand>
14+
<name>org.eclipse.jdt.core.javabuilder</name>
15+
<arguments>
16+
</arguments>
17+
</buildCommand>
18+
</buildSpec>
19+
<natures>
20+
<nature>org.eclipse.jdt.core.javanature</nature>
21+
<nature>org.eclipse.xtext.ui.shared.xtextNature</nature>
22+
</natures>
23+
<linkedResources>
24+
<link>
25+
<name>Ghidra</name>
26+
<type>2</type>
27+
<location>D:/ghidra_9.2.2_PUBLIC</location>
28+
</link>
29+
</linkedResources>
30+
</projectDescription>
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
arguments=
2+
auto.sync=false
3+
build.scans.enabled=false
4+
connection.gradle.distribution=GRADLE_DISTRIBUTION(VERSION(6.3))
5+
connection.project.dir=
6+
eclipse.preferences.version=1
7+
gradle.user.home=
8+
java.home=C\:/Program Files/Java/jdk-11.0.7
9+
jvm.arguments=
10+
offline.mode=false
11+
override.workspace.settings=true
12+
show.console.view=true
13+
show.executions.view=true
Lines changed: 117 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,117 @@
1+
eclipse.preferences.version=1
2+
org.eclipse.jdt.core.compiler.annotation.inheritNullAnnotations=disabled
3+
org.eclipse.jdt.core.compiler.annotation.missingNonNullByDefaultAnnotation=ignore
4+
org.eclipse.jdt.core.compiler.annotation.nonnull=org.eclipse.jdt.annotation.NonNull
5+
org.eclipse.jdt.core.compiler.annotation.nonnull.secondary=
6+
org.eclipse.jdt.core.compiler.annotation.nonnullbydefault=org.eclipse.jdt.annotation.NonNullByDefault
7+
org.eclipse.jdt.core.compiler.annotation.nonnullbydefault.secondary=
8+
org.eclipse.jdt.core.compiler.annotation.nullable=org.eclipse.jdt.annotation.Nullable
9+
org.eclipse.jdt.core.compiler.annotation.nullable.secondary=
10+
org.eclipse.jdt.core.compiler.annotation.nullanalysis=disabled
11+
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
12+
org.eclipse.jdt.core.compiler.codegen.methodParameters=do not generate
13+
org.eclipse.jdt.core.compiler.codegen.targetPlatform=11
14+
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
15+
org.eclipse.jdt.core.compiler.compliance=11
16+
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
17+
org.eclipse.jdt.core.compiler.debug.localVariable=generate
18+
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
19+
org.eclipse.jdt.core.compiler.problem.APILeak=warning
20+
org.eclipse.jdt.core.compiler.problem.annotatedTypeArgumentToUnannotated=info
21+
org.eclipse.jdt.core.compiler.problem.annotationSuperInterface=error
22+
org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
23+
org.eclipse.jdt.core.compiler.problem.autoboxing=ignore
24+
org.eclipse.jdt.core.compiler.problem.comparingIdentical=warning
25+
org.eclipse.jdt.core.compiler.problem.deadCode=warning
26+
org.eclipse.jdt.core.compiler.problem.deprecation=warning
27+
org.eclipse.jdt.core.compiler.problem.deprecationInDeprecatedCode=disabled
28+
org.eclipse.jdt.core.compiler.problem.deprecationWhenOverridingDeprecatedMethod=disabled
29+
org.eclipse.jdt.core.compiler.problem.discouragedReference=warning
30+
org.eclipse.jdt.core.compiler.problem.emptyStatement=warning
31+
org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
32+
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
33+
org.eclipse.jdt.core.compiler.problem.explicitlyClosedAutoCloseable=ignore
34+
org.eclipse.jdt.core.compiler.problem.fallthroughCase=ignore
35+
org.eclipse.jdt.core.compiler.problem.fatalOptionalError=disabled
36+
org.eclipse.jdt.core.compiler.problem.fieldHiding=warning
37+
org.eclipse.jdt.core.compiler.problem.finalParameterBound=warning
38+
org.eclipse.jdt.core.compiler.problem.finallyBlockNotCompletingNormally=warning
39+
org.eclipse.jdt.core.compiler.problem.forbiddenReference=error
40+
org.eclipse.jdt.core.compiler.problem.hiddenCatchBlock=error
41+
org.eclipse.jdt.core.compiler.problem.includeNullInfoFromAsserts=disabled
42+
org.eclipse.jdt.core.compiler.problem.incompatibleNonInheritedInterfaceMethod=error
43+
org.eclipse.jdt.core.compiler.problem.incompleteEnumSwitch=warning
44+
org.eclipse.jdt.core.compiler.problem.indirectStaticAccess=warning
45+
org.eclipse.jdt.core.compiler.problem.localVariableHiding=warning
46+
org.eclipse.jdt.core.compiler.problem.methodWithConstructorName=warning
47+
org.eclipse.jdt.core.compiler.problem.missingDefaultCase=ignore
48+
org.eclipse.jdt.core.compiler.problem.missingDeprecatedAnnotation=ignore
49+
org.eclipse.jdt.core.compiler.problem.missingEnumCaseDespiteDefault=disabled
50+
org.eclipse.jdt.core.compiler.problem.missingHashCodeMethod=ignore
51+
org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotation=ignore
52+
org.eclipse.jdt.core.compiler.problem.missingOverrideAnnotationForInterfaceMethodImplementation=enabled
53+
org.eclipse.jdt.core.compiler.problem.missingSerialVersion=ignore
54+
org.eclipse.jdt.core.compiler.problem.missingSynchronizedOnInheritedMethod=ignore
55+
org.eclipse.jdt.core.compiler.problem.noEffectAssignment=warning
56+
org.eclipse.jdt.core.compiler.problem.noImplicitStringConversion=warning
57+
org.eclipse.jdt.core.compiler.problem.nonExternalizedStringLiteral=ignore
58+
org.eclipse.jdt.core.compiler.problem.nonnullParameterAnnotationDropped=warning
59+
org.eclipse.jdt.core.compiler.problem.nonnullTypeVariableFromLegacyInvocation=warning
60+
org.eclipse.jdt.core.compiler.problem.nullAnnotationInferenceConflict=error
61+
org.eclipse.jdt.core.compiler.problem.nullReference=warning
62+
org.eclipse.jdt.core.compiler.problem.nullSpecViolation=error
63+
org.eclipse.jdt.core.compiler.problem.nullUncheckedConversion=warning
64+
org.eclipse.jdt.core.compiler.problem.overridingPackageDefaultMethod=warning
65+
org.eclipse.jdt.core.compiler.problem.parameterAssignment=ignore
66+
org.eclipse.jdt.core.compiler.problem.pessimisticNullAnalysisForFreeTypeVariables=warning
67+
org.eclipse.jdt.core.compiler.problem.possibleAccidentalBooleanAssignment=warning
68+
org.eclipse.jdt.core.compiler.problem.potentialNullReference=ignore
69+
org.eclipse.jdt.core.compiler.problem.potentiallyUnclosedCloseable=ignore
70+
org.eclipse.jdt.core.compiler.problem.rawTypeReference=warning
71+
org.eclipse.jdt.core.compiler.problem.redundantNullAnnotation=warning
72+
org.eclipse.jdt.core.compiler.problem.redundantNullCheck=ignore
73+
org.eclipse.jdt.core.compiler.problem.redundantSpecificationOfTypeArguments=ignore
74+
org.eclipse.jdt.core.compiler.problem.redundantSuperinterface=ignore
75+
org.eclipse.jdt.core.compiler.problem.reportMethodCanBePotentiallyStatic=ignore
76+
org.eclipse.jdt.core.compiler.problem.reportMethodCanBeStatic=ignore
77+
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning
78+
org.eclipse.jdt.core.compiler.problem.specialParameterHidingField=disabled
79+
org.eclipse.jdt.core.compiler.problem.staticAccessReceiver=warning
80+
org.eclipse.jdt.core.compiler.problem.suppressOptionalErrors=disabled
81+
org.eclipse.jdt.core.compiler.problem.suppressWarnings=enabled
82+
org.eclipse.jdt.core.compiler.problem.suppressWarningsNotFullyAnalysed=info
83+
org.eclipse.jdt.core.compiler.problem.syntacticNullAnalysisForFields=disabled
84+
org.eclipse.jdt.core.compiler.problem.syntheticAccessEmulation=ignore
85+
org.eclipse.jdt.core.compiler.problem.terminalDeprecation=warning
86+
org.eclipse.jdt.core.compiler.problem.typeParameterHiding=warning
87+
org.eclipse.jdt.core.compiler.problem.unavoidableGenericTypeProblems=enabled
88+
org.eclipse.jdt.core.compiler.problem.uncheckedTypeOperation=warning
89+
org.eclipse.jdt.core.compiler.problem.unclosedCloseable=warning
90+
org.eclipse.jdt.core.compiler.problem.undocumentedEmptyBlock=ignore
91+
org.eclipse.jdt.core.compiler.problem.unhandledWarningToken=warning
92+
org.eclipse.jdt.core.compiler.problem.unlikelyCollectionMethodArgumentType=warning
93+
org.eclipse.jdt.core.compiler.problem.unlikelyCollectionMethodArgumentTypeStrict=disabled
94+
org.eclipse.jdt.core.compiler.problem.unlikelyEqualsArgumentType=info
95+
org.eclipse.jdt.core.compiler.problem.unnecessaryElse=warning
96+
org.eclipse.jdt.core.compiler.problem.unnecessaryTypeCheck=warning
97+
org.eclipse.jdt.core.compiler.problem.unqualifiedFieldAccess=ignore
98+
org.eclipse.jdt.core.compiler.problem.unstableAutoModuleName=warning
99+
org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownException=warning
100+
org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionExemptExceptionAndThrowable=enabled
101+
org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionIncludeDocCommentReference=enabled
102+
org.eclipse.jdt.core.compiler.problem.unusedDeclaredThrownExceptionWhenOverriding=disabled
103+
org.eclipse.jdt.core.compiler.problem.unusedExceptionParameter=ignore
104+
org.eclipse.jdt.core.compiler.problem.unusedImport=warning
105+
org.eclipse.jdt.core.compiler.problem.unusedLabel=warning
106+
org.eclipse.jdt.core.compiler.problem.unusedLocal=ignore
107+
org.eclipse.jdt.core.compiler.problem.unusedObjectAllocation=ignore
108+
org.eclipse.jdt.core.compiler.problem.unusedParameter=ignore
109+
org.eclipse.jdt.core.compiler.problem.unusedParameterIncludeDocCommentReference=enabled
110+
org.eclipse.jdt.core.compiler.problem.unusedParameterWhenImplementingAbstract=disabled
111+
org.eclipse.jdt.core.compiler.problem.unusedParameterWhenOverridingConcrete=disabled
112+
org.eclipse.jdt.core.compiler.problem.unusedPrivateMember=warning
113+
org.eclipse.jdt.core.compiler.problem.unusedTypeParameter=ignore
114+
org.eclipse.jdt.core.compiler.problem.unusedWarningToken=warning
115+
org.eclipse.jdt.core.compiler.problem.varargsArgumentNeedCast=warning
116+
org.eclipse.jdt.core.compiler.release=disabled
117+
org.eclipse.jdt.core.compiler.source=11

.settings/org.eclipse.jdt.ui.prefs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
eclipse.preferences.version=1
2+
org.eclipse.jdt.ui.text.custom_code_templates=
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
eclipse.preferences.version=1
2+
org.eclipse.ltk.core.refactoring.enable.project.refactoring.history=false

Module.manifest

Whitespace-only changes.

TODO.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#TODO:
2+
3+
1) function arguments order
4+
2) types
5+
3) imports
6+
4) semantics for pcodeop stub instructions

build.gradle

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
// Builds a Ghidra Extension for a given Ghidra installation.
2+
//
3+
// An absolute path to the Ghidra installation directory must be supplied either by setting the
4+
// GHIDRA_INSTALL_DIR environment variable or Gradle project property:
5+
//
6+
// > export GHIDRA_INSTALL_DIR=<Absolute path to Ghidra>
7+
// > gradle
8+
//
9+
// or
10+
//
11+
// > gradle -PGHIDRA_INSTALL_DIR=<Absolute path to Ghidra>
12+
//
13+
// Gradle should be invoked from the directory of the project to build. Please see the
14+
// application.gradle.version property in <GHIDRA_INSTALL_DIR>/Ghidra/application.properties
15+
// for the correction version of Gradle to use for the Ghidra installation you specify.
16+
17+
//----------------------START "DO NOT MODIFY" SECTION------------------------------
18+
def ghidraInstallDir
19+
20+
if (System.env.GHIDRA_INSTALL_DIR) {
21+
ghidraInstallDir = System.env.GHIDRA_INSTALL_DIR
22+
}
23+
else if (project.hasProperty("GHIDRA_INSTALL_DIR")) {
24+
ghidraInstallDir = project.getProperty("GHIDRA_INSTALL_DIR")
25+
}
26+
27+
if (ghidraInstallDir) {
28+
apply from: new File(ghidraInstallDir).getCanonicalPath() + "/support/buildExtension.gradle"
29+
}
30+
else {
31+
throw new GradleException("GHIDRA_INSTALL_DIR is not defined!")
32+
}
33+
//----------------------END "DO NOT MODIFY" SECTION-------------------------------

0 commit comments

Comments
 (0)