summaryrefslogtreecommitdiffstats
path: root/lldb/tools/debugserver/source/MacOSX
diff options
context:
space:
mode:
authorJason Molenda <jmolenda@apple.com>2019-02-18 22:13:34 +0000
committerJason Molenda <jmolenda@apple.com>2019-02-18 22:13:34 +0000
commit870c0a648b5192fd01ed6ce270c395f108d02434 (patch)
treed5d42aff8b5c23cbe0fc2d1b8fc94588cb10cb15 /lldb/tools/debugserver/source/MacOSX
parent5044316d162dc4d175bb452c108813c5d68a11c4 (diff)
downloadbcm5719-llvm-870c0a648b5192fd01ed6ce270c395f108d02434.tar.gz
bcm5719-llvm-870c0a648b5192fd01ed6ce270c395f108d02434.zip
Ah, misunderstood Jonas' feedback - fix this so we'll
do the right thing when both API are available. We want to try both of them if the first one fails. llvm-svn: 354288
Diffstat (limited to 'lldb/tools/debugserver/source/MacOSX')
-rw-r--r--lldb/tools/debugserver/source/MacOSX/MachProcess.mm3
1 files changed, 2 insertions, 1 deletions
diff --git a/lldb/tools/debugserver/source/MacOSX/MachProcess.mm b/lldb/tools/debugserver/source/MacOSX/MachProcess.mm
index e54fc65236c..7aa3ec36aab 100644
--- a/lldb/tools/debugserver/source/MacOSX/MachProcess.mm
+++ b/lldb/tools/debugserver/source/MacOSX/MachProcess.mm
@@ -3927,7 +3927,8 @@ void MachProcess::CalculateBoardStatus()
found_app_flavor = true;
m_flags |= eMachProcessFlagsUsingFBS;
}
-#elif defined(WITH_BKS)
+#endif
+#if defined(WITH_BKS)
if (!found_app_flavor && IsBKSProcess(m_pid)) {
found_app_flavor = true;
m_flags |= eMachProcessFlagsUsingBKS;
OpenPOWER on IntegriCloud