mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 18:29:37 +02:00
GP-3680 Add case label tokens
This commit is contained in:
parent
c072972153
commit
fe2f993e11
15 changed files with 415 additions and 138 deletions
|
@ -223,7 +223,7 @@ void PrintLanguage::pushVnExplicit(const Varnode *vn,const PcodeOp *op)
|
|||
return;
|
||||
}
|
||||
if (vn->isConstant()) {
|
||||
pushConstant(vn->getOffset(),vn->getHighTypeReadFacing(op),vn,op);
|
||||
pushConstant(vn->getOffset(),vn->getHighTypeReadFacing(op),vartoken,vn,op);
|
||||
return;
|
||||
}
|
||||
pushSymbolDetail(vn,op,true);
|
||||
|
@ -394,6 +394,9 @@ void PrintLanguage::emitAtom(const Atom &atom)
|
|||
case fieldtoken:
|
||||
emit->tagField(atom.name,atom.highlight,atom.ptr_second.ct,atom.offset,atom.op);
|
||||
break;
|
||||
case casetoken:
|
||||
emit->tagCaseLabel(atom.name, atom.highlight, atom.op, atom.ptr_second.intValue);
|
||||
break;
|
||||
case blanktoken:
|
||||
break; // Print nothing
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue