diff options
| author | Camille Mougey <camille.mougey@cea.fr> | 2015-02-10 09:57:50 +0100 |
|---|---|---|
| committer | Camille Mougey <camille.mougey@cea.fr> | 2015-02-10 09:57:50 +0100 |
| commit | 33189681bf13f88a1e39383a86079fc001ec619d (patch) | |
| tree | b4615c230a34482b8abc756e4964532c682f9243 /example/ida/symbol_exec.py | |
| parent | 11abe47d5b60d1442e1da6d55b9ac53f6f8f632b (diff) | |
| download | miasm-33189681bf13f88a1e39383a86079fc001ec619d.tar.gz miasm-33189681bf13f88a1e39383a86079fc001ec619d.zip | |
VariableIdentifier: Less hacky way to identify sub vars, add a prefix feature
Diffstat (limited to 'example/ida/symbol_exec.py')
| -rw-r--r-- | example/ida/symbol_exec.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/example/ida/symbol_exec.py b/example/ida/symbol_exec.py index b1601cef..c7aff5b5 100644 --- a/example/ida/symbol_exec.py +++ b/example/ida/symbol_exec.py @@ -16,7 +16,8 @@ class symbolicexec_t(idaapi.simplecustviewer_t): def expand(self, linenum): element = self.line2eq[linenum] - expanded = Variables_Identifier(element[1]) + expanded = Variables_Identifier(element[1], + var_prefix="%s_v" % element[0]) self.line2eq = self.line2eq[0:linenum] + \ expanded.vars.items() + \ [(element[0], expanded.equation)] + \ |