summaryrefslogtreecommitdiffstats
path: root/lldb/source/Host/linux/Host.cpp
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix OS Version reporting bug detected by TestPlatform for some Linux 3.x ↵Daniel Malea2013-09-271-1/+8
| | | | | | | | kernels that do not report the update version - should resolve the current failure on the Linux clang buildbot llvm-svn: 191568
* Enable Host::LaunchProcess on LinuxDaniel Malea2013-08-271-8/+0
| | | | | | | - move LaunchProcessPosixSpawn() and Host::LaunchProcess() from freebsd host plugin to common (linux/freebsd section) - modify MonitorChildProcessThreadFunction to use pid_t from sys/types.h to avoid Linux/FreeBSD/Mac warnings when calling waitpid() llvm-svn: 189404
* Fix Linux Host::GetCurrentThreadID() to return real tid (not pthread_t).Michael Sartain2013-08-011-9/+8
| | | | | | | This fixes threadname logging (--thread-name) Add "-t" to TestLogging.py script to enable threadsafe and disable threadname logging llvm-svn: 187599
* Optimize Host::GetThreadName() to read from /proc/$TID per Matt's suggestion.Michael Sartain2013-07-311-27/+10
| | | | | CR: mkopec llvm-svn: 187542
* Set thread names on FreeBSDEd Maste2013-07-251-26/+1
| | | | | | | Also move the logic to shorten thread names from linux/Host.cpp to a new SetShortThreadName as both FreeBSD and Linux need the functionality. llvm-svn: 187149
* simple plugin now works with Linux fix assert in SetPluginInfo implement ↵Michael Sartain2013-07-171-3/+20
| | | | | | | | Linux ePathTypeLLDBSystemPlugins and ePathTypeLLDBUserPlugins implement Linux Host::Backtrace and Host::GetEnvironment add .gnu_debugdata comment Differential Revision: http://llvm-reviews.chandlerc.com/D1159 llvm-svn: 186475
* 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
* Add support for listing inferior thread names on Linux.Matt Kopec2013-07-101-0/+34
| | | | llvm-svn: 186033
* Add ability to attach/detach to multi-threaded inferiors on Linux.Matt Kopec2013-05-311-0/+31
| | | | | | All running threads will be detected and stopped on attach and all threads get resumed on detach. llvm-svn: 183049
* 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
* test commitMichael Sartain2013-05-171-0/+1
| | | | llvm-svn: 182064
* Implement "platform process list" on LinuxDaniel Malea2013-05-151-42/+249
| | | | | | | | | - read process information from /proc - resolves llvm.org/pr14541 :) Patch by Mike Sartain! llvm-svn: 181904
* Add setting of lldb thread names on Linux.Matt Kopec2013-05-131-1/+48
| | | | | | Patch by Mike Sartain. llvm-svn: 181722
* Adding support for process attach by pid on Linux.Andrew Kaylor2013-05-071-23/+97
| | | | llvm-svn: 181374
* After discussing with Chris Lattner, we require C++11, so lets get rid of ↵Greg Clayton2013-04-181-1/+1
| | | | | | 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-181-1/+1
| | | | | | | | 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
* Resolve printf formatting warnings on Linux:Daniel Malea2012-11-291-1/+1
| | | | | | | | - use macros from inttypes.h for format strings instead of OS-specific types Patch from Matt Kopec! llvm-svn: 168945
* This patch combines common code from Linux and FreeBSD intoJohnny Chen2012-01-051-0/+53
| | | | | | | | | | a new POSIX platform. It also contains fixes for 64bit FreeBSD. The patch is based on changes by Mark Peek <mp@FreeBSD.org> and "K. Macy" <kmacy@freebsd.org> in their github repo located at https://github.com/fbsd/lldb. llvm-svn: 147609
* API fix and missing headers.Johnny Chen2011-05-191-0/+10
| | | | | | | | | | | | | | Host.cpp was missing Error.h and the implementation of LaunchProcess. Once againg I have added a "fake" implementation waiting for a real one. Fixed the call GetAddressRange to reflect the new interface in DynamicLoaderLinuxDYLD.cpp. Added string.h to ARM_DWARF_Registers.cpp that is needed for ::memset. Signed-off-by: Johnny Chen <johnny.chen@apple.com> llvm-svn: 131695
* linux: add Host/linux subdirectoryStephen Wilson2011-03-231-0/+35
| | | | | | | Start putting linux specific host code in its own directory. For now, just implement Host::GetOSVersion. llvm-svn: 128133
* Patch from Jay Cornwall that modifies the LLDB "Host" layer to reuse moreGreg Clayton2010-09-071-749/+0
| | | | | | code between linux, darwin and BSD. llvm-svn: 113263
* Remove a deadlock condition. A bit of explanation is needed: When calling Greg Clayton2010-07-231-1/+0
| | | | | | | | | | | | | | | ThreadCancel in Host::WillTerminate g_monitor_thread may be blocked on a call to pthread_cond_wait (for example, line 640). Now, by default, when a cancellation request is serviced g_monitor_thread will again own the mutex guarding the condition variable it was waiting on. This causes the call to SetValue in Host::WillTerminate to hit a deadlock. The call to SetValue does not appear to be needed, so removing it solves the issue. Patch from Stephen Wilson. llvm-svn: 109228
* Implement GetProgramFileSpec().Eli Friedman2010-07-021-17/+4
| | | | llvm-svn: 107502
* Add hacky, incomplete Linux host implementation; barely enough to allowEli Friedman2010-07-021-0/+763
compiling lldb. Someone else might try to improve it, though. :) llvm-svn: 107501
OpenPOWER on IntegriCloud