about summary refs log tree commit diff stats
path: root/miasm2/analysis/depgraph.py
diff options
context:
space:
mode:
authorCamille Mougey <commial@gmail.com>2015-05-01 12:43:33 +0200
committerCamille Mougey <commial@gmail.com>2015-05-01 12:43:33 +0200
commitf9bf6fbbce0d984549fb11e16cb9acfc7be00c86 (patch)
tree9ea6261f9831c056ed471494b1664b3b93fbfbf6 /miasm2/analysis/depgraph.py
parent9cae6a2fc2091a3488817dd70883f16c0919d6b1 (diff)
parente3dd0a4c0cb398d569d0fbadb8f34f8fa727f254 (diff)
downloadmiasm-f9bf6fbbce0d984549fb11e16cb9acfc7be00c86.tar.gz
miasm-f9bf6fbbce0d984549fb11e16cb9acfc7be00c86.zip
Merge pull request #158 from mrphrazer/minor_fixes
Minor fixes
Diffstat (limited to 'miasm2/analysis/depgraph.py')
-rw-r--r--miasm2/analysis/depgraph.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/miasm2/analysis/depgraph.py b/miasm2/analysis/depgraph.py
index 19f8e6e8..1b1d7ed4 100644
--- a/miasm2/analysis/depgraph.py
+++ b/miasm2/analysis/depgraph.py
@@ -495,8 +495,8 @@ class DependencyGraph(object):
 
         Following arguments define filters used to generate dependencies
         @apply_simp: (optional) Apply expr_simp
-        @follow_mem: (optional) Track memory syntaxically
-        @follow_call: (optional) Track throught "call"
+        @follow_mem: (optional) Track memory syntactically
+        @follow_call: (optional) Track through "call"
         """
         # Init
         self._ira = ira
@@ -562,7 +562,7 @@ class DependencyGraph(object):
         follow = set()
         nofollow = set()
         for expr in exprs:
-            if isinstance(expr, m2_expr.ExprOp) and expr.op.startswith('call'):
+            if expr.is_function_call():
                 nofollow.add(expr)
             else:
                 follow.add(expr)