summaryrefslogtreecommitdiff
path: root/test/unit/test_parsing_error.py
diff options
context:
space:
mode:
authorAlon Zakai <azakai@google.com>2020-02-18 19:22:39 -0800
committerGitHub <noreply@github.com>2020-02-18 19:22:39 -0800
commit08cc4d6711702a3f69159a0a4aa6e8ecedb98b5c (patch)
tree8cd28afd9739f85dc799616cf6bf3690cd009bef /test/unit/test_parsing_error.py
parent8307ac45a831273ba86707a8267f908ee1c7c747 (diff)
downloadbinaryen-08cc4d6711702a3f69159a0a4aa6e8ecedb98b5c.tar.gz
binaryen-08cc4d6711702a3f69159a0a4aa6e8ecedb98b5c.tar.bz2
binaryen-08cc4d6711702a3f69159a0a4aa6e8ecedb98b5c.zip
DWARF: Fix debug_range handling of invalid entries (#2662)
If an invalid entry appears - either it began as such, or became invalid after optimization - we should not emit (0, 0) which is an end marker. Instead, emit an invalid entry marker, something with (0, x) for x != 0. As a bonus, if a test/passes case has "noprint" in the name, don't print the wasm, which we do by default. In the testcase here for example we just care about the dwarf, and the printed module would be quite large. Thank you to @paolosevMSFT for identifying and suggesting the fix.
Diffstat (limited to 'test/unit/test_parsing_error.py')
0 files changed, 0 insertions, 0 deletions