| ... | @@ -10,7 +10,7 @@ pub fn supportsUnwinding(target: std.Target) bool { | ... | @@ -10,7 +10,7 @@ pub fn supportsUnwinding(target: std.Target) bool { |
| 10 | else => false, | 10 | else => false, |
| 11 | }, | 11 | }, |
| 12 | .x86_64 => switch (target.os.tag) { | 12 | .x86_64 => switch (target.os.tag) { |
| 13 | .linux, .netbsd, .freebsd, .openbsd, .macos, .solaris => true, | 13 | .linux, .netbsd, .freebsd, .openbsd, .macos, .ios, .solaris => true, |
| 14 | else => false, | 14 | else => false, |
| 15 | }, | 15 | }, |
| 16 | .arm => switch (target.os.tag) { | 16 | .arm => switch (target.os.tag) { |
| ... | @@ -18,7 +18,7 @@ pub fn supportsUnwinding(target: std.Target) bool { | ... | @@ -18,7 +18,7 @@ pub fn supportsUnwinding(target: std.Target) bool { |
| 18 | else => false, | 18 | else => false, |
| 19 | }, | 19 | }, |
| 20 | .aarch64 => switch (target.os.tag) { | 20 | .aarch64 => switch (target.os.tag) { |
| 21 | .linux, .netbsd, .freebsd, .macos => true, | 21 | .linux, .netbsd, .freebsd, .macos, .ios => true, |
| 22 | else => false, | 22 | else => false, |
| 23 | }, | 23 | }, |
| 24 | else => false, | 24 | else => false, |
| ... | @@ -292,7 +292,7 @@ pub fn regBytes( | ... | @@ -292,7 +292,7 @@ pub fn regBytes( |
| 292 | // TODO: Extract xmm state from sc_fpstate? | 292 | // TODO: Extract xmm state from sc_fpstate? |
| 293 | else => error.InvalidRegister, | 293 | else => error.InvalidRegister, |
| 294 | }, | 294 | }, |
| 295 | .macos => switch (reg_number) { | 295 | .macos, .ios => switch (reg_number) { |
| 296 | 0 => mem.asBytes(&ucontext_ptr.mcontext.ss.rax), | 296 | 0 => mem.asBytes(&ucontext_ptr.mcontext.ss.rax), |
| 297 | 1 => mem.asBytes(&ucontext_ptr.mcontext.ss.rdx), | 297 | 1 => mem.asBytes(&ucontext_ptr.mcontext.ss.rdx), |
| 298 | 2 => mem.asBytes(&ucontext_ptr.mcontext.ss.rcx), | 298 | 2 => mem.asBytes(&ucontext_ptr.mcontext.ss.rcx), |
| ... | @@ -338,7 +338,7 @@ pub fn regBytes( | ... | @@ -338,7 +338,7 @@ pub fn regBytes( |
| 338 | else => error.UnimplementedOs, | 338 | else => error.UnimplementedOs, |
| 339 | }, | 339 | }, |
| 340 | .aarch64 => switch (builtin.os.tag) { | 340 | .aarch64 => switch (builtin.os.tag) { |
| 341 | .macos => switch (reg_number) { | 341 | .macos, .ios => switch (reg_number) { |
| 342 | 0...28 => mem.asBytes(&ucontext_ptr.mcontext.ss.regs[reg_number]), | 342 | 0...28 => mem.asBytes(&ucontext_ptr.mcontext.ss.regs[reg_number]), |
| 343 | 29 => mem.asBytes(&ucontext_ptr.mcontext.ss.fp), | 343 | 29 => mem.asBytes(&ucontext_ptr.mcontext.ss.fp), |
| 344 | 30 => mem.asBytes(&ucontext_ptr.mcontext.ss.lr), | 344 | 30 => mem.asBytes(&ucontext_ptr.mcontext.ss.lr), |