summaryrefslogtreecommitdiffstats
path: root/lldb/source/Host
Commit message (Collapse)AuthorAgeFilesLines
...
* Bump version number to 310.99.0.Jason Molenda2013-07-152-2/+2
| | | | llvm-svn: 186304
* Commit Timothee Besset's patch to update Host/linux/Host.cpp to keep upJason Molenda2013-07-151-1/+1
| | | | | | with the changes in r186211. llvm-svn: 186299
* Missed a checking that should have been checked in with 186211.Greg Clayton2013-07-121-1/+1
| | | | llvm-svn: 186221
* Add stub GetThreadName for FreeBSD, missed in r186033.Ed Maste2013-07-111-0/+7
| | | | | | | On FreeBSD inferior thread names are available through ptrace, so we won't use Host::GetThreadName anyway. llvm-svn: 186086
* Add support for listing inferior thread names on Linux.Matt Kopec2013-07-103-34/+67
| | | | llvm-svn: 186033
* Fix build with LLVM_DISABLE_PYTHONEd Maste2013-07-021-1/+3
| | | | llvm-svn: 185466
* Build standalone debug symbol file support on FreeBSD tooEd Maste2013-07-021-1/+1
| | | | llvm-svn: 185425
* Split symbol support for ELF and Linux.Michael Sartain2013-07-011-2/+117
| | | | llvm-svn: 185366
* Following the modification introduced in llvm by commit 185311Sylvestre Ledru2013-07-012-9/+13
| | | | | | | | | | | | | | | | | | The build system is currently miss-identifying GNU/kFreeBSD as FreeBSD. This kind of simplification is sometimes useful, but in general it's not correct. As GNU/kFreeBSD is an hybrid system, for kernel-related issues we want to match the build definitions used for FreeBSD, whereas for userland-related issues we want to match the definitions used for other systems with Glibc. The current modification adjusts the build system so that they can be distinguished, and explicitly adds GNU/kFreeBSD to the build checks in which it belongs. Fixes bug #16446. Patch by Robert Millan in the context of Debian. llvm-svn: 185313
* Move sys/sysctl.h include after its dependency sys/types.hEd Maste2013-06-281-1/+1
| | | | llvm-svn: 185147
* Don't explicitly set update versionEd Maste2013-06-261-1/+0
| | | | | | | Host::GetOSVersion's caller already sets it to UINT32_MAX to determine which version number components are set. llvm-svn: 184953
* Update version sscanf to match FreeBSD release infoEd Maste2013-06-251-2/+3
| | | | | | Release strings are of the form 9.1-RELEASE-p3 or 10.0-CURRENT. llvm-svn: 184876
* Correct use of __FreeBSD_kernel__Ed Maste2013-06-251-6/+4
| | | | | | | | | | | It is defined on recent FreeBSD versions, so must not be mutually exclusive with an #elif FreeBSD block. Patch submitted by Robert Millan. Fixes PR#16447. llvm-svn: 184867
* Sync FreeBSD files to Linux equivalents, to reduce noise in diffEd Maste2013-06-241-5/+5
| | | | | | | | | - Sort functions in the same order - Match whitespace - Remove commetned out code - Make filename in comments match filename llvm-svn: 184746
* Don't depend on set being transitively included.Rafael Espindola2013-06-131-0/+1
| | | | llvm-svn: 183936
* Update for llvm change.Rafael Espindola2013-06-131-3/+2
| | | | llvm-svn: 183929
* Use the global functions instead of the Program methods.Rafael Espindola2013-06-121-1/+1
| | | | llvm-svn: 183862
* <rdar://problem/14083928>Enrico Granata2013-06-061-0/+6
| | | | | | Making sure that if you invoke LLDB as lldb ./someBinary you can then launch the inferior with process launch —tty llvm-svn: 183453
* Fix various build warnings.Matt Kopec2013-06-031-0/+1
| | | | llvm-svn: 183140
* Add ability to attach/detach to multi-threaded inferiors on Linux.Matt Kopec2013-05-312-0/+39
| | | | | | All running threads will be detected and stopped on attach and all threads get resumed on detach. llvm-svn: 183049
* <rdar://problem/13752848>Han Ming Ong2013-05-311-0/+2
| | | | | | Add 'JoinExistingSession' to XPC for root debugging. llvm-svn: 183037
* Adding support for stopping all threads of multithreaded inferiors on Linux. ↵Andrew Kaylor2013-05-281-3/+14
| | | | | | Also adding multithreaded test cases. llvm-svn: 182809
* ObjectFileELF::GetModuleSpecifications on Linux should work now.Michael Sartain2013-05-231-3/+31
| | | | | | | Which means "platform process list" should work and list the architecture. We are now parsing the elf build-id if it exists, which should allow us to load stripped symbols (looking at that next). llvm-svn: 182610
* Cleaned up the File API a bit.Greg Clayton2013-05-221-27/+78
| | | | llvm-svn: 182538
* test commitMichael Sartain2013-05-171-0/+1
| | | | llvm-svn: 182064
* Fixed a few obvious errors pointed out by the static analyzer.Jim Ingham2013-05-152-0/+4
| | | | llvm-svn: 181911
* Implement "platform process list" on LinuxDaniel Malea2013-05-152-44/+251
| | | | | | | | | - read process information from /proc - resolves llvm.org/pr14541 :) Patch by Mike Sartain! llvm-svn: 181904
* Include also sys/wait.h in the case of a FreeBSD kernel with a glibc (Debian ↵Sylvestre Ledru2013-05-151-1/+2
| | | | | | KFreeBSD for example) llvm-svn: 181885
* Add setting of lldb thread names on Linux.Matt Kopec2013-05-132-5/+78
| | | | | | Patch by Mike Sartain. llvm-svn: 181722
* Adding support for process attach by pid on Linux.Andrew Kaylor2013-05-072-24/+98
| | | | llvm-svn: 181374
* A few small fixes to make things like image list notJason Molenda2013-05-061-2/+4
| | | | | | | print "//mach_kernel" if you are debugging an executable in the top level directory. llvm-svn: 181190
* fix a couple of clang static analyzer warnings.Jason Molenda2013-05-041-0/+4
| | | | | | | Most important was a new[] + delete mismatch in ScanFormatDescriptor() and a couple of possible memory leaks in FileSpec::EnumerateDirectory(). llvm-svn: 181080
* Remove the UUID::GetAsCString() method which required a buffer to save the Jason Molenda2013-05-031-11/+7
| | | | | | | UUID string in; added UUID::GetAsString() which returns the uuid string in a std::string. Updated callers to use the new method. llvm-svn: 181078
* Build fixes for FreeBSD 9.1.Ashok Thirumurthi2013-05-012-2/+5
| | | | | | | | - TODO: Support extended register sets on FreeBSD. Patch by Samuel Jacob. llvm-svn: 180879
* Cleanup logging to use the new "std::string FileSpec::GetPath()" function. ↵Greg Clayton2013-04-291-3/+2
| | | | | | | | | | | Also added a similar function for modules: std::string Module::GetSpecificationDescription () const; This returns the module as "/usr/lib/libfoo.dylib" for normal files (calls "std::string FileSpec::GetPath()" on m_file) but it also might include the object name in case the module is for a .o file in a BSD archive ("/usr/lib/libfoo.a(bar.o)"). Cleaned up necessary logging code to use it. llvm-svn: 180717
* Don't return a reference to a local variable, and removed a redundant API.Greg Clayton2013-04-291-13/+3
| | | | llvm-svn: 180713
* Add a few new methods to FileSpec to make it a little easier to workJason Molenda2013-04-291-2/+27
| | | | | | | | | | | with directories, without increasing the size of the FileSpec object. GetPath() returns a std::string of the full pathname of the file. IsDirectory(), IsPipe(), IsRegularFile(), IsSocket(), and IsSymbolicLink() can be used instead of getting the FileType() and comparing it to an enum. Update PlatformDarwinKernel to use these new methods. llvm-svn: 180704
* More CMake fixes for OS X.Filipe Cabecinhas2013-04-252-3/+19
| | | | llvm-svn: 180243
* <rdar://problem/13209140>Enrico Granata2013-04-241-0/+6
| | | | | | “plugin load” tries to be more helpful when it fails to load a plugin llvm-svn: 180218
* <rdar://problem/13665446>Greg Clayton2013-04-241-0/+26
| | | | | | Pass the user set target.env-vars when launching through a terminal. llvm-svn: 180201
* Fixed being able to mmap an entire file by letting the default args "do the ↵Greg Clayton2013-04-201-1/+2
| | | | | | right thing". llvm-svn: 179909
* Fixed some linux buildbot warnings.Greg Clayton2013-04-191-2/+1
| | | | llvm-svn: 179892
* After discussing with Chris Lattner, we require C++11, so lets get rid of ↵Greg Clayton2013-04-185-5/+5
| | | | | | the macros and just use C++11. llvm-svn: 179805
* Since we use C++11, we should switch over to using std::unique_ptr when ↵Greg Clayton2013-04-185-8/+7
| | | | | | | | C++11 is being used. To do this, we follow what we have done for shared pointers and we define a STD_UNIQUE_PTR macro that can be used and it will "do the right thing". Due to some API differences in std::unique_ptr and due to the fact that we need to be able to compile without C++11, we can't use move semantics so some code needed to change so that it can compile with either C++. Anyone wanting to use a unique_ptr or auto_ptr should now use the "STD_UNIQUE_PTR(TYPE)" macro. llvm-svn: 179779
* Change EnumerateDirectory from using readdir() to using readdir_r()Jason Molenda2013-04-041-2/+13
| | | | | | so it can be re-entered while iterating over a directory safely. llvm-svn: 178738
* <rdar://problem/13521159>Greg Clayton2013-03-272-20/+20
| | | | | | | | 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
* Initial checkin of a new project: LLDB Performance Testing InfrastructureEnrico Granata2013-03-082-0/+40
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a very basic implementation of a library that easily allows to drive LLDB.framework to write test cases for performance This is separate from the LLDB testsuite in test/ in that: a) this uses C++ instead of Python to avoid measures being affected by SWIG b) this is in very early development and needs lots of tweaking before it can be considered functionally complete c) this is not meant to test correctness but to help catch performance regressions There is a sample application built against the library (in darwin/sketch) that uses the famous sample app Sketch as an inferior to measure certain basic parameters of LLDB's behavior. The resulting output is a PLIST much like the following: <?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> <plist version="1.0"> <array> <dict> <key>fetch-frames</key> <real>0.13161715522222225</real> </dict> <dict> <key>file-line-bkpt</key> <real>0.029111678750000002</real> </dict> <dict> <key>fetch-modules</key> <real>0.00026376766666666668</real> </dict> <dict> <key>fetch-vars</key> <real>0.17820429311111111</real> </dict> <dict> <key>run-expr</key> <real>0.029676525769230768</real> </dict> </array> </plist> Areas for improvement: - code cleanups (I will be out of the office for a couple days this coming week, but please keep ideas coming!) - more metrics and test cases - better error checking This toolkit also comprises a simple event-loop-driven controller for LLDB, similar yet much simpler to what the Driver does to implement the lldb command-line tool. llvm-svn: 176715
* Updated Apple LLDB version to lldb-300.99.0. AlsoSean Callanan2013-03-072-2/+2
| | | | | | | updated the build system to support the new Apple LLDB versioning scheme. llvm-svn: 176662
* <rdar://problem/13119170>Han Ming Ong2013-03-061-0/+30
| | | | | | Reap the child process (debugserver) when it is done. llvm-svn: 176594
* Fixed a case where the result of std::string's c_str() method was being ↵Greg Clayton2013-02-271-72/+22
| | | | | | called on a local variable and returned as a const char * incorrectly. We used to cache the thread names for threads in the current host process, but we shoudn't be caching that as the names can change over time, so now a std::string is returned from Host::GetThreadName(). llvm-svn: 176217
OpenPOWER on IntegriCloud