| ... | ... | @@ -21,7 +21,7 @@ pub fn fromPosixSignalContext(ctx_ptr: ?*const anyopaque) ?Native { |
| 21 | 21 | const uc: *const signal_ucontext_t = @ptrCast(@alignCast(ctx_ptr)); |
| 22 | 22 | return switch (native_arch) { |
| 23 | 23 | .x86 => switch (native_os) { |
| 24 | | .linux, .netbsd, .solaris, .illumos => .{ .gprs = .init(.{ |
| 24 | .linux, .netbsd, .illumos => .{ .gprs = .init(.{ |
| 25 | 25 | .eax = uc.mcontext.gregs[std.posix.REG.EAX], |
| 26 | 26 | .ecx = uc.mcontext.gregs[std.posix.REG.ECX], |
| 27 | 27 | .edx = uc.mcontext.gregs[std.posix.REG.EDX], |
| ... | ... | @@ -92,7 +92,7 @@ pub fn fromPosixSignalContext(ctx_ptr: ?*const anyopaque) ?Native { |
| 92 | 92 | .r15 = @bitCast(uc.sc_r15), |
| 93 | 93 | .rip = @bitCast(uc.sc_rip), |
| 94 | 94 | }) }, |
| 95 | | .macos, .ios => .{ .gprs = .init(.{ |
| 95 | .driverkit, .macos, .ios => .{ .gprs = .init(.{ |
| 96 | 96 | .rax = uc.mcontext.ss.rax, |
| 97 | 97 | .rdx = uc.mcontext.ss.rdx, |
| 98 | 98 | .rcx = uc.mcontext.ss.rcx, |
| ... | ... | @@ -137,7 +137,7 @@ pub fn fromPosixSignalContext(ctx_ptr: ?*const anyopaque) ?Native { |
| 137 | 137 | else => null, |
| 138 | 138 | }, |
| 139 | 139 | .aarch64, .aarch64_be => switch (builtin.os.tag) { |
| 140 | | .macos, .ios, .tvos, .watchos, .visionos => .{ |
| 140 | .driverkit, .macos, .ios, .tvos, .watchos, .visionos => .{ |
| 141 | 141 | .x = uc.mcontext.ss.regs ++ @as([2]u64, .{ |
| 142 | 142 | uc.mcontext.ss.fp, // x29 = fp |
| 143 | 143 | uc.mcontext.ss.lr, // x30 = lr |
| ... | ... | @@ -209,7 +209,7 @@ pub fn fromWindowsContext(ctx: *const std.os.windows.CONTEXT) Native { |
| 209 | 209 | .r15 = ctx.R15, |
| 210 | 210 | .rip = ctx.Rip, |
| 211 | 211 | }) }, |
| 212 | | .aarch64, .aarch64_be => .{ |
| 212 | .aarch64 => .{ |
| 213 | 213 | .x = ctx.DUMMYUNIONNAME.X[0..31].*, |
| 214 | 214 | .sp = ctx.Sp, |
| 215 | 215 | .pc = ctx.Pc, |
| ... | ... | @@ -371,7 +371,6 @@ pub const Arm = struct { |
| 371 | 371 | pub fn dwarfRegisterBytes(ctx: *Arm, register_num: u16) DwarfRegisterError![]u8 { |
| 372 | 372 | // DWARF for the Arm(r) Architecture § 4.1 "DWARF register names" |
| 373 | 373 | switch (register_num) { |
| 374 | | // The order of `Gpr` intentionally matches DWARF's mappings. |
| 375 | 374 | 0...15 => return @ptrCast(&ctx.r[register_num]), |
| 376 | 375 | |
| 377 | 376 | 64...95 => return error.UnsupportedRegister, // S0 - S31 |
| ... | ... | @@ -444,7 +443,6 @@ pub const Aarch64 = extern struct { |
| 444 | 443 | pub fn dwarfRegisterBytes(ctx: *Aarch64, register_num: u16) DwarfRegisterError![]u8 { |
| 445 | 444 | // DWARF for the Arm(r) 64-bit Architecture (AArch64) § 4.1 "DWARF register names" |
| 446 | 445 | switch (register_num) { |
| 447 | | // The order of `Gpr` intentionally matches DWARF's mappings. |
| 448 | 446 | 0...30 => return @ptrCast(&ctx.x[register_num]), |
| 449 | 447 | 31 => return @ptrCast(&ctx.sp), |
| 450 | 448 | 32 => return @ptrCast(&ctx.pc), |
| ... | ... | @@ -471,7 +469,7 @@ const signal_ucontext_t = switch (native_os) { |
| 471 | 469 | .linux => std.os.linux.ucontext_t, |
| 472 | 470 | .emscripten => std.os.emscripten.ucontext_t, |
| 473 | 471 | .freebsd => std.os.freebsd.ucontext_t, |
| 474 | | .macos, .ios, .tvos, .watchos, .visionos => extern struct { |
| 472 | .driverkit, .macos, .ios, .tvos, .watchos, .visionos => extern struct { |
| 475 | 473 | onstack: c_int, |
| 476 | 474 | sigmask: std.c.sigset_t, |
| 477 | 475 | stack: std.c.stack_t, |