Skip to content

Commit

Permalink
tools/mpy-tool.py: Initialize line_info_top.
Browse files Browse the repository at this point in the history
Without it the line number mapping doesn't work.

Signed-off-by: Martin Milata <[email protected]>
  • Loading branch information
mmilata authored and dpgeorge committed Feb 1, 2023
1 parent 6abf03b commit 850f09b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tools/mpy-tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -936,6 +936,10 @@ def freeze_raw_code(self, prelude_ptr=None, type_sig=0):
" .line_info = fun_data_%s + %u,"
% (self.escaped_name, self.offset_line_info)
)
print(
" .line_info_top = fun_data_%s + %u,"
% (self.escaped_name, self.offset_closure_info)
)
print(
" .opcodes = fun_data_%s + %u," % (self.escaped_name, self.offset_opcodes)
)
Expand Down

0 comments on commit 850f09b

Please sign in to comment.