summaryrefslogtreecommitdiffstats
path: root/lldb/tools/debugserver/debugserver.xcodeproj
Commit message (Collapse)AuthorAgeFilesLines
...
* Xcode recommended these changes to the project file. It recommendedJason Molenda2014-10-161-1/+1
| | | | | | | a number of warnings to be enabled. The one making the most noise across the code base right now is CLANG_WARN_UNREACHABLE_CODE = YES. llvm-svn: 219910
* Rework the way we pass "run multiple command" options to the various API's thatJim Ingham2014-10-111-3/+5
| | | | | | | | | | | | | | | do that (RunCommandInterpreter, HandleCommands, HandleCommandsFromFile) to gather the options into an options class. Also expose that to the SB API's. Change the way the "-o" options to the lldb driver are processed so: 1) They are run synchronously - didn't really make any sense to run the asynchronously. 2) The stop on error 3) "quit" in one of the -o commands will not quit lldb - not the command interpreter that was running the -o commands. I added an entry to the run options to stop-on-crash, but I haven't implemented that yet. llvm-svn: 219553
* Bump the verison number in the xcode project files.Jason Molenda2014-08-211-8/+8
| | | | llvm-svn: 216245
* Pull ProcessInfo and ProcessLaunchInfo out of Target/Process.Todd Fiala2014-06-301-3/+3
| | | | | | | | | | | | | | | Elevate ProcessInfo and ProcessLaunchInfo into their own headers. llgs will be using ProcessLaunchInfo but doesn't need to pull in the rest of Process.h. This also moves a bunch of implementation details from the header declarations into ProcessInfo.cpp and ProcessLaunchInfo.cpp. Tested on Ubuntu 14.04 Cmake and MacOSX Xcode. Related to https://github.com/tfiala/lldb/issues/26. llvm-svn: 212005
* Initial merge of some of the iOS 8 / Mac OS X Yosemite specificJason Molenda2014-06-131-29/+84
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | lldb support. I'll be doing more testing & cleanup but I wanted to get the initial checkin done. This adds a new SBExpressionOptions::SetLanguage API for selecting a language of an expression. I added adds a new SBThread::GetInfoItemByPathString for retriving information about a thread from that thread's StructuredData. I added a new StructuredData class for representing key-value/array/dictionary information (e.g. JSON formatted data). Helper functions to read JSON and create a StructuredData object, and to print a StructuredData object in JSON format are included. A few Cocoa / Cocoa Touch data formatters were updated by Enrico to track changes in iOS 8 / Yosemite. Before we query a thread's extended information, the system runtime may provide hints to the remote debug stub that it will use to retrieve values out of runtime structures. I added a new SystemRuntime method AddThreadExtendedInfoPacketHints which allows the SystemRuntime to add key-value type data to the initial request that we send to the remote stub. The thread-format formatter string can now retrieve values out of a thread's extended info structured data. The default thread-format string picks up two of these - thread.info.activity.name and thread.info.trace_messages. I added a new "jThreadExtendedInfo" packet in debugserver; I will add documentation to the lldb-gdb-remote.txt doc soon. It accepts JSON formatted arguments (most importantly, "thread":threadnum) and it returns a variety of information regarding the thread to lldb in JSON format. This JSON return is scanned into a StructuredData object that is associated with the thread; UI layers can query the thread's StructuredData to see if key-values are present, and if so, show them to the user. These key-values are likely to be specific to different targets with some commonality among many targets. For instance, many targets will be able to advertise the pthread_t value for a thread. I added an initial rough cut of "thread info" command which will print the information about a thread from the jThreadExtendedInfo result. I need to do more work to make this format reasonably. Han Ming added calls into the pmenergy and pmsample libraries if debugserver is run on Mac OS X Yosemite to get information about the inferior's power use. I added support to debugserver for gathering the Genealogy information about threads, if it exists, and returning it in the jThreadExtendedInfo JSON result. llvm-svn: 210874
* Revert r209142.Todd Fiala2014-05-192-10/+2
| | | | | | | Need to spend a little more time with suppressing the debugserver 64-to-32 bit warnings. Will re-submit after I get the warnings properly suppressed. llvm-svn: 209151
* Update Xcode settings for Xcode 5.1 (5B130a) to remove workspace warning.Todd Fiala2014-05-192-2/+10
| | | | llvm-svn: 209142
* lldb arm64 import.Jason Molenda2014-03-291-18/+45
| | | | | | | | | | | | | | | | These changes were written by Greg Clayton, Jim Ingham, Jason Molenda. It builds cleanly against TOT llvm with xcodebuild. I updated the cmake files by visual inspection but did not try a build. I haven't built these sources on any non-Mac platforms - I don't think this patch adds any code that requires darwin, but please let me know if I missed something. In debugserver, MachProcess.cpp and MachTask.cpp were renamed to MachProcess.mm and MachTask.mm as they picked up some new Objective-C code needed to launch processes when running on iOS. llvm-svn: 205113
* Convert to codesigning by hand to work around bugs in Xcode cert verification.Jim Ingham2014-02-181-3/+17
| | | | llvm-svn: 201595
* Update the lldb version number in the xcode project files from 310.99.0 to ↵Jason Molenda2014-01-101-8/+8
| | | | | | 320.99.0. llvm-svn: 198917
* Remove stuff from debugserver Xcode project that didn't belong.Greg Clayton2013-12-121-13/+0
| | | | llvm-svn: 197188
* Expose SBPlatform through the public API.Greg Clayton2013-11-201-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Example code: remote_platform = lldb.SBPlatform("remote-macosx"); remote_platform.SetWorkingDirectory("/private/tmp") debugger.SetSelectedPlatform(remote_platform) connect_options = lldb.SBPlatformConnectOptions("connect://localhost:1111"); err = remote_platform.ConnectRemote(connect_options) if err.Success(): print >> result, 'Connected to remote platform:' print >> result, 'hostname: %s' % (remote_platform.GetHostname()) src = lldb.SBFileSpec("/Applications/Xcode.app/Contents/SharedFrameworks/LLDB.framework", False) dst = lldb.SBFileSpec() # copy src to platform working directory since "dst" is empty err = remote_platform.Install(src, dst); if err.Success(): print >> result, '%s installed successfully' % (src) else: print >> result, 'error: failed to install "%s": %s' % (src, err) Implemented many calls needed in lldb-platform to be able to install a directory that contains symlinks, file and directories. The remote lldb-platform can now launch GDB servers on the remote system so that remote debugging can be spawned through the remote platform when connected to a remote platform. The API in SBPlatform is subject to change and will be getting many new functions. llvm-svn: 195273
* r189295 inadvertently set the codesigning identity for the debugserver Debug ↵Jim Ingham2013-09-061-1/+1
| | | | | | | | configuration to "", which causes debugging to fail for that configuration. Setting it back to lldb_codesign. llvm-svn: 190172
* merge lldb-platform-work branch (and assorted fixes) into trunkDaniel Malea2013-08-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | Summary: This merge brings in the improved 'platform' command that knows how to interface with remote machines; that is, query OS/kernel information, push and pull files, run shell commands, etc... and implementation for the new communication packets that back that interface, at least on Darwin based operating systems via the POSIXPlatform class. Linux support is coming soon. Verified the test suite runs cleanly on Linux (x86_64), build OK on Mac OS X Mountain Lion. Additional improvements (not in the source SVN branch 'lldb-platform-work'): - cmake build scripts for lldb-platform - cleanup test suite - documentation stub for qPlatform_RunCommand - use log class instead of printf() directly - reverted work-in-progress-looking changes from test/types/TestAbstract.py that work towards running the test suite remotely. - add new logging category 'platform' Reviewers: Matt Kopec, Greg Clayton Review: http://llvm-reviews.chandlerc.com/D1493 llvm-svn: 189295
* Bump version number to 310.99.0.Jason Molenda2013-07-151-8/+8
| | | | llvm-svn: 186304
* <rdar://problem/13892516>Greg Clayton2013-05-211-4/+0
| | | | | | LLDB can now debug across calls to exec when the architecture changes from say i386 to x86_64 (on darwin). llvm-svn: 182345
* <rdar://problem/13521159>Greg Clayton2013-03-272-2/+13
| | | | | | | | LLDB is crashing when logging is enabled from lldb-perf-clang. This has to do with the global destructor chain as the process and its threads are being torn down. All logging channels now make one and only one instance that is kept in a global pointer which is never freed. This guarantees that logging can correctly continue as the process tears itself down. llvm-svn: 178191
* Remove FunctionProfiler and ProfileObjectiveC action classes as they are not ↵Greg Clayton2013-03-261-16/+0
| | | | | | used. llvm-svn: 178035
* More cleanup on the lldb-perf code:Greg Clayton2013-03-191-24/+20
| | | | | | | | | | | | | | | - TestCase.m_thread is now filled in with the first thread that has a valid stop reason. This eliminates the need for the SelectMyThread() functions. - The first thread that stops for a reason is also set as the selected thread in the process in case any command line commands are run. - Changed launch over to take a SBLaunchInfo parameter so that the launch function doesn't keep getting new arguments as they are needed. - TestCase::Setup() and TestCase::Launch(SBLaunchInfo) now return bool to indicate success of setup and launch. - ActionWanted::Next(SBThread) was renamed to ActionWanted::StepOver(SBThread) - ActionWanted::Finish(SBThread) was renamed to ActionWanted::StepOut(SBThread) llvm-svn: 177376
* Also remove actual link against the ARMDisassembler framework fromJason Molenda2013-03-091-8/+0
| | | | | | debugserver's build settings. llvm-svn: 176760
* We don't need to specify the VALID_ARCHS in the xcode project file.Jason Molenda2013-03-091-8/+0
| | | | | | | Also, don't build debugserver with -DUSE_ARM_DISASSEMBLER_FRAMEWORK - that framework isn't around at this point. llvm-svn: 176759
* Updated Apple LLDB version to lldb-300.99.0. AlsoSean Callanan2013-03-071-8/+8
| | | | | | | updated the build system to support the new Apple LLDB versioning scheme. llvm-svn: 176662
* Added a kqueue class which isn't being used yet, but was part of trying to ↵Greg Clayton2013-02-161-21/+45
| | | | | | | | | | work around the limitations with the unix select() call and how it is limited to FD_SETSIZE file descriptors. Also added a TimeSpecTimeout class which can be used with any calls that take a "struct timespec *" as an argument. It is used by the KQueue class. Also updated some project settings. llvm-svn: 175377
* Bump lldb version num to lldb-178, debugserver version to debugserver-198.Jason Molenda2012-12-011-8/+8
| | | | llvm-svn: 169081
* Fixed the debugserver Xcode project to allowSean Callanan2012-11-271-0/+82
| | | | | | | | | DebugClang builds of LLDB to build a properly codesigned debugserver. I did this by adding a DebugClang configuration to debugserver that's just a clone of the Debug configuration. llvm-svn: 168746
* Added a posix_spawn based launchd plist for always using posix_spawn to ↵Greg Clayton2012-11-081-0/+2
| | | | | | launch programs. llvm-svn: 167563
* Switched debugserver to use C++11/libc++.Sean Callanan2012-11-021-0/+9
| | | | | | <rdar://problem/12624679> llvm-svn: 167303
* Added the plists to the debugserver project and fixed the labels for the new ↵Greg Clayton2012-10-311-0/+4
| | | | | | plists. llvm-svn: 167183
* Bump to lldb-168, debugserver-193.Jason Molenda2012-09-201-6/+6
| | | | llvm-svn: 164291
* Updating Xcode project version numbers for lldb-165 and debugserver-192Sean Callanan2012-08-071-6/+6
| | | | llvm-svn: 161374
* Updating Xcode project version numbers for lldb-164 and debugserver-191Sean Callanan2012-08-021-6/+6
| | | | llvm-svn: 161209
* Updating Xcode project version numbers for lldb-163 and debugserver-190Sean Callanan2012-07-261-6/+6
| | | | llvm-svn: 160770
* Update the project and schemes to the Xcode recommended settings.Greg Clayton2012-07-171-2/+3
| | | | llvm-svn: 160391
* Bump to lldb-162 / debugserver-189.Jason Molenda2012-07-141-6/+6
| | | | llvm-svn: 160212
* Unify how we get host version on Mac OS X & iOS.Jim Ingham2012-07-121-18/+10
| | | | | | | | | Also remove our dependency on UIKit & AppKit. Cleaned up the project files a bit. <rdar://problem/11814498> llvm-svn: 160147
* Bump versions to lldb-161, debugserver-188.Jason Molenda2012-07-061-6/+6
| | | | llvm-svn: 159798
* Bump debugserver version # to 187.Jason Molenda2012-05-161-6/+6
| | | | llvm-svn: 156888
* Clean up the usage of "MasterPlan" status in ThreadPlans. Only ↵Jim Ingham2012-05-031-4/+1
| | | | | | | | | | | | | | | user-initiated plans should be MasterPlans that want to stay on the plan stack. So make all plans NOT MasterPlans by default and then have the SB API's and the CommandObjectThread step commands set this explicitly. Also added a "clean up" phase to the Thread::ShouldStop so that if plans get stranded on the stack, we can remove them. This is done by adding an IsPlanStale method to the thread plans, and if the plan can know that it is no longer relevant, it returns true, and the plan and its sub-plans will get discarded. llvm-svn: 156101
* Updating Xcode project version numbers for lldb-137 and debugserver-186Sean Callanan2012-04-011-6/+6
| | | | llvm-svn: 153823
* Updating Xcode project version numbers for lldb-136 and debugserver-185Sean Callanan2012-03-291-6/+6
| | | | llvm-svn: 153630
* Bump version to debugserver-184, lldb-135.Jason Molenda2012-03-241-6/+6
| | | | llvm-svn: 153374
* Small tweak to list of arches to build debugserver for on arm.Jason Molenda2012-03-241-6/+15
| | | | llvm-svn: 153371
* Bumped Xcode project versions for lldb-134 and debugserver-183.Greg Clayton2012-03-231-6/+6
| | | | llvm-svn: 153298
* Fix FRAMEWORK_SEARCH_PATHS for iOS builds.Johnny Chen2012-03-161-3/+3
| | | | llvm-svn: 152948
* Updating Xcode project version numbers for lldb-132 and debugserver-182Sean Callanan2012-03-161-6/+6
| | | | llvm-svn: 152901
* Updating Xcode project version numbers for lldb-131 and debugserver-181Sean Callanan2012-03-141-6/+6
| | | | llvm-svn: 152726
* <rdar://problem/10434005>Greg Clayton2012-03-141-1/+1
| | | | | | | Prepare LLDB to be built with C++11 by hiding all accesses to std::tr1 behind macros that allows us to easily compile for either C++. llvm-svn: 152698
* bump to debugserver-180Jason Molenda2012-03-141-6/+6
| | | | llvm-svn: 152687
* On iOS builds, install debugserver in /Developer/usr/bin.Jason Molenda2012-03-131-1/+1
| | | | | | | Also add a copy files phase for -target ios that installs the debugserver launch plists. llvm-svn: 152680
* Bumped Xcode project versions for lldb-129 and debugserver-179.Greg Clayton2012-03-131-6/+6
| | | | llvm-svn: 152606
OpenPOWER on IntegriCloud