aboutsummaryrefslogtreecommitdiff
path: root/lib/std/debug.zig
diff options
context:
space:
mode:
authorAndrew Kelley <andrew@ziglang.org>2024-08-30 14:34:53 -0700
committerGitHub <noreply@github.com>2024-08-30 14:34:53 -0700
commita4cc43c42b5e139276190dc426aa5ecb3564c52d (patch)
treed66ab8eb0531c2a69d7be15aec1e50879be1cc23 /lib/std/debug.zig
parent5723fcaac1b473acee2fb3f5ea5486527eac5359 (diff)
parent832f74876e557f25e7d4b202b40d24976a6e20a1 (diff)
downloadzig-a4cc43c42b5e139276190dc426aa5ecb3564c52d.tar.gz
zig-a4cc43c42b5e139276190dc426aa5ecb3564c52d.zip
Merge pull request #21174 from alexrp/win-arm
Change `arm-windows-gnu` to `thumb-windows-gnu`, plus some initial port work
Diffstat (limited to 'lib/std/debug.zig')
-rw-r--r--lib/std/debug.zig4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/std/debug.zig b/lib/std/debug.zig
index 4424bb1af1..a73c8e9668 100644
--- a/lib/std/debug.zig
+++ b/lib/std/debug.zig
@@ -789,7 +789,7 @@ pub noinline fn walkStackWindows(addresses: []usize, existing_context: ?*const w
}
var i: usize = 0;
- var image_base: usize = undefined;
+ var image_base: windows.DWORD64 = undefined;
var history_table: windows.UNWIND_HISTORY_TABLE = std.mem.zeroes(windows.UNWIND_HISTORY_TABLE);
while (i < addresses.len) : (i += 1) {
@@ -809,7 +809,7 @@ pub noinline fn walkStackWindows(addresses: []usize, existing_context: ?*const w
);
} else {
// leaf function
- context.setIp(@as(*u64, @ptrFromInt(current_regs.sp)).*);
+ context.setIp(@as(*usize, @ptrFromInt(current_regs.sp)).*);
context.setSp(current_regs.sp + @sizeOf(usize));
}