MCPcopy Create free account
hub / github.com/emscripten-core/emscripten / verify_dwarf

Method verify_dwarf

test/test_other.py:3181–3185  ·  view source on GitHub ↗
(self, wasm_file, verify_func)

Source from the content-addressed store, hash-verified

3179
3180 # Verify the existence (or lack thereof) of DWARF info in the given wasm file
3181 def verify_dwarf(self, wasm_file, verify_func):
3182 self.assertExists(wasm_file)
3183 info = self.run_process([LLVM_DWARFDUMP, '--all', wasm_file], stdout=PIPE).stdout
3184 verify_func('DW_TAG_subprogram', info) # Subprogram entry in .debug_info
3185 verify_func('debug_line[0x', info) # Line table
3186
3187 def verify_dwarf_exists(self, wasm_file):
3188 self.verify_dwarf(wasm_file, self.assertIn)

Callers 2

verify_dwarf_existsMethod · 0.95

Calls 2

assertExistsMethod · 0.80
run_processMethod · 0.80

Tested by

no test coverage detected