summaryrefslogtreecommitdiffstats
path: root/lldb/source/Host/freebsd
Commit message (Collapse)AuthorAgeFilesLines
...
* Move the rest of the HostInfo functions over.Zachary Turner2014-08-211-0/+19
| | | | | | | | | This should bring HostInfo up to 99% completion. The remainder of code in Host will be split into instantiatable classes representing host processes, threads, dynamic libraries, and process launching strategies. llvm-svn: 216230
* Move Host::GetArchitecture to HostInfo::GetArchitecture.Zachary Turner2014-08-201-1/+2
| | | | | | | | As a side effect, this patch also eliminates all of the preprocessor conditionals previously used to implement GetArchitecture(). llvm-svn: 216074
* Add includes needed for FreeBSD.Zachary Turner2014-08-191-0/+3
| | | | llvm-svn: 216000
* Move some Host logic into HostInfo class.Zachary Turner2014-08-192-51/+63
| | | | | | | | | | | | | | | | | | This patch creates a HostInfo class, a static class used to answer basic queries about the host platform. As part of this change, some functionality is moved from Host to HostInfo, and relevant fixups are performed in the rest of the codebase. This is part of a larger effort to isolate more code in the Host layer into platform-specific groups, to make it easier to make platform specific changes for a particular Host without breaking other hosts. Reviewed by: Greg Clayton Differential Revision: http://reviews.llvm.org/D4963 llvm-svn: 215992
* In the CMake build, convert lldbHost to be a single static library.Zachary Turner2014-08-151-5/+0
| | | | | | | | | Previously lldbHost was built as multiple static libraries such as lldbHostCommon, lldbHostLinux, etc. With this patch, the CMake build produces only a single static library, lldbHost, whose file set is dynamically created based on the platform. llvm-svn: 215792
* Use standard realloc so FreeBSD Host.cpp can use glibcEd Maste2014-08-071-3/+7
| | | | | | | To fix building on Debian GNU/kFreeBSD, which uses the FreeBSD kernel with a GNU userland. llvm-svn: 215134
* Implement Host::GetThreadName for FreeBSDEd Maste2014-05-211-0/+29
| | | | llvm-svn: 209312
* Fix types to eliminate compiler warnings in FreeBSD host classEd Maste2014-02-281-2/+2
| | | | llvm-svn: 202498
* Enable Host::LaunchProcess on LinuxDaniel Malea2013-08-271-195/+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 missing declaration/includes in freebsd/Host.cppDaniel Malea2013-08-271-1/+2
| | | | | | Thanks for catching this Ed! llvm-svn: 189361
* merge lldb-platform-work branch (and assorted fixes) into trunkDaniel Malea2013-08-261-19/+296
| | | | | | | | | | | | | | | | | | | | | | | | | | 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
* Set thread names on FreeBSDEd Maste2013-07-251-0/+2
| | | | | | | 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
* 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
* 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
* 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
* Build fixes for FreeBSD 9.1.Ashok Thirumurthi2013-05-011-1/+1
| | | | | | | | - TODO: Support extended register sets on FreeBSD. Patch by Samuel Jacob. llvm-svn: 180879
* 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
* Adding CMake build system to LLDB. Some known issues remain:Daniel Malea2013-02-211-0/+5
| | | | | | | | | | | | | | - generate-vers.pl has to be called by cmake to generate the version number - parallel builds not yet supported; dependency on clang must be explicitly specified Tested on Linux. - Building on Mac will require code-signing logic to be implemented. - Building on Windows will require OS-detection logic and some selective directory inclusion Thanks to Carlo Kok (who originally prepared these CMakefiles for Windows) and Ben Langmuir who ported them to Linux! llvm-svn: 175795
* Some more typing-related fixes.Filipe Cabecinhas2012-09-111-4/+4
| | | | llvm-svn: 163641
* This patch combines common code from Linux and FreeBSD intoJohnny Chen2012-01-051-30/+81
| | | | | | | | | | 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
* Patch by David Forsythe to build lldb on FreeBSD!Johnny Chen2011-08-022-0/+293
I did not take the patch for ClangExpressionParser.cpp since there was a recent change by Peter for the same line. Feel free to disagree. :-) Reference: ---------------------------------------------------------------------- r136580 | pcc | 2011-07-30 15:42:24 -0700 (Sat, 30 Jul 2011) | 3 lines Add reloc arg to standard JIT createJIT() Fixes non-__APPLE__ build. Patch by Matt Johnson! ---------------------------------------------------------------------- Also, I ignore the part of the patch to remove the RegisterContextDarwin*.h/.cpp. llvm-svn: 136720
OpenPOWER on IntegriCloud