mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-05 10:49:34 +02:00
GP-2237 AddrSpace as marshaling primitive and prettyprint update
This commit is contained in:
parent
4807ec354a
commit
6be9943b8a
58 changed files with 1333 additions and 1098 deletions
|
@ -52,16 +52,15 @@ void Comment::encode(Encoder &encoder) const
|
|||
|
||||
/// Parse a \<comment> element from the given stream decoder
|
||||
/// \param decoder is the given stream decoder
|
||||
/// \param manage is a manager for resolving address space references
|
||||
void Comment::decode(Decoder &decoder,const AddrSpaceManager *manage)
|
||||
void Comment::decode(Decoder &decoder)
|
||||
|
||||
{
|
||||
emitted = false;
|
||||
type = 0;
|
||||
uint4 elemId = decoder.openElement(ELEM_COMMENT);
|
||||
type = Comment::encodeCommentType(decoder.readString(ATTRIB_TYPE));
|
||||
funcaddr = Address::decode(decoder,manage);
|
||||
addr = Address::decode(decoder,manage);
|
||||
funcaddr = Address::decode(decoder);
|
||||
addr = Address::decode(decoder);
|
||||
uint4 subId = decoder.peekElement();
|
||||
if (subId != 0) {
|
||||
decoder.openElement();
|
||||
|
@ -249,13 +248,13 @@ void CommentDatabaseInternal::encode(Encoder &encoder) const
|
|||
encoder.closeElement(ELEM_COMMENTDB);
|
||||
}
|
||||
|
||||
void CommentDatabaseInternal::decode(Decoder &decoder,const AddrSpaceManager *manage)
|
||||
void CommentDatabaseInternal::decode(Decoder &decoder)
|
||||
|
||||
{
|
||||
uint4 elemId = decoder.openElement(ELEM_COMMENTDB);
|
||||
while(decoder.peekElement() != 0) {
|
||||
Comment com;
|
||||
com.decode(decoder,manage);
|
||||
com.decode(decoder);
|
||||
addComment(com.getType(),com.getFuncAddr(),com.getAddr(),com.getText());
|
||||
}
|
||||
decoder.closeElement(elemId);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue