llvm-project/lldb/tools/debugserver/source/MacOSX
Frederic Riss cd90f878d4 [debugserver] Fix LC_BUILD_VERSION load command handling.
Summary:
In one of the 2 places the LC_BUILD_VERSION load command is handled, there
is a bug preventing us from actually handling them (the address where to
read the load command was not updated). This patch factors reading the
deployment target load commands into a helper and adds testing for the 2
code paths calling the helper.

The testing is a little bit complicated because the only times those load
commands matter is when debugging a simulator process. I added a new
decorator to check that a specific SDK is available. The actual testing was
fairly easy once I knew how to run a simulated process.

Reviewers: jasonmolenda, labath

Subscribers: lldb-commits

Differential Revision: https://reviews.llvm.org/D45298

llvm-svn: 329374
2018-04-06 04:28:12 +00:00
..
DarwinLog [CMake] Refactor debugserver build system 2017-07-18 21:15:27 +00:00
arm Rename Error -> Status. 2017-05-12 04:51:55 +00:00
arm64 Rename Error -> Status. 2017-05-12 04:51:55 +00:00
i386 Upstreaming avx512 register support in debugserver. These changes 2018-03-06 00:27:41 +00:00
ppc *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
x86_64 Upstreaming avx512 register support in debugserver. These changes 2018-03-06 00:27:41 +00:00
CFBundle.cpp Quiet a warning where we weren't checking if this was the same and rhs. 2016-12-28 21:19:42 +00:00
CFBundle.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
CFString.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
CFString.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
CFUtils.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
CMakeLists.txt [CMake] Refactor debugserver build system 2017-07-18 21:15:27 +00:00
Genealogy.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
Genealogy.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
GenealogySPI.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
MachException.cpp Prevent double release of mach ports 2018-03-29 03:49:41 +00:00
MachException.h [MachException] Avoid alignment UB, NFC 2017-12-08 01:09:40 +00:00
MachProcess.h [debugserver] Fix LC_BUILD_VERSION load command handling. 2018-04-06 04:28:12 +00:00
MachProcess.mm [debugserver] Fix LC_BUILD_VERSION load command handling. 2018-04-06 04:28:12 +00:00
MachTask.h Add the ability for the task port to change when a process execs. 2016-09-28 21:07:34 +00:00
MachTask.mm Add ability to collect memory limit. 2018-02-28 22:18:45 +00:00
MachThread.cpp Change uses of strncpy in debugserver to strlcpy 2017-12-09 03:37:09 +00:00
MachThread.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
MachThreadList.cpp Rename Error -> Status. 2017-05-12 04:51:55 +00:00
MachThreadList.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
MachVMMemory.cpp Add ability to collect memory limit. 2018-02-28 22:18:45 +00:00
MachVMMemory.h Add ability to collect memory limit. 2018-02-28 22:18:45 +00:00
MachVMRegion.cpp *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
MachVMRegion.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
OsLogger.cpp Remove no-op function pointer null checks, NFC 2017-12-06 19:21:10 +00:00
OsLogger.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
ThreadInfo.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00
dbgnub-mig.defs Remove DNBConfig.h 2015-08-13 00:32:01 +00:00
stack_logging.h *** This commit represents a complete reformatting of the LLDB source code 2016-09-06 20:57:50 +00:00