24 lines
683 B
Java
24 lines
683 B
Java
// @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.Entry> entries = db.loadAllEntries();
|
|
for (FunctionDatabase.Entry entry : entries) {
|
|
println("entry.name: " + entry.name + " entry.address: " + entry.address + " entry.type: " + entry.type);
|
|
}
|
|
}
|
|
}
|
|
} |