GP-2157 Marshaling refactor. Decompiler side.

This commit is contained in:
caheckman 2022-05-17 16:15:21 -04:00
parent 672c1f11e2
commit d8c10bf229
97 changed files with 5313 additions and 3733 deletions

View file

@ -28,7 +28,6 @@ CommentDatabaseGhidra::CommentDatabaseGhidra(ArchitectureGhidra *g)
void CommentDatabaseGhidra::fillCache(const Address &fad) const
{
Document *doc;
uint4 commentfilter;
if (cachefilled) return; // Already queried ghidra
@ -41,10 +40,9 @@ void CommentDatabaseGhidra::fillCache(const Address &fad) const
iter = cache.beginComment(fad);
iterend = cache.endComment(fad);
doc = ghidra->getComments(fad,commentfilter);
if (doc != (Document *)0) {
cache.restoreXml(doc->getRoot(),ghidra);
delete doc;
XmlDecode decoder;
if (ghidra->getComments(fad,commentfilter,decoder)) {
cache.decode(decoder,ghidra);
}
}