Skip to content

Commit 850f09b

Browse files
mmilatadpgeorge
authored andcommitted
tools/mpy-tool.py: Initialize line_info_top.
Without it the line number mapping doesn't work. Signed-off-by: Martin Milata <[email protected]>
1 parent 6abf03b commit 850f09b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

tools/mpy-tool.py

+4
Original file line numberDiff line numberDiff line change
@@ -936,6 +936,10 @@ def freeze_raw_code(self, prelude_ptr=None, type_sig=0):
936936
" .line_info = fun_data_%s + %u,"
937937
% (self.escaped_name, self.offset_line_info)
938938
)
939+
print(
940+
" .line_info_top = fun_data_%s + %u,"
941+
% (self.escaped_name, self.offset_closure_info)
942+
)
939943
print(
940944
" .opcodes = fun_data_%s + %u," % (self.escaped_name, self.offset_opcodes)
941945
)

0 commit comments

Comments
 (0)