aboutsummaryrefslogtreecommitdiff
path: root/lib/std/debug/Dwarf/abi.zig
diff options
context:
space:
mode:
authorMario Nachbaur <marionauta@users.noreply.github.com>2024-10-20 14:57:18 +0200
committerAlex Rønne Petersen <alex@alexrp.com>2024-10-21 09:24:24 +0200
commit9f84f7f921d8a74926bb2f0ca1969b7b00f08172 (patch)
tree141325804d8d73c35d00e0775addb883a0898be1 /lib/std/debug/Dwarf/abi.zig
parent8573836892ba1b7cd34d377b46258930161256c3 (diff)
downloadzig-9f84f7f921d8a74926bb2f0ca1969b7b00f08172.tar.gz
zig-9f84f7f921d8a74926bb2f0ca1969b7b00f08172.zip
watchOS: add os to aarch64 architecture
Needed for creating libraries that run both on physical Apple Watches and the watchOS simulator.
Diffstat (limited to 'lib/std/debug/Dwarf/abi.zig')
-rw-r--r--lib/std/debug/Dwarf/abi.zig2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/std/debug/Dwarf/abi.zig b/lib/std/debug/Dwarf/abi.zig
index b2c4cb9536..60fd10a794 100644
--- a/lib/std/debug/Dwarf/abi.zig
+++ b/lib/std/debug/Dwarf/abi.zig
@@ -293,7 +293,7 @@ pub fn regBytes(
else => error.UnimplementedOs,
},
.aarch64 => switch (builtin.os.tag) {
- .macos, .ios => switch (reg_number) {
+ .macos, .ios, .watchos => switch (reg_number) {
0...28 => mem.asBytes(&ucontext_ptr.mcontext.ss.regs[reg_number]),
29 => mem.asBytes(&ucontext_ptr.mcontext.ss.fp),
30 => mem.asBytes(&ucontext_ptr.mcontext.ss.lr),