Skip to content

Commit e39f186

Browse files
authored
Merge pull request #3102 from JDevlieghere/cherrypick-b5a84e214d49c56d13dc1fb76273f575e6752c68
[debugserver] Un-conditionalize code guarded by macOS 10.10 checks
2 parents 6dc8a96 + 4399286 commit e39f186

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

lldb/tools/debugserver/source/MacOSX/MachProcess.mm

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2715,10 +2715,6 @@ static bool FBSAddEventDataToOptions(NSMutableDictionary *options,
27152715

27162716
bool MachProcess::GetOSVersionNumbers(uint64_t *major, uint64_t *minor,
27172717
uint64_t *patch) {
2718-
#if defined(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__) && \
2719-
(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ < 101000)
2720-
return false;
2721-
#else
27222718
NSAutoreleasePool *pool = [[NSAutoreleasePool alloc] init];
27232719

27242720
NSOperatingSystemVersion vers =
@@ -2733,7 +2729,6 @@ static bool FBSAddEventDataToOptions(NSMutableDictionary *options,
27332729
[pool drain];
27342730

27352731
return true;
2736-
#endif
27372732
}
27382733

27392734
std::string MachProcess::GetMacCatalystVersionString() {

lldb/tools/debugserver/source/RNBRemote.cpp

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,8 +148,6 @@ uint64_t decode_uint64(const char *p, int base, char **end = nullptr,
148148
extern void ASLLogCallback(void *baton, uint32_t flags, const char *format,
149149
va_list args);
150150

151-
#if defined(__APPLE__) && \
152-
(__ENVIRONMENT_MAC_OS_X_VERSION_MIN_REQUIRED__ >= 101000)
153151
// from System.framework/Versions/B/PrivateHeaders/sys/codesign.h
154152
extern "C" {
155153
#define CS_OPS_STATUS 0 /* return status */
@@ -164,7 +162,6 @@ typedef uint32_t csr_config_t;
164162
#define CSR_ALLOW_TASK_FOR_PID (1 << 2)
165163
int csr_check(csr_config_t mask);
166164
}
167-
#endif
168165

169166
RNBRemote::RNBRemote()
170167
: m_ctx(), m_comm(), m_arch(), m_continue_thread(-1), m_thread(-1),

0 commit comments

Comments
 (0)