aboutsummaryrefslogtreecommitdiff
path: root/test/standalone/stack_iterator/unwind_freestanding.zig
AgeCommit message (Collapse)Author
2025-10-01test: remove stack_iterator standalone testAlex Rønne Petersen
Our new stack trace tests cover all the important parts of this.
2025-09-30std.debug: go back to storing return addresses instead of call addressesmlugg
...and just deal with signal handlers by adding 1 to create a fake "return address". The system I tried out where the addresses returned by `StackIterator` were pre-subtracted didn't play nicely with error traces, which in hindsight, makes perfect sense. This definition also removes some ugly off-by-one issues in matching `first_address`, so I do think this is a better approach.
2025-09-30update to new std.debug changesmlugg
2025-09-30test-standalone: update for std.debug changesmlugg
2025-09-20standalone: fix misaligned stack crashJacob Young
2025-07-16zig fmtAndrew Kelley
2025-03-05Remove uses of deprecated callconv aliasesLinus Groh
2024-11-29defaultPanic: @trap on 'other' targetPat Tullmann
The freestanding and other OS targets by default need to just @trap in the default Panic implementation. And `isValidMemory` won't work with freestanding or other targets. Update the unwind_freestanding.zig test case to also run on the 'other' OS target, too. This should keep the Zig's stacktrace generation from regressing on the standalone targets.
2024-07-23Default std.posix.system.ucontext_t is voidPat Tullmann
PR https://github.com/ziglang/zig/pull/20679 ("std.c reorganization") switched feature-detection code to use "T != void" checks in place of "@hasDecl". However, the std.posix.system struct is empty, so compile-time feature detection against symbols in there (specifically `std.posix.system.ucontext_t` in this case), fail at compile time on freestanding targets. This PR adds a void ucontext_t into the std.posix.system default. This PR also adds pseudo-"freestanding" variation of the StackIterator "unwind" test. It is sort of hacky (its freestanding, but assumes it can invoke a Linux exit syscall), but it does detect this problem. Fixes #20710