llvm-project/lldb
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
..
cmake Introduce lldb-framework CMake target and centralize its logic 2018-06-18 18:27:16 +00:00
docs Enable AUTOBRIEF in doxygen configuration. 2018-05-02 16:55:16 +00:00
examples Fix/unify the spelling of Objective-C. 2018-06-13 16:21:24 +00:00
include/lldb Use llvm::VersionTuple instead of manual version marshalling 2018-06-18 15:02:23 +00:00
lit DebugNamesDWARFIndex: fix handling of compressed sections 2018-06-14 14:41:30 +00:00
lldb.xcodeproj Sort the files in the PBXBuildFile and PBXFileReference 2018-06-15 23:29:32 +00:00
lldb.xcworkspace Fix a typo in the gtest build target for Debug configuration. 2018-04-10 17:49:56 +00:00
packages/Python/lldbsuite Fix the 'tb' alias command 2018-06-18 04:34:33 +00:00
resources Add an entitlement to debugserver 2018-06-14 21:17:59 +00:00
scripts Add a script to setup codesigning on macOS. 2018-06-14 18:04:13 +00:00
source Some NFC changes to how we scan of kexts & kernels in memory in the 2018-06-18 23:30:03 +00:00
test [test] Fix --framework argument passed to dotest. 2018-05-29 12:30:27 +00:00
third_party/Python/module *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
tools Introduce lldb-framework CMake target and centralize its logic 2018-06-18 18:27:16 +00:00
unittests Use llvm::VersionTuple instead of manual version marshalling 2018-06-18 15:02:23 +00:00
utils [CMake] Unify and relayer testing 2018-05-03 16:54:10 +00:00
www Fix/unify the spelling of Objective-C. 2018-06-13 16:21:24 +00:00
.arcconfig
.clang-format Updated .clang-format rules so bring LLDB in line with LLVM standards. 2016-09-06 17:19:00 +00:00
.gitignore [dotest] Remove crashinfo hook 2018-01-10 10:18:47 +00:00
CMakeLists.txt Introduce lldb-framework CMake target and centralize its logic 2018-06-18 18:27:16 +00:00
CODE_OWNERS.txt Fix/unify the spelling of Objective-C. 2018-06-13 16:21:24 +00:00
INSTALL.txt Changed builld-llvm.py to use .json files 2017-02-23 02:21:34 +00:00
LICENSE.TXT
use_lldb_suite_root.py *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00