From daf1569966f6fe06cf98de9059209aef6949ed81 Mon Sep 17 00:00:00 2001 From: Xusheng Date: Wed, 12 Oct 2022 19:33:11 +0800 Subject: Let "make code" become first-class feature. Fix https://github.com/Vector35/binaryninja-api/issues/1404. --- python/examples/make_code.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'python') diff --git a/python/examples/make_code.py b/python/examples/make_code.py index 0f2d2feb..3e0f14d0 100644 --- a/python/examples/make_code.py +++ b/python/examples/make_code.py @@ -44,7 +44,7 @@ def make_code(bv: BinaryView, start: int, end: int) -> None: end = min(seg.end, end) section_ends = [s.end for s in bv.get_sections_at(start)] end = min(*section_ends, end) - bv.define_data_var(start, Type.array(Type.int(1, False), end-start), f"CODE_{start:08x}") + bv.define_user_data_var(start, Type.array(Type.int(1, False), end-start), f"CODE_{start:08x}") def make_code_helper(ctx: UIActionContext): make_code(ctx.binaryView, ctx.address, ctx.address + ctx.length) -- cgit v1.3.1