mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 18:29:37 +02:00
GP-2157 Marshaling refactor. Decompiler side.
This commit is contained in:
parent
672c1f11e2
commit
d8c10bf229
97 changed files with 5313 additions and 3733 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue