mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44:20 +00:00
* std.debug.Dwarf: add `sortCompileUnits` along with a field to track
the state for the purpose of assertions and correct API usage.
This makes batch lookups faster.
- in the future, findCompileUnit should be enhanced to rely on sorted
compile units as well.
* implement `std.debug.Dwarf.resolveSourceLocations` as well as
`std.debug.Info.resolveSourceLocations`. It's still pretty slow, since
it calls getLineNumberInfo for each array element, repeating a lot of
work unnecessarily.
* integrate these APIs with `std.Progress` to understand what is taking
so long.
The output I'm seeing from this tool shows a lot of missing source
locations. In particular, the main area of interest is missing for my
tokenizer fuzzing example.
|
||
|---|---|---|
| .. | ||
| crc | ||
| spirv | ||
| docgen.zig | ||
| doctest.zig | ||
| dump-cov.zig | ||
| gen_outline_atomics.zig | ||
| gen_spirv_spec.zig | ||
| gen_stubs.zig | ||
| generate_c_size_and_align_checks.zig | ||
| generate_JSONTestSuite.zig | ||
| generate_linux_syscalls.zig | ||
| incr-check.zig | ||
| lldb_pretty_printers.py | ||
| migrate_langref.zig | ||
| process_headers.zig | ||
| stage1_gdb_pretty_printers.py | ||
| stage2_gdb_pretty_printers.py | ||
| std_gdb_pretty_printers.py | ||
| update-linux-headers.zig | ||
| update_clang_options.zig | ||
| update_cpu_features.zig | ||
| update_crc_catalog.zig | ||
| update_glibc.zig | ||
| update_mingw.zig | ||
| update_spirv_features.zig | ||
| zig_gdb_pretty_printers.py | ||