@@ -231,7 +231,7 @@ pub const File = struct {
231
231
const emit = base .emit ;
232
232
if (base .child_pid ) | pid | {
233
233
if (builtin .os .tag == .windows ) {
234
- base .cast (Coff ).? .ptraceAttach (pid ) catch | err | {
234
+ base .cast (.coff ).? .ptraceAttach (pid ) catch | err | {
235
235
log .warn ("attaching failed with error: {s}" , .{@errorName (err )});
236
236
};
237
237
} else {
@@ -249,7 +249,7 @@ pub const File = struct {
249
249
.linux = > std .posix .ptrace (std .os .linux .PTRACE .ATTACH , pid , 0 , 0 ) catch | err | {
250
250
log .warn ("ptrace failure: {s}" , .{@errorName (err )});
251
251
},
252
- .macos = > base .cast (MachO ).? .ptraceAttach (pid ) catch | err | {
252
+ .macos = > base .cast (.macho ).? .ptraceAttach (pid ) catch | err | {
253
253
log .warn ("attaching failed with error: {s}" , .{@errorName (err )});
254
254
},
255
255
.windows = > unreachable ,
@@ -317,10 +317,10 @@ pub const File = struct {
317
317
318
318
if (base .child_pid ) | pid | {
319
319
switch (builtin .os .tag ) {
320
- .macos = > base .cast (MachO ).? .ptraceDetach (pid ) catch | err | {
320
+ .macos = > base .cast (.macho ).? .ptraceDetach (pid ) catch | err | {
321
321
log .warn ("detaching failed with error: {s}" , .{@errorName (err )});
322
322
},
323
- .windows = > base .cast (Coff ).? .ptraceDetach (pid ),
323
+ .windows = > base .cast (.coff ).? .ptraceDetach (pid ),
324
324
else = > return error .HotSwapUnavailableOnHostOperatingSystem ,
325
325
}
326
326
}
0 commit comments