diff options
Diffstat (limited to 'debug/risc-v-gsp-rm-vm/ghidra/MarkGreenEyeHits.java')
| -rw-r--r-- | debug/risc-v-gsp-rm-vm/ghidra/MarkGreenEyeHits.java | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/debug/risc-v-gsp-rm-vm/ghidra/MarkGreenEyeHits.java b/debug/risc-v-gsp-rm-vm/ghidra/MarkGreenEyeHits.java index b140ddd..bff3dfd 100644 --- a/debug/risc-v-gsp-rm-vm/ghidra/MarkGreenEyeHits.java +++ b/debug/risc-v-gsp-rm-vm/ghidra/MarkGreenEyeHits.java @@ -1,4 +1,4 @@ -// Annotate green-eye runtime hits in the current Ghidra program. +// Annotate risc-v-gsp-rm-debugger runtime hits in the current Ghidra program. // // Input: the TSV produced by greeneye.ghidra.export_hits(): // addr <TAB> hits <TAB> symbol <TAB> annotation @@ -9,10 +9,10 @@ // -postScript MarkGreenEyeHits.java /abs/path/greeneye_hits.tsv // // For each address it adds a plate comment on the containing function -// ("green-eye: N hits") and a bookmark at the exact address. +// ("risc-v-gsp-rm-debugger: N hits") and a bookmark at the exact address. // //@category OpenIOV -//@menupath Tools.OpenIOV.Mark green-eye hits +//@menupath Tools.OpenIOV.Mark risc-v-gsp-rm-debugger hits import java.io.BufferedReader; import java.io.File; @@ -62,7 +62,7 @@ public class MarkGreenEyeHits extends GhidraScript { Address address = toAddr(addrValue); Function function = getFunctionContaining(address); if (function != null) { - String note = "green-eye: " + hits + " hit(s)" + String note = "risc-v-gsp-rm-debugger: " + hits + " hit(s)" + (symbol.isEmpty() ? "" : " (" + symbol + ")"); String existing = function.getComment(); function.setComment(existing == null ? note : existing + "\n" + note); @@ -70,10 +70,10 @@ public class MarkGreenEyeHits extends GhidraScript { } else { missed++; } - createBookmark(address, "Note", "green-eye"); + createBookmark(address, "Note", "risc-v-gsp-rm-debugger"); } } - println("green-eye: annotated " + marked + " functions (" + missed + println("risc-v-gsp-rm-debugger: annotated " + marked + " functions (" + missed + " addresses outside any function) from " + in.getAbsolutePath()); } } |
