diff options
| author | serpilliere <serpilliere@users.noreply.github.com> | 2016-01-26 17:45:24 +0100 |
|---|---|---|
| committer | serpilliere <serpilliere@users.noreply.github.com> | 2016-01-26 17:45:24 +0100 |
| commit | c1bc56754495e1c2a4176aaa486de9e58cb02a88 (patch) | |
| tree | 1ca51aab9e0908e3f11b0cccc7ad7f50be349f67 /example/disasm/callback.py | |
| parent | b3fae7887d63bcdbb18b25ade6d20f152d802005 (diff) | |
| parent | d6222c4383891c6706ce70ec7750b42ee24e1cfc (diff) | |
| download | miasm-c1bc56754495e1c2a4176aaa486de9e58cb02a88.tar.gz miasm-c1bc56754495e1c2a4176aaa486de9e58cb02a88.zip | |
Merge pull request #309 from commial/feature-basicblocks
Feature AsmCFG
Diffstat (limited to 'example/disasm/callback.py')
| -rw-r--r-- | example/disasm/callback.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/example/disasm/callback.py b/example/disasm/callback.py index 6c77023e..4a7507dd 100644 --- a/example/disasm/callback.py +++ b/example/disasm/callback.py @@ -63,5 +63,5 @@ blocks_after = mdis.dis_multibloc(0) print "\n".join(str(block) for block in blocks_after) # Ensure the callback has been called -assert blocks[0].lines[0].name == "CALL" -assert blocks_after[0].lines[0].name == "PUSH" +assert blocks.heads()[0].lines[0].name == "CALL" +assert blocks_after.heads()[0].lines[0].name == "PUSH" |