aboutsummaryrefslogtreecommitdiff
path: root/lldb/tools/debugserver/debugserver.xcodeproj
AgeCommit message (Collapse)AuthorFilesLines
2025-04-28[debugserver] Remove PThreadMutex (NFC) (#137555)Jonas Devlieghere1-8/+0
Now that all uses of PThreadMutex have been migrated to their C++ equivalent, this PR removes PThreadMutex itself.
2024-10-21[lldb] Remove stack_logging.h (#112987)Jonas Devlieghere1-1/+0
This file is covered under the Apple open source license rather than the LLVM license. Presumably this was an oversight, but it doesn't really matter as this file is unused. Remove it altogether.
2023-04-28Remove i386 and armv7 native support in debugserverJason Molenda1-63/+20
i386 and armv7 macOS/iOS cannot be built with current Xcode any longer; we cannot build or test the support code for running debugserver on these targets. Remove the code. Differential Revision: https://reviews.llvm.org/D149503
2023-02-28Update debugserver xcode proj to build with c++17Jason Molenda1-3/+3
Also a few small fixes for building debugserver on iOS in c++17.
2021-10-15Fix Xcode project for debugserverLawrence D'\''Anna1-1/+1
It seems StringConvert.cpp was moved, and the Xcode project file wasn't updated. Reviewed By: JDevlieghere Differential Revision: https://reviews.llvm.org/D111910
2021-07-20Remove the DarwinLog functionality from debguserverJason Molenda1-82/+0
Remove the DarwinLog and qStructuredDataPlugins support from debugserver. The DarwinLog plugin was never debugged fully and made reliable, and the underlying private APIs it uses have migrated since 2016 so none of them exist any longer. Differential Revision: https://reviews.llvm.org/D106324 rdar://75073283
2020-10-13Remove unused build configurations from debugserver xcode projectJason Molenda1-727/+3
the xcode project file for debugserver exists only to make my life easier when I'm working only on debugserver and don't need to build the rest of llvm/lldb. It had many build configurations to reflect our old lldb xcode project file, which is long gone. Removing them to simplify the configurations. Specifically dropping CustomSwift-Debug, DebugClang, DebugPresubmission, CustomSwift-Release, BuildAndIntegration. Keeping Debug & Release.
2020-10-13Add a new launch flag option for watchos, WatchComplicationLaunch.Jason Molenda1-85/+53
Link against CarouselServices on watchos, recognize the WatchComplicationLaunch launch flag option when that framework is available. <rdar://problem/62473967>, <rdar://problem/61230088>
2020-03-18Update so debugserver can be built on macos again with xcodebuild.Jason Molenda1-167/+155
2018-12-18Un-conditionalize use of libcompression. debugserver only buildsJason Molenda1-93/+2
on Darwin systems and libcompression has been in the OS for over three years. Remove use of / linking to zlib. We'll always have libcompression available now. Create a scratch buffer via compression_encode_scratch_buffer_size() and use it in calls to compression_encode_buffer() to avoid compression_encode_buffer having to malloc & free a scratch buffer on each call. Tested by forcing compression to be enabled on macos native (normally only enabled on iOS et al devices), running the testsuite. <rdar://problem/41601084> llvm-svn: 349553
2018-06-15Sort the files in the PBXBuildFile and PBXFileReference sectionsJason Molenda1-152/+152
of debugserver's xcode project file to reduce automerger issues with the github swift repository of lldb where the order of these entries has drifted significantly over the years. llvm-svn: 334873
2018-06-14Add an entitlement to debugserverFrederic Riss1-1/+1
On macOS 10.14, debugserver needs to have an entitlement do be allowed to debug processes. Adding this to both the Xcode and cmake build system. This shouldn't have any impact on previous OSs. llvm-svn: 334772
2018-03-19Rename remotectl_com.apple.internal.xpc.remote.debugserver.plistJason Molenda1-4/+4
to com.apple.internal.xpc.remote.debugserver.plist, not sure where that remotectl_ prefix came from. <rdar://problem/36751222> llvm-svn: 327922
2018-03-19I didn't see that SocketAddress.cpp was already being pulledJason Molenda1-6/+2
in to debugserver; my re-addition resulted in duplicated symbols. Remove my added SocketAddress.cpp, and change the original one to also be included for the debugserver-mini target. llvm-svn: 327918
2018-03-19Add the ios-mini target to the top-level xcodeproj, which buildsJason Molenda1-0/+8
the debugserver-mini target in debugserver. Add a new plist which needs to be installed for debugserver-mini. <rdar://problem/36751222> llvm-svn: 327915
2018-03-09I added CFLAGS etc to one part of the project file I should not have.Jason Molenda1-49/+1
llvm-svn: 327097
2018-03-09More cleanups of debugserver project file and the libpmenergy/libpmsampleJason Molenda1-67/+132
stuff. Activate it when an internal SDK is selected. Update the name of the LDFLAGS to match the rest of the settings. Update the default arch for ios builds. llvm-svn: 327095
2018-03-09Remove unneeded per-arch sdk specifications from debugserver xcode project file.Jason Molenda1-42/+0
llvm-svn: 327088
2018-03-09Remove the explicit dependency on libpmenergy and libpmsample.Jason Molenda1-6/+2
llvm-svn: 327087
2018-03-09Fixed two more sdk inconsistencies with the pmenergy stuff.Jason Molenda1-5/+3
llvm-svn: 327085
2018-03-09Three little cleanups in the debugserver xcode project file.Jason Molenda1-103/+32
1. Link against libpmenergy and pmsample unconditionally. It is available on macOS 10.10 ("Yosemite") and newer. We're already linking against libcompression unconditionally which is only available on macOS 10.11 & newer. 2. Change a few "sdk=macosx.internal"'s to sdk=macosx. 3. Clean up a few places where libcompression was being enabled inconsistently. Note: the -DLLDB_ENERGY define is only set when building against the macosx.internal SDK; it includes a header file that is not public. We link against the dylibs unconditionally for simplicity. llvm-svn: 327084
2018-02-28Add ability to collect memory limit.Han Ming Ong1-0/+14
Reviewer: Jason Molenda <rdar://problem/37686560> llvm-svn: 326374
2018-02-27Got rid of weak imports of libpenergy and libpsample because we are already ↵Han Ming Ong1-84/+24
requiring a modern macOS (at least 10.11) Reviewer: Jason Molenda llvm-svn: 326213
2018-02-03Turn off the deprecated ALWAYS_SEARCH_USER_PATHS featureJason Molenda1-0/+7
in debugserver. This is already set this way in the lldb project files but not in debugserver. Updating for consistency. llvm-svn: 324158
2018-01-17Remove the hardcoded macos deployment targets altogetherJason Molenda1-21/+0
from the xcode project files. We'll build for the current OS only, by default. llvm-svn: 322603
2018-01-09This change updates the deployment target for lldb and debugserverJason Molenda1-40/+110
(built with Xcode) from 10.9 to 10.11. It also enables the use of libcompression in debugserver by default (these API are only present in macOS 10.11 and newer -- 10.11 was released c. Sep 2015). I don't know if we have people / bots building lldb on older mac releases; if this turns out to be a problem I will revert the change. There are some parts of lldb (e.g. debugserer's ability to report the OS version #) that only work with 10.10 and this changes the behavior of lldb (whether the older or newer dyld interfaces are used) so there is some importance to updating the min required version. llvm-svn: 322128
2017-12-19Tweak to the debugserver entitlements setup in the xcode projectJason Molenda1-22/+12
file. For macos builds specifically, use the macosx entitlements files; for all other builds, use the ios etc entitlements. llvm-svn: 321051
2017-04-26Re-landing IPv6 support for LLDB HostChris Bieneman1-0/+4
This support was landed in r300579, and reverted in r300669 due to failures on the bots. The failures were caused by sockets not being properly closed, and this updated version of the patches should resolve that. Summary from the original change: This patch adds IPv6 support to LLDB/Host's TCP socket implementation. Supporting IPv6 involved a few significant changes to the implementation of the socket layers, and I have performed some significant code cleanup along the way. This patch changes the Socket constructors for all types of sockets to not create sockets until first use. This is required for IPv6 support because the socket type will vary based on the address you are connecting to. This also has the benefit of removing code that could have errors from the Socket subclass constructors (which seems like a win to me). The patch also slightly changes the API and behaviors of the Listen/Accept pattern. Previously both Listen and Accept calls took an address specified as a string. Now only listen does. This change was made because the Listen call can result in opening more than one socket. In order to support listening for both IPv4 and IPv6 connections we need to open one AF_INET socket and one AF_INET6 socket. During the listen call we construct a map of file descriptors to addrin structures which represent the allowable incoming connection address. This map removes the need for taking an address into the Accept call. This does have a change in functionality. Previously you could Listen for connections based on one address, and Accept connections from a different address. This is no longer supported. I could not find anywhere in LLDB where we actually used the APIs in that way. The new API does still support AnyAddr for allowing incoming connections from any address. The Listen implementation is implemented using kqueue on FreeBSD and Darwin, WSAPoll on Windows and poll(2) everywhere else. https://reviews.llvm.org/D31823 llvm-svn: 301492
2017-04-19Revert yesterdays IPv6 patchesPavel Labath1-4/+0
The break the linux bots (and probably any other machine which would run the test suite in a massively parallel way). The problem is that it can happen that we only successfully create an IPv6 listening socket (because the relevant IPv4 port is used by another process) and then the connecting side attempts to connect to the IPv4 port and fails. It's not very obvious how to fix this problem, so I am reverting this until we come up with a solution. llvm-svn: 300669
2017-04-18Update DebugServer to support IPv6 over TCPChris Bieneman1-0/+4
Summary: This patch adds IPv6 support to debugserver. It follows a similar pattern to the changes proposed for LLDB/Host except that the listen implementation is only with kqueue(2) because debugserver is only supported on Darwin. Reviewers: jingham, jasonmolenda, clayborg Reviewed By: clayborg Subscribers: mgorny, lldb-commits Differential Revision: https://reviews.llvm.org/D31824 llvm-svn: 300580
2017-03-13[debugserver] This is a small cleanup patch to AVX support detectionChris Bieneman1-8/+0
Summary: The first Sandybridge iMacs with AVX support shipped in Spring 2011 with Snow Leopard as their OS. Unfortunately due to a kernel bug debugging AVX code was not really possible until 10.7.4. The old code here checked the kernel build number to determine when to support AVX, but that code was incorrect. It verified that the kernel build number was greater than xnu-2020, which is the build of the kernel that had the fix for 10.8. The fix was also back ported to 10.7.4. Which means all publicly available OS builds 10.7.4 and later have working AVX support. This new patch verifies that the host OS is greater than or equal to 10.7.4 by checking that the build number is greater than or equal to 11Exx. The patch also removes the HasAVX assembly blob in favor of querying the kernel via sysctl for the hardware features. Using sysctl is slower, however since the code is executed once and the result cached it is a better approach because it is possible for the kernel to disable AVX support on hardware that supports it, so listening to the kernel is a better approach for the debugger to take. Reviewers: jasonmolenda, spyffe Subscribers: lldb-commits, mgorny Differential Revision: https://reviews.llvm.org/D30918 llvm-svn: 297685
2017-01-26Add Foundation to the debugserver-mini dependencies;Jason Molenda1-0/+2
debugserver-mini can use Foundation. llvm-svn: 293140
2017-01-25Link debugserver against Foundation to get access to NSProcessInfo.Sean Callanan1-14/+12
debugserver-mini can't use Foundation so disable that code there. llvm-svn: 293098
2017-01-25Reverted 292880 to fix a linker error.Sean Callanan1-49/+0
<rdar://problem/30180883> llvm-svn: 293022
2017-01-24weak-link debugserver against the LoggingSupport framework;Jason Molenda1-0/+49
systems without this framework will not get a link error. <rdar://problem/30158797> llvm-svn: 292880
2016-09-12fix Xcode build after r281226Todd Fiala1-1/+1
llvm-svn: 281243
2016-08-30Update debugserver project to pull in StdStringExtractor.cpp instead of the newJason Molenda1-8/+6
llvm-using StringExtractor.cpp in the xcode project file settings. llvm-svn: 280039
2016-08-19Add StructuredData plugin type; showcase with new DarwinLog featureTodd Fiala1-3/+148
Take 2, with missing cmake line fixed. Build tested on Ubuntu 14.04 with clang-3.6. See docs/structured_data/StructuredDataPlugins.md for details. differential review: https://reviews.llvm.org/D22976 reviewers: clayborg, jingham llvm-svn: 279202
2016-08-19Revert "Add StructuredData plugin type; showcase with new DarwinLog feature"Todd Fiala1-148/+3
This reverts commit 1d885845d1451e7b232f53fba2e36be67aadabd8. llvm-svn: 279200
2016-08-19Add StructuredData plugin type; showcase with new DarwinLog featureTodd Fiala1-3/+148
See docs/structured_data/StructuredDataPlugins.md for details. differential review: https://reviews.llvm.org/D22976 reviewers: clayborg, jingham llvm-svn: 279198
2016-08-09Remove CFData from the xcodeproj as wellEnrico Granata1-8/+0
llvm-svn: 278158
2016-07-21Add a new DynamicLoader plugin that uses SPI that are in developmentJason Molenda1-0/+7
for the fall (northern hemisphere) 2016 Darwin platforms to learn about loaded images, instead of reading dyld internal data structures. These new SPI don't exist on older releases, and new packets are needed from debugserver to use them (those changes are already committed). I had to change the minimum deployment target for debugserver in the xcode project file to macOS 10.10 so that debugserver will use the [[NSProcessInfo processInfo] operatingSystemVersion] call in MachProcess::GetOSVersionNumbers to get the operarting system version # -- this API is only available in macOS 10.10 and newer ("OS X Yosemite", released Oct 2014). If we have many people building llvm.org lldb on older systems still, we can back off on this for the llvm.org sources. There should be no change in behavior with this commit, either to older darwin systems or newer darwin systems. For now the new DynamicLoader plugin is never activated - I'm forcing the old plugin to be used in DynamicLoaderDarwin::UseDYLDSPI. I'll remove that unconditional use of the old plugin soon, so the newer plugin is used on the newest Darwin platforms. <rdar://problem/25251243> llvm-svn: 276254
2016-06-21Fix the "Release" build on MacOSX for debugserver. Extra bad include paths ↵Greg Clayton1-1/+0
were making things not build due to header file issues with stdio.h. llvm-svn: 273306
2016-06-21Change the "debugserver-mini" target (a version of debugserverJason Molenda1-16/+24
which doesn't like against all the extra UI frameworks on ios) so it now generates a binary called "debugserver-nonui" and puts it in /usr/local/bin instead of /Developer/usr/bin. Add some cruft to RNBDefs.h to get the version number (provided by Xcode at build time) with either the name "debugserver" or "debugserver_nonui" as appropriate. Add the "debugserver-mini" target to the top level "ios" target in lldb xcode project file, so this nonui debugserver will be built along with the normal lldb / debugserver. <rdar://problem/24730789> llvm-svn: 273236
2016-03-15Bump the lldb version # in the xcode project files fromJason Molenda1-19/+19
350.99.0 to 360.99.0. llvm-svn: 263529
2015-10-29Xcode suggested enabling a "no common blocks" warningJason Molenda2-9/+22
(whatever that is) and wanted to clean up some duplicated entries in the project files. llvm-svn: 251586
2015-10-25Remove some unnecessary macosx.internal SDK settings inJason Molenda1-9/+9
the debugserver xcode project file. llvm-svn: 251221
2015-10-23Upstreaming the apple internal changes that accumulated during theJason Molenda1-28/+1013
previous release. Most of the diffs are duplication in the xcode project file caused by adding a "debugserver-mini" target. Jim Ingham added support for a new SPI needed to request app launches on iOS. Greg Clayton added code to indicate the platform of the binary (macosx, ios, watchos, tvos) based on Mach-O load commands. Jason Molenda added code so debugserver will identify when it is running on a tvos/watchos device to lldb. llvm-svn: 251091
2015-08-13Remove DNBConfig.hBruce Mitchener1-26/+0
Summary: This was no longer needed and hasn't been needed since r143244 in 2011. This removes everything associated with generating or using it. Reviewers: clayborg, jasonmolenda Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D11971 llvm-svn: 244850
2015-08-04Bump the version # in the xcode proj file from major number 340 to 350.Jason Molenda1-8/+8
The SB API for major version 340 won't be changing any more. llvm-svn: 243943