llvm-project/lldb/source/Core
Greg Clayton 259d786065 Adopt mmap flags that allow mmap'ed memory to be less crash prone.
On Darwin if a mmap file is code signed and the code signature is invalid, it used to crash. If we specify the MAP_RESILIENT_CODESIGN mmap flag when mapping a file for reading, we can avoid crashing.

Another mmap flag named MAP_RESILIENT_MEDIA allows us to survive if we mmap files that are on removable media like network servers or removable hard drives. If a file was mapped and later the media that had the file became unavailable, we would crash when we would touch the next page that wasn't paged in. Now it will return zeroes and stop of from us from crashing.

<rdar://problem/25918698>

llvm-svn: 270254
2016-05-20 19:18:20 +00:00
..
Address.cpp Fix Clang-tidy modernize-use-nullptr warnings in some files in source/Core; other minor fixes. 2016-03-02 01:09:03 +00:00
AddressRange.cpp Add -Wimplicit-fallthrough command line option to clang in 2016-02-16 04:14:33 +00:00
AddressResolver.cpp Move lldb-log.cpp to core/Logging.cpp 2015-03-18 18:20:42 +00:00
AddressResolverFileLine.cpp Move lldb-log.cpp to core/Logging.cpp 2015-03-18 18:20:42 +00:00
AddressResolverName.cpp Fix Clang-tidy modernize-use-nullptr warnings in some files in source/Core; other minor fixes. 2016-03-02 01:09:03 +00:00
ArchSpec.cpp [LLDB][MIPS] Setting appropriate ArchSpec::m_flags based on ABI 2016-05-11 13:08:29 +00:00
Baton.cpp
Broadcaster.cpp remove use of Mutex in favour of std::{,recursive_}mutex 2016-05-18 01:59:10 +00:00
CMakeLists.txt [cmake] Remove LLVM_NO_RTTI. 2015-09-03 08:46:55 +00:00
Communication.cpp remove use of Mutex in favour of std::{,recursive_}mutex 2016-05-18 01:59:10 +00:00
Connection.cpp Create a ConnectionGenericFile class for Windows. 2014-10-06 21:23:09 +00:00
ConnectionMachPort.cpp I make no claims that Mach ports work, but at least we should check the right thing 2015-06-03 22:35:55 +00:00
ConnectionSharedMemory.cpp Revert "Add a read_full_buffer argument to ConnectionFileDescriptor::Read" 2016-05-03 14:07:41 +00:00
ConstString.cpp Fix Clang-tidy modernize-use-nullptr warnings in some files in source/Core; other minor fixes. 2016-03-10 23:57:12 +00:00
CxaDemangle.cpp Shuffle an #undef to avoid a warning on FreeBSD 2016-03-14 20:39:08 +00:00
DataBufferHeap.cpp Fix Clang-tidy modernize-use-nullptr warnings in some files in source/Core; other minor fixes. 2016-03-03 00:51:40 +00:00
DataBufferMemoryMap.cpp Adopt mmap flags that allow mmap'ed memory to be less crash prone. 2016-05-20 19:18:20 +00:00
DataEncoder.cpp Remove unnecessary <limits> includes. 2016-03-15 21:11:02 +00:00
DataExtractor.cpp Handle bit fields on big-endian systems correctly 2016-04-14 14:32:57 +00:00
Debugger.cpp remove use of Mutex in favour of std::{,recursive_}mutex 2016-05-18 01:59:10 +00:00
Disassembler.cpp Consolidate the knowledge of what arm cores are always executing 2016-04-05 05:01:30 +00:00
DynamicLoader.cpp Fix Clang-tidy modernize-use-nullptr warnings in some files in source/Core; other minor fixes. 2016-03-03 00:51:40 +00:00
EmulateInstruction.cpp Fix Clang-tidy modernize-use-nullptr warnings in some files in source/Core; other minor fixes. 2016-03-03 00:51:40 +00:00
Error.cpp Fix Clang-tidy modernize-use-nullptr warnings in some files in source/Core; other minor fixes. 2016-03-10 23:57:12 +00:00
Event.cpp Fix some long standing issues that caused tests to be flaky. 2016-05-12 22:58:52 +00:00
FastDemangle.cpp Fix all of the unannotated switch cases to annotate the fall through or do the right thing and break. 2016-02-26 01:20:20 +00:00
FileLineResolver.cpp Move lldb-log.cpp to core/Logging.cpp 2015-03-18 18:20:42 +00:00
FileSpecList.cpp Remove unnecessary <limits> includes. 2016-03-15 21:11:02 +00:00
FormatEntity.cpp Fix Clang-tidy modernize-use-nullptr warnings in some files in source/Core; other minor fixes. 2016-03-10 23:57:12 +00:00
History.cpp
IOHandler.cpp second pass over removal of Mutex and Condition 2016-05-19 05:13:57 +00:00
Listener.cpp remove use of Mutex in favour of std::{,recursive_}mutex 2016-05-18 01:59:10 +00:00
Log.cpp remove use of Mutex in favour of std::{,recursive_}mutex 2016-05-18 01:59:10 +00:00
Logging.cpp Fix Clang-tidy modernize-use-nullptr warnings in some files in source/Core; other minor fixes. 2016-03-11 21:55:47 +00:00
Mangled.cpp Don't demangle a name when Mangled::GetName() is called with ePreferMangled. Only demangle if this isn't the the value for the "preference" argument indicating the user wants the demangled name. This will stop a lot of symbols from being demangled when parsing the symbol table in ObjectFileMachO. 2015-12-17 01:00:50 +00:00
Module.cpp remove use of Mutex in favour of std::{,recursive_}mutex 2016-05-18 01:59:10 +00:00
ModuleChild.cpp
ModuleList.cpp second pass over removal of Mutex and Condition 2016-05-19 05:13:57 +00:00
Opcode.cpp Fix Clang-tidy modernize-use-nullptr warnings in some files in source/Core; other minor fixes. 2016-03-11 21:55:47 +00:00
PluginManager.cpp remove use of Mutex in favour of std::{,recursive_}mutex 2016-05-18 01:59:10 +00:00
RegisterValue.cpp Fix cmake build after r266524. 2016-04-16 16:29:17 +00:00
RegularExpression.cpp Fix Clang-tidy modernize-use-nullptr warnings in some files in source/Core; other minor fixes. 2016-03-12 00:31:13 +00:00
Scalar.cpp Avoid an assertion failure when a bit field is extracted from a value of the same size. 2016-05-19 13:51:20 +00:00
SearchFilter.cpp second pass over removal of Mutex and Condition 2016-05-19 05:13:57 +00:00
Section.cpp Remove unnecessary <limits> includes. 2016-03-15 21:11:02 +00:00
SourceManager.cpp Silence some MSVC warnings. 2015-08-26 23:55:14 +00:00
State.cpp
Stream.cpp Make lldb::endian::InlHostByteOrder() private. 2015-11-07 04:40:13 +00:00
StreamAsynchronousIO.cpp Fix warnings detected by -Wpessimizing-move 2015-07-28 09:18:32 +00:00
StreamCallback.cpp remove use of Mutex in favour of std::{,recursive_}mutex 2016-05-18 01:59:10 +00:00
StreamFile.cpp Support for truncate/append on log files 2015-03-20 09:43:20 +00:00
StreamGDBRemote.cpp merge lldb-platform-work branch (and assorted fixes) into trunk 2013-08-26 23:57:52 +00:00
StreamString.cpp Silence -Wqual-cast warnings from GCC 5.2 2015-10-18 19:34:38 +00:00
StringList.cpp Remove duplicate header added in r256927 2016-01-07 14:34:52 +00:00
StructuredData.cpp Make the "lldb/Utility/JSON.h" able to parse JSON into tokens with the new JSONParser class. 2015-07-06 23:40:40 +00:00
Timer.cpp remove use of Mutex in favour of std::{,recursive_}mutex 2016-05-18 01:59:10 +00:00
UUID.cpp Add Utility/ModuleCache class and integrate it with PlatformGDBRemoteServer - in order to allow modules caching from remote targets. 2015-03-10 01:15:28 +00:00
UserID.cpp
UserSettingsController.cpp Don't #include "lldb-python.h" from anywhere. 2015-05-29 17:41:47 +00:00
VMRange.cpp
Value.cpp Certain hardware architectures have registers of 256 bits in size 2016-03-10 00:14:29 +00:00
ValueObject.cpp Add an argument to ValueObject::GetSyntheticBase that allows for name customization on the generated value 2016-05-02 18:13:18 +00:00
ValueObjectCast.cpp [SBValue] Add a method GetNumChildren(uint32_t max) 2015-10-21 19:28:08 +00:00
ValueObjectChild.cpp More rework of the updating logic for ValueObjectChild. Still just refactoring with no feature change 2015-11-09 23:59:53 +00:00
ValueObjectConstResult.cpp Add an LLDB data formatter for single-element NSArray and NSDictionary Cocoa containers 2016-02-29 21:06:50 +00:00
ValueObjectConstResultCast.cpp Add an LLDB data formatter for single-element NSArray and NSDictionary Cocoa containers 2016-02-29 21:06:50 +00:00
ValueObjectConstResultChild.cpp Add an LLDB data formatter for single-element NSArray and NSDictionary Cocoa containers 2016-02-29 21:06:50 +00:00
ValueObjectConstResultImpl.cpp Add an LLDB data formatter for single-element NSArray and NSDictionary Cocoa containers 2016-02-29 21:06:50 +00:00
ValueObjectDynamicValue.cpp Revert r268591 2016-05-05 21:10:28 +00:00
ValueObjectList.cpp
ValueObjectMemory.cpp [SBValue] Add a method GetNumChildren(uint32_t max) 2015-10-21 19:28:08 +00:00
ValueObjectRegister.cpp [SBValue] Add a method GetNumChildren(uint32_t max) 2015-10-21 19:28:08 +00:00
ValueObjectSyntheticFilter.cpp Add support for synthetic child providers to optionally return a customized typename for display 2016-05-02 00:41:24 +00:00
ValueObjectVariable.cpp Add support for DW_OP_push_object_address in dwarf expressions 2016-02-26 14:21:10 +00:00