summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/POSIX/ProcessPOSIX.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix Linux by partially reverting 196787Ed Maste2013-12-111-0/+126
| | | | llvm-svn: 197065
* Remove 'const' constraint on ProcessLaunchInfo parameter in Process::DoLaunch().Jean-Daniel Dupas2013-12-091-1/+1
| | | | | | This 'const' is not required and prevent us to defer the launch to the Host layer. llvm-svn: 196837
* Threaded inferior support for FreeBSDEd Maste2013-12-091-126/+0
| | | | | | | Modelled in part on GDBRemoteCommunicationClient. Review: http://llvm-reviews.chandlerc.com/D2267 llvm-svn: 196787
* Simplify indirect rld_map for mips (rework r192408).Ed Maste2013-10-111-15/+2
| | | | | | | | | Just pass a Target* into ObjectFileELF::GetImageInfoAddress so that it can do the extra dereference necessary on MIPS, instead of passing a flag back to the caller. Review: http://llvm-reviews.chandlerc.com/D1899 llvm-svn: 192469
* Support mips shared object debug infoEd Maste2013-10-111-5/+17
| | | | | | | | | | MIPS's .dyanamic section is read-only. Instead of using DT_DEBUG for the pointer to dyld information it uses a separate tag DT_MIPS_RLD_MAP which points to storage in the read-write .rld_map section, which in turn points to the dyld information. Review: http://llvm-reviews.chandlerc.com/D1890 llvm-svn: 192408
* Add exec support for Linux including common support for POSIX.Matt Kopec2013-10-091-2/+37
| | | | llvm-svn: 192319
* Fixing a problem with thread creation signal order dependencyAndrew Kaylor2013-09-171-1/+20
| | | | llvm-svn: 190831
* Clean up handling of FreeBSD thread list on Launch / AttachEd Maste2013-09-031-0/+4
| | | | | | | | Instead of directly manipulating the thread list in Launch and Attach, just rely on RefreshStateAfterStop to populate the initial list. Review: http://llvm-reviews.chandlerc.com/D1565 llvm-svn: 189889
* Move detach to FreeBSD- and Linux-specific classes.Ed Maste2013-08-301-28/+0
| | | | | | | | | On Linux there is no separate notion of a process (vs. a thread) for ptrace(); each thread needs to be individually detached. On FreeBSD we have a separate process context, and we detach just it. Review: http://llvm-reviews.chandlerc.com/D1418 llvm-svn: 189666
* Perform thread lookup after RefreshStateAfterStop()Ed Maste2013-08-291-2/+2
| | | | | | This fixes a crash on FreeBSD llvm-svn: 189607
* merge lldb-platform-work branch (and assorted fixes) into trunkDaniel Malea2013-08-261-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Remove unreachable code when thread exits on Linux.Matt Kopec2013-08-081-6/+0
| | | | llvm-svn: 187995
* Fix thread name updating in Linux. "thread list" should report correct names ↵Michael Sartain2013-07-311-5/+8
| | | | | | | | | | | always now. Created new LinuxThread class inherited from POSIXThread and removed linux / freebsd ifdefs Removed several un-needed set thread name calls CR (and multiple suggestions): mkopec llvm-svn: 187545
* Modify ProcessPOSIX to use the thread list mutex as neededDaniel Malea2013-07-241-0/+17
| | | | | | - should resolve (at least some) of the spurious crashes we are seeing in multithreaded tests on Linux (and likely FreeBSD) llvm-svn: 187081
* Stop process monitor from ProcessPOSIX::FinalizeAndrew Kaylor2013-07-101-0/+8
| | | | llvm-svn: 186039
* Add support for listing inferior thread names on Linux.Matt Kopec2013-07-101-1/+6
| | | | llvm-svn: 186033
* Reverting ProcessMonitor shared pointer changesAndrew Kaylor2013-07-091-4/+2
| | | | llvm-svn: 185981
* Use shared pointers to hold the process in ProcessMonitorAndrew Kaylor2013-07-091-2/+4
| | | | llvm-svn: 185946
* Fix signal handling for POSIX (only tested on Linux) processes in ↵Matt Kopec2013-07-091-19/+50
| | | | | | | | multi-threaded programs. Also fix a related issue where if a thread exits after a thread continue, lldb would hang. llvm-svn: 185944
* Avoid crash if we fail to resolve process in attachEd Maste2013-07-041-3/+2
| | | | llvm-svn: 185661
* Update error message; detach-keeps-stopped is also not on FreeBSDEd Maste2013-07-031-2/+2
| | | | llvm-svn: 185549
* Split symbol support for ELF and Linux.Michael Sartain2013-07-011-1/+1
| | | | llvm-svn: 185366
* Remove unneeded limbo state flag.Matt Kopec2013-06-261-13/+2
| | | | llvm-svn: 185010
* Fix setting of watchpoints on inferior thread creation for Linux.Matt Kopec2013-06-031-21/+35
| | | | llvm-svn: 183139
* Add ability to attach/detach to multi-threaded inferiors on Linux.Matt Kopec2013-05-311-2/+9
| | | | | | All running threads will be detected and stopped on attach and all threads get resumed on detach. llvm-svn: 183049
* Adding support for stopping all threads of multithreaded inferiors on Linux. ↵Andrew Kaylor2013-05-281-36/+81
| | | | | | Also adding multithreaded test cases. llvm-svn: 182809
* Adding support for process attach by pid on Linux.Andrew Kaylor2013-05-071-1/+34
| | | | llvm-svn: 181374
* Add watchpoint support for Linux on 64-bit host.Matt Kopec2013-05-071-0/+128
| | | | llvm-svn: 181341
* Recommitting r180831 with trivial fix - remember to return errors if you ↵Jim Ingham2013-05-021-1/+8
| | | | | | compute. llvm-svn: 180898
* Reverting 180831 as it crashes TestDefaultConstructorForAPIObjects.pyDaniel Malea2013-05-011-8/+1
| | | | llvm-svn: 180868
* Added an option to "process detach" to keep the process stopped, if the ↵Jim Ingham2013-04-301-1/+8
| | | | | | | | | | process plugin (or in the case of ProcessGDBRemote the stub we are talking to) know how to do that. rdar://problem/13680832 llvm-svn: 180831
* Fix bug in ProcessPOSIX::IsAlive() exposed by r178324Daniel Malea2013-04-011-1/+4
| | | | | | | - process in 'unloaded' state was (incorrectly) considered to be alive by POSIX plugin - above caused a regression in TestProcessLaunch cases llvm-svn: 178493
* Fix the Linux build issues introduced by r178191.Ashok Thirumurthi2013-03-281-3/+3
| | | | | | | | | - All Linux logging channels now use a single global instance of lldb_private::Log, to handle the case of logging during process tear down. - Also removed a single use of LogSP in FreeBSD and fixed a typo in a comment while reading through ProcessKDPLog. Reviewed by Daniel Malea. llvm-svn: 178242
* Recommit lldb realtime output for POSIX.Matt Kopec2013-03-141-22/+2
| | | | | | -Adds workaround for assertion in lldb for TestEvents.py llvm-svn: 177116
* Backout POSIX realtime lldb output. TestEvents.py is causing lldb to assert.Matt Kopec2013-03-141-2/+22
| | | | llvm-svn: 177076
* Change Linux/POSIX to output inferior output in realtime.Matt Kopec2013-03-111-22/+2
| | | | llvm-svn: 176833
* Fix string warning I introduced with indirect function support.Matt Kopec2013-03-011-1/+2
| | | | llvm-svn: 176360
* Add GNU indirect function support in expressions for Linux.Matt Kopec2013-02-271-0/+13
| | | | llvm-svn: 176206
* Rename [Enable|Disable]Breakpoint() to [Enable|Disable]BreakpointSite() in ↵Daniel Malea2013-02-151-2/+2
| | | | | | | | POSIX plugin - needed due to r175241 llvm-svn: 175290
* Add initial support to trace spawned threads in a process on Linux.Matt Kopec2013-01-081-2/+21
| | | | llvm-svn: 171864
* Implement -w flag to process launch (allow launching inferior process in ↵Daniel Malea2013-01-081-1/+13
| | | | | | | | different working directory) on Linux/FreeBSD - fixes test case TestProcessLaunch llvm-svn: 171854
* Change crash handling to use eStateStopped rather than eStateCrashed.Andrew Kaylor2012-12-141-1/+2
| | | | llvm-svn: 170224
* More Linux warnings fixes (remove default labels as needed):Daniel Malea2012-12-071-4/+0
| | | | | | | | - as per http://llvm.org/docs/CodingStandards.html#don-t-use-default-labels-in-fully-covered-switches-over-enumerations Patch by Matt Kopec! llvm-svn: 169633
* Fix Linux build warnings due to redefinition of macros:Daniel Malea2012-12-051-0/+2
| | | | | | | | | - add new header lldb-python.h to be included before other system headers - short term fix (eventually python dependencies must be cleaned up) Patch by Matt Kopec! llvm-svn: 169341
* Resolve printf formatting warnings on Linux:Daniel Malea2012-11-291-5/+5
| | | | | | | | - use macros from inttypes.h for format strings instead of OS-specific types Patch from Matt Kopec! llvm-svn: 168945
* Patch from Daniel Malea that cleans up the process parameters for ↵Greg Clayton2012-10-121-2/+1
| | | | | | Process/Thread classes for POSIX and Linux. llvm-svn: 165806
* Patch from Andrew Kaylor for linux:Greg Clayton2012-09-071-0/+6
| | | | | | | | | | The attached patch fixes a problem with performing an attach from the SBTarget API on Linux (and other systems that use ProcessPOSIX). When Process::Attach was called from SBTarget, it resulted in a call to a form of the DoAttachWithID function that wasn't implemented in ProcessPOSIX, and so it fell back to the default implementation (which just returns an error). It didn't seem necessary to use the attach_info parameter for this case, so I just implemented it as a call to the simpler version of the function. In debugging this problem, I also found that SBTarget wasn't checking the return value from the Attach call, causing it to hang when the attach fails. llvm-svn: 163399
* Patch from info from Daniel Malea that should fix the build on linux after ↵Greg Clayton2012-09-041-0/+1
| | | | | | fixes committed with revision 162860. llvm-svn: 163139
* Patch from Viktor Kutuzov <vkutuzov@accesssoftek.com>:Johnny Chen2012-04-141-2/+4
| | | | | | | | | | | Hello everyone, please find the attached patch for TOT and lldb-platform-work branch, which provides the following changes: - fixed a crash in the ProcessPOSIX constructor when an executable module object is not yet created. - added support for the multi instanciated FreeBSD platform objects (the local host and remote as example). - enabled the remote gdb plugin on FreeBSD. llvm-svn: 154724
* Remove the GetSequenceMutex timeout that isn't being used in the GDB remote ↵Greg Clayton2012-04-121-2/+2
| | | | | | | | plug-in. Also fixed the ProcessLinux, ProcessPOSIX and ProcessFreeBSD to have the correct UpdateThreadList() prototype. llvm-svn: 154603
OpenPOWER on IntegriCloud