mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-04 18:29:37 +02:00
Hide implied extensions for arithmetic ops
This commit is contained in:
parent
706960a139
commit
8860979785
6 changed files with 139 additions and 56 deletions
|
@ -394,6 +394,21 @@ string OptionNoCastPrinting::apply(Architecture *glb,const string &p1,const stri
|
|||
return "No cast printing turned "+prop;
|
||||
}
|
||||
|
||||
/// \class OptionHideExtensions
|
||||
/// \brief Toggle whether implied extensions (ZEXT or SEXT) are printed
|
||||
string OptionHideExtensions::apply(Architecture *glb,const string &p1,const string &p2,const string &p3) const
|
||||
|
||||
{
|
||||
bool val = onOrOff(p1);
|
||||
PrintC *lng = dynamic_cast<PrintC *>(glb->print);
|
||||
if (lng == (PrintC *)0)
|
||||
return "Can only toggle extension hiding for C language";
|
||||
lng->setHideImpliedExts(val);
|
||||
string prop;
|
||||
prop = val ? "on" : "off";
|
||||
return "Implied extension hiding turned "+prop;
|
||||
}
|
||||
|
||||
/// \class OptionMaxLineWidth
|
||||
/// \brief Set the maximum number of characters per decompiled line
|
||||
///
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue