diff --git a/macOS/debugger.cpp b/macOS/debugger.cpp index 804e93f..b547a6e 100644 --- a/macOS/debugger.cpp +++ b/macOS/debugger.cpp @@ -1975,10 +1975,10 @@ void Debugger::Init(int argc, char **argv) { #ifdef ARM64 target_end_detection = RETADDR_BREAKPOINT; - private_dlyd_cache = true; + private_dyld_cache = true; #else target_end_detection = RETADDR_STACK_OVERWRITE; - private_dlyd_cache = false; + private_dyld_cache = false; #endif dbg_last_status = DEBUGGER_NONE; @@ -2033,8 +2033,8 @@ void Debugger::Init(int argc, char **argv) { target_end_detection = RETADDR_BREAKPOINT; } } - private_dlyd_cache = GetBinaryOption("-private_dlyd_cache", argc, argv, private_dlyd_cache); - if (private_dlyd_cache) { + private_dyld_cache = GetBinaryOption("-private_dyld_cache", argc, argv, private_dyld_cache); + if (private_dyld_cache) { additional_env.push_back("DYLD_SHARED_REGION=private"); } diff --git a/macOS/debugger.h b/macOS/debugger.h index 4f7c8aa..bd39126 100644 --- a/macOS/debugger.h +++ b/macOS/debugger.h @@ -227,7 +227,7 @@ friend kern_return_t catch_mach_exception_raise_state_identity( bool attach_mode; bool loop_mode; bool disable_aslr; - bool private_dlyd_cache; + bool private_dyld_cache; std::list additional_env;