| ... | ... | @@ -1285,20 +1285,7 @@ fn handleSegfaultPosix(sig: i32, info: *const posix.siginfo_t, ctx_ptr: ?*anyopa |
| 1285 | 1285 | break :info .{ addr, name }; |
| 1286 | 1286 | }; |
| 1287 | 1287 | |
| 1288 | | // MLUGG TODO: this doesn't make any sense at all? |
| 1289 | | const use_context = switch (native_arch) { |
| 1290 | | .x86, |
| 1291 | | .x86_64, |
| 1292 | | .arm, |
| 1293 | | .armeb, |
| 1294 | | .thumb, |
| 1295 | | .thumbeb, |
| 1296 | | .aarch64, |
| 1297 | | .aarch64_be, |
| 1298 | | => true, |
| 1299 | | else => false, |
| 1300 | | }; |
| 1301 | | if (ThreadContext == noreturn or !use_context) return handleSegfault(addr, name, null); |
| 1288 | if (ThreadContext == noreturn) return handleSegfault(addr, name, null); |
| 1302 | 1289 | |
| 1303 | 1290 | // Some kernels don't align `ctx_ptr` properly, so we'll copy it into a local buffer. |
| 1304 | 1291 | var copied_ctx: ThreadContextBuf = undefined; |