diff options
| author | serpilliere <devnull@localhost> | 2011-09-01 11:06:34 +0200 |
|---|---|---|
| committer | serpilliere <devnull@localhost> | 2011-09-01 11:06:34 +0200 |
| commit | 24308ec5980e38f0870e9487b63c6d2704899d23 (patch) | |
| tree | a678311540e4f7244d812786054e0bf0180c0e08 /example/disas_and_graph.py | |
| parent | 6d3b198a544e0930c50f81dc96ad4b6d4783bb34 (diff) | |
| download | miasm-24308ec5980e38f0870e9487b63c6d2704899d23.tar.gz miasm-24308ec5980e38f0870e9487b63c6d2704899d23.zip | |
fix elfesteem api modif
Diffstat (limited to 'example/disas_and_graph.py')
| -rwxr-xr-x | example/disas_and_graph.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/example/disas_and_graph.py b/example/disas_and_graph.py index 9a0e5527..1984bd49 100755 --- a/example/disas_and_graph.py +++ b/example/disas_and_graph.py @@ -69,7 +69,7 @@ elif data.startswith("\xca\xfe\xba\xbe"): for m in e.description.methods: name = m.name descr = m.descriptor - code = filter(lambda x: type(x) is jclass_init.WCAttribute_code, m.attributes)[0].code + code = filter(lambda x: type(x) is jclass_init.CAttribute_code, m.attributes)[0].code methods[(name, descr)] = code if len(sys.argv) != 4: java_usage() @@ -127,9 +127,7 @@ def my_disasm_callback(ad): if hasattr(v, "pp"): o[k] = v.pp() else: - print repr(v) - fds - o[k] = "XX"#repr(v) + o[k] = repr(v) for b in all_bloc: for l in b.lines: l.set_args_symbols(o) |