aboutsummaryrefslogtreecommitdiff
path: root/lib/std/debug.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2025-01-17 01:20:11 -0500
committerGitHub <noreply@github.com>2025-01-17 01:20:11 -0500
commit4bace0f6212a3007247c42b0effcc40c6cfe61a8 (patch)
treea5c1fee87a9266319d8ceffa7717ca5c70b61f7b /lib/std/debug.zig
parent257054a1467b2612725bd66852d84496024cf66c (diff)
parent8c8dfb35f398407319764f0f8998de34c5247ed6 (diff)
downloadzig-4bace0f6212a3007247c42b0effcc40c6cfe61a8.tar.gz
zig-4bace0f6212a3007247c42b0effcc40c6cfe61a8.zip
Merge pull request #22386 from jacobly0/x86_64-rewrite
x86_64: begin rewriting instruction selection
Diffstat (limited to 'lib/std/debug.zig')
-rw-r--r--lib/std/debug.zig7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/std/debug.zig b/lib/std/debug.zig
index 3664bd0cef..cb294bf660 100644
--- a/lib/std/debug.zig
+++ b/lib/std/debug.zig
@@ -23,6 +23,7 @@ pub const Coverage = @import("debug/Coverage.zig");
pub const FormattedPanic = @import("debug/FormattedPanic.zig");
pub const SimplePanic = @import("debug/SimplePanic.zig");
+pub const NoPanic = @import("debug/NoPanic.zig");
/// Unresolved source locations can be represented with a single `usize` that
/// corresponds to a virtual memory address of the program counter. Combined
@@ -179,7 +180,7 @@ pub fn dumpHexFallible(bytes: []const u8) !void {
/// TODO multithreaded awareness
pub fn dumpCurrentStackTrace(start_addr: ?usize) void {
nosuspend {
- if (comptime builtin.target.isWasm()) {
+ if (builtin.target.isWasm()) {
if (native_os == .wasi) {
const stderr = io.getStdErr().writer();
stderr.print("Unable to dump stack trace: not implemented for Wasm\n", .{}) catch return;
@@ -267,7 +268,7 @@ pub inline fn getContext(context: *ThreadContext) bool {
/// TODO multithreaded awareness
pub fn dumpStackTraceFromBase(context: *ThreadContext) void {
nosuspend {
- if (comptime builtin.target.isWasm()) {
+ if (builtin.target.isWasm()) {
if (native_os == .wasi) {
const stderr = io.getStdErr().writer();
stderr.print("Unable to dump stack trace: not implemented for Wasm\n", .{}) catch return;
@@ -365,7 +366,7 @@ pub fn captureStackTrace(first_address: ?usize, stack_trace: *std.builtin.StackT
/// TODO multithreaded awareness
pub fn dumpStackTrace(stack_trace: std.builtin.StackTrace) void {
nosuspend {
- if (comptime builtin.target.isWasm()) {
+ if (builtin.target.isWasm()) {
if (native_os == .wasi) {
const stderr = io.getStdErr().writer();
stderr.print("Unable to dump stack trace: not implemented for Wasm\n", .{}) catch return;