Move java src
This commit is contained in:
parent
ac9879a4aa
commit
3c6c7a6f65
|
@ -1 +0,0 @@
|
||||||
bin
|
|
|
@ -1,28 +0,0 @@
|
||||||
// @category _Reman3
|
|
||||||
// @menupath Reman3.Test
|
|
||||||
// @importpackage org.sqlite
|
|
||||||
|
|
||||||
import java.util.List;
|
|
||||||
|
|
||||||
import ghidra.app.script.GhidraScript;
|
|
||||||
import re3lib.FunctionDatabase;
|
|
||||||
import re3lib.RemanConfig;
|
|
||||||
|
|
||||||
public class Test extends GhidraScript {
|
|
||||||
@Override
|
|
||||||
public void run() throws Exception {
|
|
||||||
RemanConfig.INSTANCE = new RemanConfig(this);
|
|
||||||
|
|
||||||
// Example SQLite usage
|
|
||||||
try (FunctionDatabase db = new FunctionDatabase(this)) {
|
|
||||||
List<FunctionDatabase.FunctionEntry> entries = db.loadAllEntries();
|
|
||||||
for (FunctionDatabase.FunctionEntry entry : entries) {
|
|
||||||
println("entry.name: " + entry.name + " entry.address: " + entry.address + " entry.type: " + entry.type
|
|
||||||
+ " calling_convention: " + entry.callingConvention + " return_type: " + entry.returnType);
|
|
||||||
if (!entry.parameterNames.isEmpty()) {
|
|
||||||
println(" parameters: " + entry.parameterNames + " | types: " + entry.parameterTypes);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
Loading…
Reference in New Issue