Skip to content

Commit 40cf8a3

Browse files
committed
KERN_NOT_SUPPORTED + fix stats
1 parent 199e75d commit 40cf8a3

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

Modules/_remote_debugging/alias_read.c

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -228,11 +228,8 @@ alias_remap_page(RemoteUnwinderObject *unwinder,
228228
if (kr != KERN_SUCCESS) {
229229
alias_invalidate_entry(entry);
230230
STATS_INC(unwinder, alias_remap_failures);
231-
if (kr == MACH_SEND_INVALID_DEST || kr == KERN_INVALID_ARGUMENT) {
232-
STATS_INC(unwinder, alias_identity_mismatches);
233-
alias_disable_runtime(unwinder);
234-
}
235-
else if (kr == KERN_NOT_SUPPORTED) {
231+
if (kr == MACH_SEND_INVALID_DEST || kr == KERN_TERMINATED
232+
|| kr == KERN_NOT_SUPPORTED) {
236233
alias_disable_runtime(unwinder);
237234
}
238235
return -1;

0 commit comments

Comments
 (0)