Add a catch-all line for detecting dyld in the inferior process

shlibs so we don't miss dyld.
<rdar://problem/30128580> 

llvm-svn: 292696
This commit is contained in:
Jason Molenda 2017-01-21 01:17:36 +00:00
parent 963ffd6485
commit 777fcecf8f
2 changed files with 5 additions and 0 deletions

View File

@ -542,6 +542,10 @@ void DynamicLoaderDarwin::UpdateSpecialBinariesFromNewImageInfos(
dyld_idx = i;
}
}
else {
// catch-all for any other environment -- trust that dyld is actually dyld
dyld_idx = i;
}
} else if (image_infos[i].header.filetype == llvm::MachO::MH_EXECUTE) {
exe_idx = i;
}

View File

@ -139,6 +139,7 @@ bool DynamicLoaderMacOS::DidSetNotificationBreakpoint() {
void DynamicLoaderMacOS::ClearNotificationBreakpoint() {
if (LLDB_BREAK_ID_IS_VALID(m_break_id)) {
m_process->GetTarget().RemoveBreakpointByID(m_break_id);
m_break_id = LLDB_INVALID_BREAK_ID;
}
}