about summary refs log tree commit diff stats
path: root/example/ida/graph_ir.py
diff options
context:
space:
mode:
authorFabrice Desclaux <fabrice.desclaux@cea.fr>2018-01-09 17:31:26 +0100
committerFabrice Desclaux <fabrice.desclaux@cea.fr>2018-01-09 17:31:26 +0100
commitb90c1e27e04cac365f1c0167b07b2932bda0de3e (patch)
tree66b8c3a5079402bc305e126a1bde7edc4e628c7a /example/ida/graph_ir.py
parent82f8a6b7abe71478942761ddbd8c93c69e2f0727 (diff)
downloadfocaccia-miasm-b90c1e27e04cac365f1c0167b07b2932bda0de3e.tar.gz
focaccia-miasm-b90c1e27e04cac365f1c0167b07b2932bda0de3e.zip
Ida/Example: clean symbexec plugin
Diffstat (limited to 'example/ida/graph_ir.py')
-rw-r--r--example/ida/graph_ir.py12
1 files changed, 0 insertions, 12 deletions
diff --git a/example/ida/graph_ir.py b/example/ida/graph_ir.py
index 9a65617b..8d9dea4f 100644
--- a/example/ida/graph_ir.py
+++ b/example/ida/graph_ir.py
@@ -95,18 +95,9 @@ class GraphMiasmIR(idaapi.GraphViewer):
     def OnClick(self, node_id):
         return True
 
-    def OnCommand(self, cmd_id):
-        if self.cmd_test == cmd_id:
-            print 'TEST!'
-            return
-        print "command:", cmd_id
-
     def Show(self):
         if not idaapi.GraphViewer.Show(self):
             return False
-        self.cmd_test = self.AddCommand("Test", "F2")
-        if self.cmd_test == 0:
-            print "Failed to add popup menu item!"
         return True
 
 
@@ -185,9 +176,6 @@ def build_graph(verbose=False, simplify=False):
 
     g = GraphMiasmIR(ir_arch, title, None)
 
-    g.cmd_a = g.AddCommand("cmd a", "x")
-    g.cmd_b = g.AddCommand("cmd b", "y")
-
     g.Show()
 
 if __name__ == "__main__":