Skip to content

Ghidra is a software reverse engineering (SRE) framework

Merge branch 'GT-3417_ryanmkurtz_PR-1248_snemes_repeatable'

Ryan Kurtz66172d136ad7
diff --cc Ghidra/Features/Base/src/main/java/ghidra/program/flatapi/FlatProgramAPI.java
index 0c38d8cde0,2fcc68f107..2f9f257594
--- a/Ghidra/Features/Base/src/main/java/ghidra/program/flatapi/FlatProgramAPI.java
+++ b/Ghidra/Features/Base/src/main/java/ghidra/program/flatapi/FlatProgramAPI.java
@@@ -510,9 -509,20 +510,20 @@@ public class FlatProgramAPI
return cmd.applyTo(currentProgram);
}
+ /**
+ * Sets a repeatable comment at the specified address
+ * @param address the address to set the repeatable comment
+ * @param comment the repeatable comment
+ * @return true if the repeatable comment was successfully set
+ */
+ public final boolean setRepeatableComment(Address address, String comment) {
+ SetCommentCmd cmd = new SetCommentCmd(address, CodeUnit.REPEATABLE_COMMENT, comment);
+ return cmd.applyTo(currentProgram);
+ }
+
/**
* Returns the PLATE comment at the specified address. The comment returned is the raw text
- * of the comment. Contrastingly, calling {@link #getPlateCommentAsRendered(Address)} will
+ * of the comment. Contrastingly, calling {@link GhidraScript#getPlateCommentAsRendered(Address)} will
* return the text of the comment as it is rendered in the display.
*
* @param address the address to get the comment