Skip to content

Ghidra is a software reverse engineering (SRE) framework

[xml_export] Export repeatable comments for functions

saruman9f44adc7d2b36
diff --git a/Ghidra/Features/Base/src/main/java/ghidra/app/util/xml/FunctionsXmlMgr.java b/Ghidra/Features/Base/src/main/java/ghidra/app/util/xml/FunctionsXmlMgr.java
index 39b168d676..4b92a0ff8f 100644
--- a/Ghidra/Features/Base/src/main/java/ghidra/app/util/xml/FunctionsXmlMgr.java
+++ b/Ghidra/Features/Base/src/main/java/ghidra/app/util/xml/FunctionsXmlMgr.java
@@ -545,6 +545,7 @@ class FunctionsXmlMgr {
writeReturnType(writer, func);
writeAddressRange(writer, func);
writeRegularComment(writer, func.getComment());
+ writeRepeatableComment(writer, func.getRepeatableComment());
if (func.getSignatureSource() != SourceType.DEFAULT) {
writeTypeInfoComment(writer, func);
}
@@ -614,6 +615,12 @@ class FunctionsXmlMgr {
}
}
+ private void writeRepeatableComment(XmlWriter writer, String comment) {
+ if (comment != null && comment.length() > 0) {
+ writer.writeElement("REPEATABLE_CMT", null, comment);
+ }
+ }
+
private void writeStackFrame(XmlWriter writer, Function func) {
StackFrame frame = func.getStackFrame();