llvm-project/lldb/source
Jason Molenda 87f0f95e4c Some NFC changes to how we scan of kexts & kernels in memory in the
DynamicLoaderDarwinKernel plugin.  Created a new function ReadMachHeader
and instead of reading through the target cached memory reader,
start by reading only a mach header sized chunk of memory, then
check it for a valid mach-o magic # and use the size of the load
commands to pre-fetch the entire load commands of the kext which
is the only thing we're going to read, instead of letting the generic
mach-o parser read it in 512 byte chunks.

Functionally this is doing exactly the same thing as before, but by
cutting down on the # of packets going back and forth, even on a 
local connection it's close to a quarter faster than it was before.

<rdar://problem/38570146> 

llvm-svn: 334995
2018-06-18 23:30:03 +00:00
..
API Introduce lldb-framework CMake target and centralize its logic 2018-06-18 18:27:16 +00:00
Breakpoint [FileSpec] Make style argument mandatory for SetFile. NFC 2018-06-13 22:08:14 +00:00
Commands Fixed file completion for paths that start with '~'. 2018-06-18 20:11:38 +00:00
Core Use llvm::VersionTuple instead of manual version marshalling 2018-06-18 15:02:23 +00:00
DataFormatters Reflow paragraphs in comments. 2018-04-30 16:49:04 +00:00
Expression [IRMemoryMap] Fix the alignment adjustment in Malloc 2018-05-31 22:08:59 +00:00
Host Fix macosx build broken by the VersionTuple refactor 2018-06-18 16:10:20 +00:00
Initialization Move ObjectFile initialization out of SystemInitializerCommon 2018-05-24 12:44:18 +00:00
Interpreter Use llvm::VersionTuple instead of manual version marshalling 2018-06-18 15:02:23 +00:00
Plugins Some NFC changes to how we scan of kexts & kernels in memory in the 2018-06-18 23:30:03 +00:00
Symbol One ShortFract ought to be enough for everyone. 2018-06-14 19:20:48 +00:00
Target Use llvm::VersionTuple instead of manual version marshalling 2018-06-18 15:02:23 +00:00
Utility Use llvm::VersionTuple instead of manual version marshalling 2018-06-18 15:02:23 +00:00
CMakeLists.txt Remove Plugins/Process/POSIX from include_directories 2017-04-11 12:26:25 +00:00
lldb.cpp Run clang-format on lldb.cpp 2017-11-02 16:56:52 +00:00