Phase A: DSP FFT plan ID (radix 2/3/5, 1/N inv scale), dispatch-kernel dumps
This commit is contained in:
@@ -0,0 +1,30 @@
|
||||
import ghidra.app.script.GhidraScript;
|
||||
import ghidra.program.model.symbol.Reference;
|
||||
import ghidra.program.model.symbol.ReferenceIterator;
|
||||
import ghidra.program.model.address.Address;
|
||||
import ghidra.program.model.address.AddressSpace;
|
||||
import java.io.PrintWriter;
|
||||
|
||||
public class SearchRefs extends GhidraScript {
|
||||
@Override
|
||||
public void run() throws Exception {
|
||||
String[] targets = {"180008140","180039aa0","181c5cd10","18003f1a0","18003f600"};
|
||||
AddressSpace as = currentProgram.getAddressFactory().getDefaultAddressSpace();
|
||||
PrintWriter pw = new PrintWriter(new java.io.BufferedWriter(
|
||||
new java.io.FileWriter("/home/m/re-tools/xrefs.txt")));
|
||||
for (String ts : targets) {
|
||||
long ta = Long.parseLong(ts,16);
|
||||
Address t = as.getAddress(ta);
|
||||
pw.println("### TARGET " + ts);
|
||||
ReferenceIterator it = currentProgram.getReferenceManager().getReferencesTo(t);
|
||||
int n=0;
|
||||
while (it.hasNext() && n<200) {
|
||||
Reference r = it.next();
|
||||
pw.println(" from " + r.getFromAddress() + " type=" + r.getReferenceType());
|
||||
n++;
|
||||
}
|
||||
}
|
||||
pw.close();
|
||||
println("XREFS_DONE");
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user