summaryrefslogtreecommitdiffstats
path: root/lldb/cmake
Commit message (Collapse)AuthorAgeFilesLines
...
* Standalone cmake build improvements (bug #23889)Pavel Labath2015-07-171-0/+1
| | | | | | patch by Eugene Zelenko. llvm-svn: 242529
* Fix liblldb linking on RHEL 6 (bug #24140)Pavel Labath2015-07-172-20/+20
| | | | | | Patch by Eugene Zelenko. llvm-svn: 242525
* Re-landing r242318 after buildbot update.Chaoren Lin2015-07-162-5/+21
| | | | llvm-svn: 242488
* Revert "Default to linking lldb-server statically for Android."Tamas Berghammer2015-07-162-15/+6
| | | | | | | | | With static linking lldb-server crashes in platform mode when tries to listen on localhost:5432 on the android build bot. This reverts commit 3ea861707dec8423746679ff496e4fd03255d4cf. llvm-svn: 242401
* Use accept instead of accept4 for Android.Chaoren Lin2015-07-151-0/+4
| | | | | | | | | | | | | | | Summary: The accept4 syscall is missing on older ARM Android kernels, and the accept() call is implemented with the accept4 syscall, so we'll need to call the accept syscall directly. Reviewers: vharron, tberghammer, labath Subscribers: ovyalov, chaoren, labath, tberghammer, aemerson, lldb-commits Differential Revision: http://reviews.llvm.org/D10887 llvm-svn: 242319
* Default to linking lldb-server statically for Android.Chaoren Lin2015-07-152-6/+15
| | | | | | | | | | Reviewers: vharron, tberghammer Subscribers: chaoren, labath, tberghammer, lldb-commits Differential Revision: http://reviews.llvm.org/D10858 llvm-svn: 242318
* Move WindowsDYLD to the Plugins/DynamicLoader directory.Stephane Sezer2015-07-081-0/+1
| | | | | | | | | | | | | | | | | | | | | Summary: This commit moves the Windows DyanamicLoader to the common DynamicLoader directory. This is required to remote debug Windows targets. This commit also initializes the Windows DYLD plugin in SystemInitializerCommon (similarly to both POSIX and MacOSX DYLD plugins) so that we can automatically instantiate this class when connected to a windows process. Test Plan: Build. Reviewers: zturner Subscribers: lldb-commits, abdulras Differential Revision: http://reviews.llvm.org/D10882 llvm-svn: 241697
* cmake no longer needs to deal with -std=c++11 checks.Bruce Mitchener2015-07-071-26/+0
| | | | | | | | | | | | | | | | LLVM requires and handles this now and has the correct compiler version checks. This block of code for cmake in LLDB is no longer needed. Summary: cmake no longer needs to deal with -std=c++11 checks. Reviewers: labath Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D10994 llvm-svn: 241590
* Enclose CLANG_USED_LIBS in --start/end-group when linking liblldb (bug #24044)Pavel Labath2015-07-071-1/+7
| | | | | | Patch by Eugene Zelenko. llvm-svn: 241576
* LLDB standalone build: check if Clang was built independently from LLVMPavel Labath2015-07-071-1/+3
| | | | | | | | | | This is fix for bug 23704: LLDB standalone build always include ClangConfig.cmake even if Clang was built with LLVM (ClangConfig.cmake doesn't exist). Patch by: Eugene Zelenko llvm-svn: 241575
* Remove DOS line endings from LLDBStandalone.cmakeEd Maste2015-07-031-87/+87
| | | | llvm-svn: 241361
* Add Support for LLVM_INSTALL_TOOLCHAIN_ONLY (bug #23784)Pavel Labath2015-06-293-15/+21
| | | | | | | | | Support for LLVM_INSTALL_TOOLCHAIN_ONLY is modeled on same functionality from LLVM and Clang CMake files. Patch by: Eugene Zelenko llvm-svn: 240935
* [linux] Use cmake to detect support process_vm_readv (bug #23918)Pavel Labath2015-06-291-0/+24
| | | | | | | | | | | | | | | | | | Summary: Some old linux versions do not have process_vm_readv function defined. Even older versions do not have even the __NR_process_vm_readv syscall number. We use cmake to detect these situations and fallback appropriately: in the first case, we can issue the syscall manually, while it the latter case, we need to drop fast memory read support completely. Test Plan: linux test suite passes Reviewers: ovyalov, Eugene.Zelenko Subscribers: tberghammer, lldb-commits Differential Revision: http://reviews.llvm.org/D10727 llvm-svn: 240927
* Submitting patch from Abhishek for:Greg Clayton2015-06-251-0/+1
| | | | | | http://reviews.llvm.org/D10309 llvm-svn: 240663
* [LLDB][MIPS] ABI Plugin for MIPS64Bhushan D. Attarde2015-06-191-0/+1
| | | | | | | | | | | SUMMARY: This patch implements ABI plugin for MIPS64. Reviewers: clayborg Subscribers: mohit.bhakkad, sagar, jaydeep, emaste, nitesh.jain, lldb-commits Differential Revision: http://reviews.llvm.org/D10534 llvm-svn: 240123
* [LLDB][MIPS] ABI Plugin for MIPS32Bhushan D. Attarde2015-06-181-0/+1
| | | | | | | | | | | SUMMARY: This patch implements ABI plugin for MIPS32. Reviewers: clayborg Subscribers: mohit.bhakkad, sagar, jaydeep, lldb-commits Differential Revision: http://reviews.llvm.org/D10240 llvm-svn: 239997
* [lldb] Enable building with Cmake/BUILD_SHARED_LIBSAndrew Wilkins2015-06-043-4/+14
| | | | | | | | | | | | | | | | | | | | | | | | | Summary: Several changes to fix CMake builds of LLDB with the BUILD_SHARED_LIBS setting on. - Force all internal libraries to be built STATIC. - Add additional library dependencies (pthread, dl, runtimedyld). - modify finalisation of SWIG wrapper to symlink the "lib" dir into python/site-packages, so _lldb.so's RPATH resolves. Test Plan: Verified one test case with "dotest.py". Reviewers: sylvestre.ledru, zturner Reviewed By: zturner Subscribers: zturner, ted, tberghammer, emaste, lldb-commits Differential Revision: http://reviews.llvm.org/D10157 llvm-svn: 239007
* Assembly profiler for mips32Bhushan D. Attarde2015-05-151-0/+1
| | | | | | | | | | | Summary: Implementation of assembly profiler for MIPS32 using EmulateInstruction which currently scans only prologue/epilogue assembly instructions. It uses llvm::MCDisassembler to decode assembly instructions. Reviewers: clayborg, jasonmolenda Differential Revision: http://reviews.llvm.org/D9769 llvm-svn: 237420
* Fix line endings.Zachary Turner2015-05-131-213/+213
| | | | | | | I must have committed these with windows line endings a few months ago when I did this work. llvm-svn: 237283
* Get lldb-server building on android-9Vince Harron2015-05-121-1/+10
| | | | | | Build lldb-server with an android-9 sysroot. llvm-svn: 237078
* Add CMAKE_EXECUTABLE_SUFFIX to build with Android toolchain on Windows.Chaoren Lin2015-04-291-11/+16
| | | | | | | | | | Reviewers: vharron, zturner, flackr Subscribers: tberghammer, lldb-commits Differential Revision: http://reviews.llvm.org/D9177 llvm-svn: 236185
* This patch adds support aarch64-linux-gnu (SysV) abi in lldb.Omair Javaid2015-04-291-0/+1
| | | | | | | | | This code is also an import from MacOSx implementation as SysV abi is similar to what has been implemented for MacOS but may require a few tweaks. http://reviews.llvm.org/D8538 llvm-svn: 236098
* This patch adds required piece of code for SysV Abi for arm. Omair Javaid2015-04-291-0/+1
| | | | | | | | | | Its mostly imported from MacOSx ABI for arm which is similar. Further tweaking a updates may be required at a later stage. http://reviews.llvm.org/D8539 llvm-svn: 236097
* Adds lldb support for querying the register mapping from gdbserver remote ↵Colin Riley2015-04-161-19/+29
| | | | | | | | targets using qXfer:features:read packet. Only enabled if libxml2 enabled in build. Differential Revision: http://reviews.llvm.org/D8999 llvm-svn: 235109
* Making linking against Python simpler on Windows.Zachary Turner2015-04-101-18/+37
| | | | | | | | | | | | | | | | | | | | | | | | | This patch deprecates the three Python CMake variables in favor of a single variable PYTHON_HOME which points to the root of a python installation. Since building Python doesn't output the files in a structure that is compatible with the PYTHONHOME environment variable, we also provide a script install_custom_python.py which will copy the output of a custom python build to the correct directory structure. The supported workflow after this patch will be to build python once for each configuration and architecture {Debug,Release} x {x86,x64} and then run the script. Then run CMake specifying -DPYTHON_HOME=<path> The first time you do this will probably require you to delete your CMake cache. The old workflow is still supported during a transitionary period, but a warning is printed at CMake time, and this will eventually be removed. Differential Revision: http://reviews.llvm.org/D8979 llvm-svn: 234660
* Initial language runtime support for RenderScript. Colin Riley2015-04-091-0/+1
| | | | | | | | Plan is to have this initialized on a per-process basis somewhat the same as the ObjC library on module loading, but this commit is simply the foundation work and will be incrementally built upon to add that detection functionality. Differential Revision: http://reviews.llvm.org/D8896 llvm-svn: 234503
* Fix warnings generated by clang-cl.Zachary Turner2015-04-021-0/+3
| | | | | | | | | | | | | | There were a couple of real bugs here regarding error checking and signed/unsigned comparisons, but mostly these were just noise. There was one class of bugs fixed here which is particularly annoying, dealing with MSVC's non-standard behavior regarding the underlying type of enums. See the comment in lldb-enumerations.h for details. In short, from now on please use FLAGS_ENUM and FLAGS_ANONYMOUS_ENUM when defining enums which contain values larger than can fit into a signed integer. llvm-svn: 233943
* Move LLDB initialization/shutdown to Initialization.Zachary Turner2015-03-191-0/+1
| | | | | | | | | | | | | | | | This creates a new top-level folder called Initialization which is intended to hold code specific to LLDB system initialization. Currently this holds the Initialize() and Terminate() functions, as well as the fatal error handler. This provides a means to break the massive dependency cycle which is caused by the fact that Debugger depends on Initialize and Terminate which then depends on the entire LLDB project. With this structure, it will be possible for applications to invoke lldb_private::Initialize() directly, and have that invoke Debugger::Initialize. llvm-svn: 232768
* Fix linking of unit tests via CMake on Windows.Zachary Turner2015-03-182-78/+96
| | | | | | | A previous attempt to make the unit tests link properly on Linux broke it for Windows. This patch fixes it for both platforms. llvm-svn: 232648
* Initial Assembly profiler for mips64Bhushan D. Attarde2015-03-181-0/+1
| | | | | | | | | | | Summary: This is initial implementation of assembly profiler which only scans prologue/epilogue assembly instructions to create CFI instructions. Reviewers: clayborg, jasonmolenda Differential Revision: http://reviews.llvm.org/D7696 llvm-svn: 232619
* [CMake] Make the unittests link against everything...Zachary Turner2015-03-141-0/+1
| | | | | | | | | | | | | | | | Sigh. There's really not a good alternative until we decouple python from lldb better. The only way the build works right now is by having every executable link against every LLDB library. This causes implicit transitive link dependencies on the union of everything that LLDB brings in. Which means that if all we want is one header file from interpreter, we have to bring in everything, including everything that everything depends on, which means python. There's outstanding efforts to address this, but it's not yet complete. So until then, this is all we can do. llvm-svn: 232287
* Create a CMake build for the gtest unit tests.Zachary Turner2015-03-131-1/+1
| | | | llvm-svn: 232210
* Remove libedit and libncurses from LLDB_SYSTEM_LIBS if they're disabled.Chaoren Lin2015-03-051-1/+6
| | | | | | | | | | Reviewers: clayborg, zturner, vharron, sbest Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D8065 llvm-svn: 231423
* [CMake] Refactor LLDB main CMake file.Zachary Turner2015-03-023-0/+375
| | | | | | | | | | | | | | The existing state of affairs was getting a little unwieldy. All of LLDB's utility functions and initial configuration was in the root CMake file. I split this up into 3 separate files and moved them to relevant subfolders under cmake/modules. Also, I deleted the add_lldb_definitions() function. It seemed to be somewhat useless and did not serve any real purpose that I was able to figure out. llvm-svn: 231010
* Reduce the number of components initialized by lldb-server to reduce static ↵Robert Flack2015-03-021-3/+3
| | | | | | | | | | binary size. Separate out the necessary component initialization for lldb-server such that the linker can greatly reduce the binary size. With this patch the size of lldb-server on my 64 bit linux release build drops from 46MB to 26MB. Differential Revision: http://reviews.llvm.org/D7880 llvm-svn: 230963
* Resubmit "[CMake] Change lldbAPI to be a CMake OBJECT library."Zachary Turner2015-02-241-8/+0
| | | | | | | | | | This resubmits r230380. The primary cause of the failure was actually just a warning, which we can disable at the CMake level in a followup patch on the LLVM side. The other thing which was actually an error on the bot should be able to be fixed with a clean. llvm-svn: 230389
* Revert "[CMake] Change lldbAPI to be a CMake OBJECT library."Zachary Turner2015-02-241-0/+8
| | | | | | | This reverts commit r230380. It causes CMake to fail on certain machines with an error about needing to use string(STRIP_GENEX). llvm-svn: 230382
* [CMake] Change lldbAPI to be a CMake OBJECT library.Zachary Turner2015-02-241-8/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | An OBJECT library is a special type of CMake library that produces no archive, has no link interface, and no link inputs. It is like a regular archive, just without the physical output. To link against an OBJECT library, you reference it in the *source* file list of a library using the special syntax $<TARGET_OBJECTS:lldbAPI>. This will cause every object file to be passed to the linker independently, as opposed to a single archive being passed to the linker. This is *extremely* important on Windows. lldbAPI exports all of the SB classes using __declspec(dllexport). Unfortunately for technical reasons it is not possible (well, extremely difficult) to get the linker to propagate a __declspec(dllexport) attribute from a symbol in an object file in an archive to a DLL that links against that archive. The solution to this is for the DLL to link the object files directly. So lldbAPI must be an OBJECT library. This fixes an issue that has been present since the duplicated lldbAPI file lists were removed, which would cause linker failures. As a side effect, this also makes LLDB_DISABLE_PYTHON=1 work again on Windows, which was previously totally broken. llvm-svn: 230380
* Create new platform: remote-androidTamas Berghammer2015-02-121-0/+1
| | | | | | | | | | * Create new platform plugin for lldb * Create HostInfo class for android * Create ProcessLauncher for android Differential Revision: http://reviews.llvm.org/D7584 llvm-svn: 228943
* Make PipeWindows::CreateWithUniqueName() use GUIDs on Windows.Zachary Turner2015-02-111-0/+1
| | | | | | | Patch by Adrian McCarthy Differential Revision: http://reviews.llvm.org/D7509 llvm-svn: 228859
* Fix build of lldb-gdbserver and lldb-platform for android (arm32, x86)Tamas Berghammer2015-02-061-1/+1
| | | | | | | | | | * Fix cmake script for android x86 * Reorder includes to avoid collision between system macros and local variables in clang framework Differential Revision: http://reviews.llvm.org/D7435 llvm-svn: 228388
* added some missing ABIsChaoren Lin2015-02-031-1/+13
| | | | llvm-svn: 227922
* Fixes compilation/run error with BUILD_SHARED_LIBS=TRUEVince Harron2015-01-141-3/+3
| | | | | | | | | | | | BUILD_SHARED_LIBS=TRUE currently isn't working for Linux x86_64 This patch fixes the link errors and also some runtime errors Test Plan: CC=clang CXX=clang++ cmake -GNinja -DBUILD_SHARED_LIBS=TRUE -DCMAKE_LINKER=ld.gold -DCMAKE_BUILD_TYPE=Debug ../../llvm ninja ninja check-lldb llvm-svn: 226039
* lldb-platform - static link all llvm dependenciesVince Harron2015-01-071-1/+5
| | | | | | | | | | | | Differential Revision: http://reviews.llvm.org/D6797 lldb-gdbserver statically links all llvm dependencies. This allows dead stripping code and reduces total binary size. This change modifies lldb-plaform to static link llvm dependencies like lldb-gdbserver. llvm-svn: 225398
* LLGS Android target support (r221570) missed adding some files: ↵Shawn Best2014-11-102-0/+279
http://reviews.llvm.org/D6166 llvm-svn: 221593
OpenPOWER on IntegriCloud