Skip to content

Commit f44adc7

Browse files
committed
[xml_export] Export repeatable comments for functions
1 parent 07f293c commit f44adc7

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Ghidra/Features/Base/src/main/java/ghidra/app/util/xml/FunctionsXmlMgr.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -545,6 +545,7 @@ private void writeFunction(XmlWriter writer, Function func) {
545545
writeReturnType(writer, func);
546546
writeAddressRange(writer, func);
547547
writeRegularComment(writer, func.getComment());
548+
writeRepeatableComment(writer, func.getRepeatableComment());
548549
if (func.getSignatureSource() != SourceType.DEFAULT) {
549550
writeTypeInfoComment(writer, func);
550551
}
@@ -614,6 +615,12 @@ private void writeRegularComment(XmlWriter writer, String comment) {
614615
}
615616
}
616617

618+
private void writeRepeatableComment(XmlWriter writer, String comment) {
619+
if (comment != null && comment.length() > 0) {
620+
writer.writeElement("REPEATABLE_CMT", null, comment);
621+
}
622+
}
623+
617624
private void writeStackFrame(XmlWriter writer, Function func) {
618625
StackFrame frame = func.getStackFrame();
619626

0 commit comments

Comments
 (0)