aboutsummaryrefslogtreecommitdiff
path: root/lib/std/debug.zig
diff options
context:
space:
mode:
authorAli Chraghi <alichraghi@pm.me>2022-10-07 21:24:44 +0330
committerAli Chraghi <alichraghi@pm.me>2022-11-04 00:09:27 +0330
commitf5f1f8c66625237e4eceb3cd40597a687e9a58ac (patch)
tree913632d097ffcdeea739da3a2f9b5b023e0ba81c /lib/std/debug.zig
parent678f3f6e65e8808520973912fb6c4d7dbca189fe (diff)
downloadzig-f5f1f8c66625237e4eceb3cd40597a687e9a58ac.tar.gz
zig-f5f1f8c66625237e4eceb3cd40597a687e9a58ac.zip
all: rename i386 to x86
Diffstat (limited to 'lib/std/debug.zig')
-rw-r--r--lib/std/debug.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/std/debug.zig b/lib/std/debug.zig
index de7aa07b8b..205be60b11 100644
--- a/lib/std/debug.zig
+++ b/lib/std/debug.zig
@@ -182,7 +182,7 @@ pub fn dumpStackTraceFromBase(bp: usize, ip: usize) void {
// therefore, we do a check for `return_address == 0` before subtracting 1 from it to avoid
// an overflow. We do not need to signal `StackIterator` as it will correctly detect this
// condition on the subsequent iteration and return `null` thus terminating the loop.
- // same behaviour for i386-windows-msvc
+ // same behaviour for x86-windows-msvc
const address = if (return_address == 0) return_address else return_address - 1;
printSourceAtAddress(debug_info, stderr, address, tty_config) catch return;
}
@@ -568,7 +568,7 @@ pub fn writeCurrentStackTrace(
// therefore, we do a check for `return_address == 0` before subtracting 1 from it to avoid
// an overflow. We do not need to signal `StackIterator` as it will correctly detect this
// condition on the subsequent iteration and return `null` thus terminating the loop.
- // same behaviour for i386-windows-msvc
+ // same behaviour for x86-windows-msvc
const address = if (return_address == 0) return_address else return_address - 1;
try printSourceAtAddress(debug_info, out_stream, address, tty_config);
}
@@ -1922,7 +1922,7 @@ fn handleSegfaultPosix(sig: i32, info: *const os.siginfo_t, ctx_ptr: ?*const any
}
switch (native_arch) {
- .i386 => {
+ .x86 => {
const ctx = @ptrCast(*const os.ucontext_t, @alignCast(@alignOf(os.ucontext_t), ctx_ptr));
const ip = @intCast(usize, ctx.mcontext.gregs[os.REG.EIP]);
const bp = @intCast(usize, ctx.mcontext.gregs[os.REG.EBP]);