aboutsummaryrefslogtreecommitdiff
path: root/lib/std/debug/Dwarf/expression.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2024-08-01 16:31:03 -0700
committerAndrew Kelley <andrew@ziglang.org>2024-08-01 22:11:35 -0700
commit290966c2497dc9d212bf9d4bd0fecee4988091a5 (patch)
treec71be0f5dbb8bc9a0008425a0f4c3cfba1d2a8e4 /lib/std/debug/Dwarf/expression.zig
parentab0253f6620f5b87f06fdbddfc8876263c2a10a2 (diff)
downloadzig-290966c2497dc9d212bf9d4bd0fecee4988091a5.tar.gz
zig-290966c2497dc9d212bf9d4bd0fecee4988091a5.zip
std.debug: rename Info to SelfInfo
This code has the hard-coded goal of supporting the executable's own debug information and makes design choices along that goal, such as memory-mapping the inputs, using dl_iterate_phdr, and doing conditional compilation on the host target. A more general-purpose implementation of debug information may be able to share code with this, but there are some fundamental incompatibilities. For example, the "SelfInfo" implementation wants to avoid bloating the binary with PDB on POSIX systems, and likewise DWARF on Windows systems, while a general-purpose implementation needs to support both PDB and DWARF from the same binary. It might, for example, inspect the debug information from a cross-compiled binary. `SourceLocation` now lives at `std.debug.SourceLocation` and is documented. Deprecate `std.debug.runtime_safety` because it returns the optimization mode of the standard library, when the caller probably wants to use the optimization mode of their own module. `std.pdb.Pdb` is moved to `std.debug.Pdb`, mirroring the recent extraction of `std.debug.Dwarf` from `std.dwarf`. I have no idea why we have both Module (with a Windows-specific definition) and WindowsModule. I left some passive aggressive doc comments to express my frustration.
Diffstat (limited to 'lib/std/debug/Dwarf/expression.zig')
0 files changed, 0 insertions, 0 deletions