Skip to content

Ghidra is a software reverse engineering (SRE) framework

GP-3679 Emit equate symbols with "constant" highlighting

caheckman7226bd22648b
diff --git a/Ghidra/Features/Decompiler/src/decompile/cpp/printc.cc b/Ghidra/Features/Decompiler/src/decompile/cpp/printc.cc
index e4afcce855..424e013d24 100644
--- a/Ghidra/Features/Decompiler/src/decompile/cpp/printc.cc
+++ b/Ghidra/Features/Decompiler/src/decompile/cpp/printc.cc
@@ -1832,6 +1832,8 @@ void PrintC::pushSymbol(const Symbol *sym,const Varnode *vn,const PcodeOp *op)
tokenColor = EmitMarkup::global_color;
else if (sym->getCategory() == Symbol::function_parameter)
tokenColor = EmitMarkup::param_color;
+ else if (sym->getCategory() == Symbol::equate)
+ tokenColor = EmitMarkup::const_color;
else
tokenColor = EmitMarkup::var_color;
pushSymbolScope(sym);