We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 19d188b commit 87bba5bCopy full SHA for 87bba5b
tools/wasm-sourcemap.py
@@ -212,12 +212,9 @@ def read_dwarf_entries(wasm, options):
212
entries = []
213
debug_line_chunks = re.split(r"debug_line\[(0x[0-9a-f]*)\]", output.decode('utf-8'))
214
map_stmt_list_to_comp_dir = extract_comp_dir_map(debug_line_chunks[0])
215
- for i in range(1, len(debug_line_chunks), 2):
216
- stmt_list = debug_line_chunks[i]
+ for stmt_list, line_chunk in zip(debug_line_chunks[1::2], debug_line_chunks[2::2]):
217
comp_dir = map_stmt_list_to_comp_dir.get(stmt_list, '')
218
219
- line_chunk = debug_line_chunks[i + 1]
220
-
221
# include_directories[ 1] = "/Users/yury/Work/junk/sqlite-playground/src"
222
# file_names[ 1]:
223
# name: "playground.c"
0 commit comments