aboutsummaryrefslogtreecommitdiff
path: root/test/standalone/coff_dwarf/main.zig
AgeCommit message (Collapse)Author
6 daysupdate remaining calls to std.Io.Threaded.initAndrew Kelley
2025-10-29update some tests and tools for new Io APIsAndrew Kelley
2025-09-30std.debug.SelfInfo: remove shared logicmlugg
There were only a few dozen lines of common logic, and they frankly introduced more complexity than they eliminated. Instead, let's accept that the implementations of `SelfInfo` are all pretty different and want to track different state. This probably fixes some synchronization and memory bugs by simplifying a bunch of stuff. It also improves the DWARF unwind cache, making it around twice as fast in a debug build with the self-hosted x86_64 backend, because we no longer have to redundantly go through the hashmap lookup logic to find the module. Unwinding on Windows will also see a slight performance boost from this change, because `RtlVirtualUnwind` does not need to know the module whatsoever, so the old `SelfInfo` implementation was doing redundant work. Lastly, this makes it even easier to implement `SelfInfo` on freestanding targets; there is no longer a need to emulate a real module system, since the user controls the whole implementation! There are various other small refactors here in the `SelfInfo` implementations as well as in the DWARF unwinding logic. This change turned out to make a lot of stuff simpler!
2025-09-30test-standalone: update for std.debug changesmlugg
2024-09-12Replace deprecated default initializations with decl literalsLinus Groh
2024-08-07update coff_dwarf standalone test to new APIAndrew Kelley
and make it still test compilation on non-Windows
2024-08-02fix compilation on powerpc GNU systemsAndrew Kelley
...which have a ucontext_t but not a PC register. The current stack unwinding implementation does not yet support this architecture. Also fix name of `std.debug.SelfInfo.openSelf` to remove redundancy. Also removed this hook into root providing an "openSelfDebugInfo" function. Sorry, this debugging code is not of sufficient quality to offer a plugin API right now.
2023-07-20test: add a test for dwarf embedded in coffkcbanner