about summary refs log tree commit diff stats
path: root/example
diff options
context:
space:
mode:
authorserpilliere <devnull@localhost>2011-11-14 20:14:06 +0100
committerserpilliere <devnull@localhost>2011-11-14 20:14:06 +0100
commit3092083d970a1566e31d65670117150f004692fe (patch)
tree82ddf9c266dbd73e486ad3f326abe91bdf71af49 /example
parent5a76891aa9ccdfb80564deca836b038917efff06 (diff)
downloadmiasm-3092083d970a1566e31d65670117150f004692fe.tar.gz
miasm-3092083d970a1566e31d65670117150f004692fe.zip
add symbol renaming; save to file
Diffstat (limited to 'example')
-rwxr-xr-xexample/disas_and_graph.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/example/disas_and_graph.py b/example/disas_and_graph.py
index f7b0fa60..8a41d979 100755
--- a/example/disas_and_graph.py
+++ b/example/disas_and_graph.py
@@ -38,6 +38,8 @@ parser.add_option('-c', "--followcall", dest="followcall", action="store_true",
 parser.add_option('-n', "--dontdiscallret", dest="dontdiscallret", action="store_true",
                   default=False, metavar=None,
                   help="dont disasssemble call next instruction")
+parser.add_option('-l', "--loadstate", dest="load_state_file", default = None,
+                  help="load state file")
 
 
 (options, args) = parser.parse_args(sys.argv[1:])
@@ -194,4 +196,6 @@ def my_disasm_callback(ad):
                 l.set_args_symbols(o)
     return all_bloc
 
-graph_blocs(ad_to_dis, all_bloc = [], dis_callback = my_disasm_callback)
+graph_blocs(ad_to_dis, symbol_pool, all_bloc = [],
+            dis_callback = my_disasm_callback,
+            load_state_file = options.load_state_file)