llvm-project/lldb
Jason Molenda 32a914256e A little cleanup in ObjectFileMachO::GetSDKVersion.
This method does one of two things:

1. finds a minimum os deployment version # in a Mach-O load
command and saves the three parts in the m_sdk_version, or

2. finds no valid min os version # load command, pushes a 
sentinel value on the m_sdk_version vector so we don't search
the same load commands multiple times.

There was a little bug when we found a load command with 
a version of 0.0.0 - the method would not add anything to
the m_sdk_version vector but would declare that a success.
It would not push the sentinel value to the vector.
There was code later in the method which assumed that
the vector always had a sentinel value, at least, and that
code could crash when this method was called back when
evaluating a Swift expression.  (these version #'s are 
fetched lazily so it wouldn't happen when the object file
was parsed, only when doing an expression that needed
the version #).

<rdar://problem/41372699> 

llvm-svn: 335556
2018-06-25 23:45:39 +00:00
..
cmake Fix up Info.plist when building LLDB.framework with CMake 2018-06-19 02:59:30 +00:00
docs Enable AUTOBRIEF in doxygen configuration. 2018-05-02 16:55:16 +00:00
examples Update cmdtemplate.py to use best pratices. 2018-06-22 23:34:24 +00:00
include/lldb Remove UUID::SetFromCString 2018-06-21 15:24:39 +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 TestThreadExit for gcc&libc++ combo 2018-06-25 14:28:38 +00:00
resources Fix up Info.plist when building LLDB.framework with CMake 2018-06-19 02:59:30 +00:00
scripts Improve SBThread's stepping API using SBError parameter. 2018-06-20 21:43:16 +00:00
source A little cleanup in ObjectFileMachO::GetSDKVersion. 2018-06-25 23:45:39 +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 Fix windows build for r335541. 2018-06-25 23:29:52 +00:00
unittests Remove UUID::SetFromCString 2018-06-21 15:24:39 +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 Upgrade all the .arcconfigs to https. 2016-07-14 13:15:37 +00:00
.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 Attempt to fix windows build broken by r334968 2018-06-19 14:23:31 +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