
Add a helper method for collecting line table file references that does the correct thing for DWARF 5 vs DWARF 4 (in the latter case you have an implicit 0 entry which is the comp dir, whereas in the former case you do not). This is to avoid out-of-bounds errors when examining the file table section of a DWARF 5 compilation unit's line table. Included is a new linux/amd-only test that includes a precompiled C object file with a DWARF-5 section that triggers the bug in question. Fixes #2319
516 B
516 B
Tests skipped by each supported backend:
- 386 skipped = 2.1% (3/146)
- 1 broken
- 2 broken - cgo stacktraces
- arm64 skipped = 2.1% (3/146)
- 2 broken
- 1 broken - global variable symbolication
- darwin/lldb skipped = 0.68% (1/146)
- 1 upstream issue
- freebsd skipped = 7.5% (11/146)
- 11 broken
- linux/386/pie skipped = 0.68% (1/146)
- 1 broken
- pie skipped = 0.68% (1/146)
- 1 upstream issue - https://github.com/golang/go/issues/29322
- windows skipped = 1.4% (2/146)
- 1 broken
- 1 upstream issue