summaryrefslogtreecommitdiff
path: root/python/examples
diff options
context:
space:
mode:
authorGalen Williamson <galen@vector35.com>2021-12-06 19:10:26 -0500
committerGalen Williamson <galen@vector35.com>2021-12-06 19:10:26 -0500
commit853449ea871a150b92b66928eecf30476674168d (patch)
treefb4b26d42aee4fac930e2b2ca698f0358f8a1e03 /python/examples
parent5904e6ec629c7bc2fc824c98fad126bd5d7d9341 (diff)
fixed python/examples/asm_to_llil_view.py for API v3.0
Diffstat (limited to 'python/examples')
-rw-r--r--python/examples/asm_to_llil_view.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/python/examples/asm_to_llil_view.py b/python/examples/asm_to_llil_view.py
index bd9d4e56..eee4f85f 100644
--- a/python/examples/asm_to_llil_view.py
+++ b/python/examples/asm_to_llil_view.py
@@ -91,13 +91,13 @@ class DisassemblyAndLowLevelILGraph(FlowGraph):
for i in block:
# Display assembly instructions at or before the current IL instruction
while len(asm_instrs) > 0 and i.address >= asm_instrs[0]:
- asm_lines, length = asm_renderer.get_disassembly_text(asm_instrs[0])
- lines += asm_lines
+ for asm_lines, length in asm_renderer.get_disassembly_text(asm_instrs[0]):
+ lines.append(asm_lines)
asm_instrs = asm_instrs[1:]
# Display IL instruction
- il_lines, length = il_renderer.get_disassembly_text(i.instr_index)
- lines += il_lines
+ for il_lines, length in il_renderer.get_disassembly_text(i.instr_index):
+ lines.append(il_lines)
# Go through lines and add addresses to them
for line in lines: