forked from OSchip/llvm-project
![]() jGetLoadedDynamicLibrariesInfos normally checks with dyld to find the list of binaries loaded in the inferior, and getting the filepath, before trying to parse the Mach-O binary in inferior memory. This allows for debugserver to parse a Mach-O binary present in memory, but not yet registered with dyld. This patch also adds some simple sanity checks that we're reading a Mach-O header before we begin stepping through load commands, because we won't have the sanity check of consulting dyld for the list of loaded binaries before parsing. Also adds a testcase. [This patch was reverted after causing a testsuite failure on a CI bot; I haven't been able to repro the failure outside the CI, but I have a theory that my sanity check on cputype which only matched arm64 and x86_64 - and the CI machine may have a watch simulator that is still using i386.] Differential Revision: https://reviews.llvm.org/D128956 rdar://95737734 |
||
---|---|---|
.. | ||
MacOSX | ||
ARM_DWARF_Registers.h | ||
ARM_ehframe_Registers.h | ||
CMakeLists.txt | ||
ChangeLog | ||
DNB.cpp | ||
DNB.h | ||
DNBArch.cpp | ||
DNBArch.h | ||
DNBBreakpoint.cpp | ||
DNBBreakpoint.h | ||
DNBDataRef.cpp | ||
DNBDataRef.h | ||
DNBDefs.h | ||
DNBError.cpp | ||
DNBError.h | ||
DNBLog.cpp | ||
DNBLog.h | ||
DNBRegisterInfo.cpp | ||
DNBRegisterInfo.h | ||
DNBRuntimeAction.h | ||
DNBThreadResumeActions.cpp | ||
DNBThreadResumeActions.h | ||
DNBTimer.h | ||
JSON.cpp | ||
JSON.h | ||
JSONGenerator.h | ||
PThreadCondition.h | ||
PThreadEvent.cpp | ||
PThreadEvent.h | ||
PThreadMutex.cpp | ||
PThreadMutex.h | ||
PseudoTerminal.cpp | ||
PseudoTerminal.h | ||
RNBContext.cpp | ||
RNBContext.h | ||
RNBDefs.h | ||
RNBRemote.cpp | ||
RNBRemote.h | ||
RNBServices.cpp | ||
RNBServices.h | ||
RNBSocket.cpp | ||
RNBSocket.h | ||
StdStringExtractor.cpp | ||
StdStringExtractor.h | ||
StringConvert.cpp | ||
StringConvert.h | ||
SysSignal.cpp | ||
SysSignal.h | ||
TTYState.cpp | ||
TTYState.h | ||
debugserver.cpp | ||
debugserver_vers.c.in | ||
libdebugserver.cpp | ||
libdebugserver.h |