Skip to content

Commit

Permalink
Fix typo in flag name
Browse files Browse the repository at this point in the history
  • Loading branch information
ifratric committed Jun 14, 2024
1 parent 52b38f8 commit 46b6893
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions macOS/debugger.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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");
}

Expand Down
2 changes: 1 addition & 1 deletion macOS/debugger.h
Original file line number Diff line number Diff line change
Expand Up @@ -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<std::string> additional_env;

Expand Down

0 comments on commit 46b6893

Please sign in to comment.