From 7226bd22648b6670ffc3994d646cf340d0fa0731 Mon Sep 17 00:00:00 2001 From: caheckman <48068198+caheckman@users.noreply.github.com> Date: Wed, 2 Aug 2023 16:11:02 +0000 Subject: [PATCH] GP-3679 Emit equate symbols with "constant" highlighting --- Ghidra/Features/Decompiler/src/decompile/cpp/printc.cc | 2 ++ 1 file changed, 2 insertions(+) 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);