mirror of
https://github.com/radareorg/r2ghidra.git
synced 2026-11-07 06:25:57 -10:00
ccode: name unknown globals instead of raw address literals
When ccode is on, disable rawptr so unknown globals render as named symbols (iRam... / pcRam... / piRam...) instead of *0x... address literals.
This commit is contained in:
1 parent
29400ddf78
commit
a47158ce76
1 file changed
+2
-1
+2
-1
@@ -221,7 +221,8 @@ static void Decompile(RCore *core, ut64 addr, DecompileMode mode, std::stringstr
|
||||
DocumentStorage store = DocumentStorage ();
|
||||
arch.max_implied_ref = cfg_var_maximplref.GetInt (core->config);
|
||||
arch.readonlypropagate = cfg_var_roprop.GetBool (core->config);
|
||||
arch.setRawPtr (cfg_var_rawptr.GetBool (core->config));
|
||||
// ccode (clean C output) disables raw pointer globals so unknowns become named symbols
|
||||
arch.setRawPtr (cfg_var_rawptr.GetBool (core->config) && !cfg_var_ccode.GetBool (core->config));
|
||||
arch.init (store);
|
||||
|
||||
auto faddr = Address(arch.getDefaultCodeSpace (), function->addr);
|
||||
|
||||
Reference in new issue
Block a user