summaryrefslogtreecommitdiffstats
path: root/lldb/source/Plugins/Process/FreeBSD
Commit message (Collapse)AuthorAgeFilesLines
...
* Move FreeBSDSignals to UtilityEd Maste2014-04-174-61/+1
| | | | | | It will shortly be need by FreeBSD elf core support on all hosts. llvm-svn: 206466
* Add FreeBSD-specific SIGTHR and SIGLIBRT signalsEd Maste2014-04-154-0/+73
| | | | llvm-svn: 206319
* Implement ProcessMonitor::Kill for FreeBSDEd Maste2014-04-012-6/+4
| | | | | | | | | | | | | | | | | On FreeBSD ptrace(PT_KILL) is used to terminate the traced process (as if PT_CONTINUE had been used with SIGKILL as the signal to be delivered), and is the desired behaviour for ProcessPOSIX::DoDestroy. On Linux, after ptrace(PTRACE_KILL) the traced process still exists and can be interrogated. It is only upon resume that it exits as though it received SIGKILL. For now I'm committing only the FreeBSD change, until the Linux change (review D3159) is successfully tested. http://llvm.org/pr18894 llvm-svn: 205315
* Move calls to DisableAllBreakpointSites() and ↵Andrew MacPherson2014-03-251-2/+0
| | | | | | m_thread_list.DiscardThreadPlans() into base Process::Destroy() instead of in subclass DoDestroy() methods. llvm-svn: 204752
* Correct copy-and-pasted comments for DetachOperationEd Maste2014-03-171-1/+1
| | | | llvm-svn: 204064
* Add Process/Utility include directory on FreeBSDEd Maste2014-03-121-0/+1
| | | | | | Needed after r203667 llvm-svn: 203672
* Restore signal delivery to the inferior on FreeBSDEd Maste2014-02-281-6/+5
| | | | | | | This was broken in the threaded inferior implementation for FreeBSD (r196787) and caused FreeBSD to resume always with no signal. llvm-svn: 202513
* Disable breakpoint sites upon detach on FreeBSDEd Maste2014-02-191-0/+2
| | | | | | llvm.org/pr18894 llvm-svn: 201724
* FreeBSD hardware watchpoint implementationEd Maste2014-02-192-3/+125
| | | | | | | | | | | | | | | Implement x86_64 debug register read/write in support of hardware watchpoints. Hoist LinuxThread::TraceNotify code back into POSIXThread::TraceNotify() Patch by John Wolfe. We still need to rework this later to avoid the #ifdef FreeBSD. llvm-reviews.chandlerc.com/D2572 llvm.org/pr16706 llvm-svn: 201706
* If setgid fails for any reason, exit lldb.Ed Maste2014-02-041-2/+7
| | | | | | | This is SVN r191618 by Sylvestre Ledru applied to the FreeBSD ProcessMonitor. llvm-svn: 200791
* Remove FIXME comments about tids on FreeBSD that no longer applyEd Maste2014-01-251-16/+0
| | | | | | Spotted by John Wolfe. llvm-svn: 200092
* Threaded inferior support for FreeBSDEd Maste2013-12-097-37/+337
| | | | | | | Modelled in part on GDBRemoteCommunicationClient. Review: http://llvm-reviews.chandlerc.com/D2267 llvm-svn: 196787
* Correct header guard #endif commentsEd Maste2013-12-041-1/+1
| | | | llvm-svn: 196381
* Fix compile warningsEd Maste2013-11-251-2/+2
| | | | llvm-svn: 195685
* Remove unused variableEd Maste2013-11-251-2/+0
| | | | llvm-svn: 195683
* PT_CONTINUE and PT_STEP are process-scope on FreeBSDEd Maste2013-11-252-20/+20
| | | | | | | | | | Although ptrace() can be passed a PID or TID for PT_CONTINUE and PT_STEP, the kernel operates on all threads in the process in both cases. (See the FOREACH_THREAD_IN_PROC in FreeBSD's sys_process.c:kern_ptrace.) Make this clear by using the PID from the ProcessMonitor instance. llvm-svn: 195656
* Fix the format warnings.Sylvestre Ledru2013-10-311-2/+2
| | | | | | | | | | In almost all cases, the misuse is about "%lu" being used instead of the correct "%zu" (even though these are compatible on 64-bit platforms in practice). There are even a couple of cases where "%ld" (ie., signed int) is used instead of "%zu", and one where "%lu" is used instead of "%" PRIu64. Fixes bug #17551. Patch by "/dev/humancontroller" llvm-svn: 193832
* Add stub FreeBSD ProcessMonitor::ReadThreadPointerEd Maste2013-10-182-0/+10
| | | | llvm-svn: 192994
* Removed unnecessary call to OpenFirstAvailableMaster.Richard Mitton2013-10-171-8/+0
| | | | | | | | ::Fork already does this internally, so this was simply leaking file handles. This fixes the problem where the test suite would occasionally run out of file handles. llvm-svn: 192929
* Apply ProcessMonitor changes from r190820 to FreeBSDEd Maste2013-09-182-111/+33
| | | | llvm-svn: 190954
* Fixing a problem with thread creation signal order dependencyAndrew Kaylor2013-09-172-0/+27
| | | | llvm-svn: 190831
* Stop closing terminal fd from ProcessMonitor. It is owned by ↵Andrew Kaylor2013-09-141-1/+4
| | | | | | ConnectionFileDescriptor. llvm-svn: 190733
* Clean up handling of FreeBSD thread list on Launch / AttachEd Maste2013-09-031-22/+3
| | | | | | | | 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
* Clean up warnings in ProcessFreeBSD::UpdateThreadListEd Maste2013-08-301-3/+2
| | | | llvm-svn: 189695
* Move detach to FreeBSD- and Linux-specific classes.Ed Maste2013-08-302-0/+21
| | | | | | | | | 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
* Fix FreeBSD build after r189295Ed Maste2013-08-291-1/+1
| | | | llvm-svn: 189608
* fix FreeBSD build errorDaniel Malea2013-08-291-1/+1
| | | | | | - s/LogSP/Log */ in ProcessMonitorFreeBSD.cpp llvm-svn: 189589
* merge lldb-platform-work branch (and assorted fixes) into trunkDaniel Malea2013-08-261-4/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Fix thread name updating in Linux. "thread list" should report correct names ↵Michael Sartain2013-07-311-2/+2
| | | | | | | | | | | 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
* Fix i386 FreeBSD buildEd Maste2013-07-221-0/+2
| | | | llvm-svn: 186871
* Correct comment to match class nameEd Maste2013-07-171-1/+1
| | | | llvm-svn: 186509
* FreeBSD: Replace GetSignalInfo with GetLwpInfoEd Maste2013-07-172-16/+16
| | | | | | | For thread support we are going to need other members of struct ptrace_lwpinfo. llvm-svn: 186505
* Stop process monitor from ProcessPOSIX::FinalizeAndrew Kaylor2013-07-101-3/+2
| | | | llvm-svn: 186039
* Reverting ProcessMonitor shared pointer changesAndrew Kaylor2013-07-092-8/+8
| | | | llvm-svn: 185981
* Use shared pointers to hold the process in ProcessMonitorAndrew Kaylor2013-07-092-8/+8
| | | | llvm-svn: 185946
* Pass tid through to ptrace operationsEd Maste2013-07-041-27/+35
| | | | | | This change is equivalent to the Linux threading support. llvm-svn: 185671
* Remove empty files left behind from move to POSIX/Ed Maste2013-07-031-0/+0
| | | | llvm-svn: 185559
* Sync parts of FreeBSD Process plugin with LinuxEd Maste2013-07-022-42/+102
| | | | | | | | | | | | * Use PseudoTerminal to fix stdio handling / passthrough to the inferior process. * Add log messages equivalent to the Linux ones. * Port changes relating to process creation / termination. This revision contains changes equivalent to (parts of) SVN revisions 109318 142384 166055 168503 169645 177116 182809. llvm-svn: 185442
* Match printf format specifiers and argumentsEd Maste2013-06-251-2/+2
| | | | llvm-svn: 184854
* Sync FreeBSD files to Linux equivalents, to reduce noise in diffEd Maste2013-06-241-19/+18
| | | | | | | | | - Sort functions in the same order - Match whitespace - Remove commetned out code - Make filename in comments match filename llvm-svn: 184746
* Update comment to match class nameEd Maste2013-06-241-1/+1
| | | | llvm-svn: 184745
* Eliminate missing virtual destructor warning on FreeBSDEd Maste2013-06-241-0/+1
| | | | | | Akin to r181712 (88e529b7) of Linux/ProcessMonitor.cpp llvm-svn: 184742
* Fix FreeBSD build due to previous changes to ProcessMonitor::Detach.Matt Kopec2013-06-032-2/+2
| | | | llvm-svn: 183150
* FreeBSD cmake build fixes.Daniel Malea2013-05-311-0/+3
| | | | | | | | | - missing #include <cstdlib> in Mangled.cpp - missing include dirs in FreeBSD CMakeLists.txt Patch by Ed Maste! llvm-svn: 183032
* <rdar://problem/13854277>Greg Clayton2013-05-102-15/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | <rdar://problem/13594769> Main changes in this patch include: - cleanup plug-in interface and use ConstStrings for plug-in names - Modfiied the BSD Archive plug-in to be able to pick out the correct .o file when .a files contain multiple .o files with the same name by using the timestamp - Modified SymbolFileDWARFDebugMap to properly verify the timestamp on .o files it loads to ensure we don't load updated .o files and cause problems when debugging The plug-in interface changes: Modified the lldb_private::PluginInterface class that all plug-ins inherit from: Changed: virtual const char * GetPluginName() = 0; To: virtual ConstString GetPluginName() = 0; Removed: virtual const char * GetShortPluginName() = 0; - Fixed up all plug-in to adhere to the new interface and to return lldb_private::ConstString values for the plug-in names. - Fixed all plug-ins to return simple names with no prefixes. Some plug-ins had prefixes and most ones didn't, so now they all don't have prefixed names, just simple names like "linux", "gdb-remote", etc. llvm-svn: 181631
* Fixed "log enable linux registers" and added a test.Ashok Thirumurthi2013-05-092-4/+4
| | | | | | | | | | - Eliminated the use of static for methods that read m_register_infos, so that these routines can be implemented in the base class. - Eliminated m_register_infos in the base class because this is not used when derived classes call UpdateRegisterInfo. - Also moved the namespace using declarations from headers to source files. Thanks to Daniel and Samuel for their review feedback. llvm-svn: 181538
* Build fixes for FreeBSD 9.1.Ashok Thirumurthi2013-05-012-6/+35
| | | | | | | | - TODO: Support extended register sets on FreeBSD. Patch by Samuel Jacob. llvm-svn: 180879
* Platform-specific specialization for the GPR register file.Ashok Thirumurthi2013-05-011-43/+0
| | | | | | | | - Required for platform-independant handling of general purpose registers (i.e. for core dumps). Thanks to Samuel Jacob for this patch. llvm-svn: 180878
* After discussing with Chris Lattner, we require C++11, so lets get rid of ↵Greg Clayton2013-04-181-2/+2
| | | | | | 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-2/+2
| | | | | | | | 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
OpenPOWER on IntegriCloud