[Lldb-commits] [PATCH] D53917: [lldb] Fix race condition in framework installation

2018-10-30 Thread Alex Langford via Phabricator via lldb-commits
xiaobai accepted this revision. xiaobai added a comment. This revision is now accepted and ready to land. Good catch! Thank you so much. https://reviews.llvm.org/D53917 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/

[Lldb-commits] [PATCH] D54333: [CMake] Allow version overrides with -DLLDB_VERSION_MAJOR/MINOR/PATCH/SUFFIX

2018-11-09 Thread Alex Langford via Phabricator via lldb-commits
xiaobai accepted this revision. xiaobai added a comment. Yep, this looks good to me. Thanks! :) https://reviews.llvm.org/D54333 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [PATCH] D54476: [CMake] Streamline code signing for debugserver

2018-11-13 Thread Alex Langford via Phabricator via lldb-commits
xiaobai added inline comments. Comment at: tools/debugserver/source/CMakeLists.txt:128-133 +# TODO: Following the old behavior, DEBUGSERVER_PATH still points to the +# original system binary, even if we copy it over. Keep this? +set(DEBUGSERVER_PATH "${lldb_framework

[Lldb-commits] [PATCH] D55032: [CMake] Fix standalone build for debugserver on macOS

2018-11-28 Thread Alex Langford via Phabricator via lldb-commits
xiaobai accepted this revision. xiaobai added a comment. This revision is now accepted and ready to land. This change looks fine to me. Have you considered creating something like a "debugserverStandalone.cmake" file similar to how LLDB standalone builds work? Might save us from some duplication

[Lldb-commits] [PATCH] D55317: [CMake] Aggregate options for LLDB in LLDBConfig.cmake

2018-12-07 Thread Alex Langford via Phabricator via lldb-commits
xiaobai accepted this revision. xiaobai added a comment. Definitely much easier to read. Thanks for taking care of this! :) CHANGES SINCE LAST ACTION https://reviews.llvm.org/D55317/new/ https://reviews.llvm.org/D55317 ___ lldb-commits mailing li

[Lldb-commits] [PATCH] D55330: [CMake] Revised RPATH handling

2018-12-07 Thread Alex Langford via Phabricator via lldb-commits
xiaobai added a comment. Looks good to me overall. You also probably probably also invoke `lldb_setup_rpaths_framework` for the tools included in the framework (argdumper, darwin-debug, debugserver, lldb-server). CHANGES SINCE LAST ACTION https://reviews.llvm.org/D55330/new/ https://reviews

[Lldb-commits] [PATCH] D47278: Remove lldb-private headers when building LLDB.framework with CMake

2018-05-23 Thread Alex Langford via Phabricator via lldb-commits
xiaobai created this revision. xiaobai added reviewers: compnerd, sas, labath, beanz, zturner. Herald added a subscriber: mgorny. Generating LLDB.framework when building with CMake+Ninja will copy the lldb-private headers because public_headers contains them, even though we try to make sure they d

[Lldb-commits] [PATCH] D47278: Remove lldb-private headers when building LLDB.framework with CMake

2018-05-23 Thread Alex Langford via Phabricator via lldb-commits
xiaobai added a comment. I also think that'd be a great idea. The only way I can think to do that would be to build LLDB.framework using both build systems and compare the two. Is there a faster way? https://reviews.llvm.org/D47278 ___ lldb-commit

[Lldb-commits] [PATCH] D47278: Remove lldb-private headers when building LLDB.framework with CMake

2018-05-23 Thread Alex Langford via Phabricator via lldb-commits
xiaobai added a comment. In https://reviews.llvm.org/D47278#1110104, @clayborg wrote: > That is the only guaranteed way as new headers could come along. > LLDB.framework doesn't have headers in installed Xcode.app bundles In that case, adding this test could double build times since we would

[Lldb-commits] [PATCH] D47278: Remove lldb-private headers when building LLDB.framework with CMake

2018-05-23 Thread Alex Langford via Phabricator via lldb-commits
xiaobai added a comment. In https://reviews.llvm.org/D47278#1110155, @clayborg wrote: > sorry, not as a test, but just as a way to figure out if we are getting all > the needed header files when we modify this framework header file copying > code. Ah, yeah. I'm in the process of trying to bui

[Lldb-commits] [PATCH] D47278: Remove lldb-private headers when building LLDB.framework with CMake

2018-05-23 Thread Alex Langford via Phabricator via lldb-commits
xiaobai added a comment. In https://reviews.llvm.org/D47278#1110171, @clayborg wrote: > In https://reviews.llvm.org/D47278#1110164, @xiaobai wrote: > > > In https://reviews.llvm.org/D47278#1110155, @clayborg wrote: > > > > > sorry, not as a test, but just as a way to figure out if we are getting

[Lldb-commits] [PATCH] D47278: Remove lldb-private headers when building LLDB.framework with CMake

2018-05-23 Thread Alex Langford via Phabricator via lldb-commits
xiaobai updated this revision to Diff 148305. xiaobai added a comment. Remove SystemInitializerFull.h from framework headers https://reviews.llvm.org/D47278 Files: source/API/CMakeLists.txt Index: source/API/CMakeLists.txt ===

[Lldb-commits] [PATCH] D47342: Move SystemInitializerFull header to source/API

2018-05-24 Thread Alex Langford via Phabricator via lldb-commits
xiaobai created this revision. xiaobai added reviewers: labath, clayborg. It seems to me that files in include/lldb/API/ are headers that should be exposed to liblldb users. Because SystemInitializerFull.h exposes details of lldb_private, I think having it there is not the right thing to do. Since

[Lldb-commits] [PATCH] D47278: Remove lldb-private headers when building LLDB.framework with CMake

2018-05-24 Thread Alex Langford via Phabricator via lldb-commits
xiaobai added a comment. In https://reviews.llvm.org/D47278#1110777, @labath wrote: > From a layering perspective, it makes sense for SystemInitializerFull to live > in the outermost layer, as it's the thing which makes sure liblldb pulls in > all required components. Since it is only included

[Lldb-commits] [PATCH] D47342: Move SystemInitializerFull header to source/API

2018-05-25 Thread Alex Langford via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL04: Move SystemInitializerFull header to source/API (authored by xiaobai, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/D47342?vs=148459&

[Lldb-commits] [PATCH] D47278: Remove lldb-private headers when building LLDB.framework with CMake

2018-05-25 Thread Alex Langford via Phabricator via lldb-commits
xiaobai updated this revision to Diff 148688. xiaobai added a comment. Updating to reflect changes in r04 https://reviews.llvm.org/D47278 Files: source/API/CMakeLists.txt Index: source/API/CMakeLists.txt === --- source/API/

[Lldb-commits] [PATCH] D47278: Remove lldb-private headers when building LLDB.framework with CMake

2018-05-29 Thread Alex Langford via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL333444: Remove lldb-private headers when building LLDB.framework with CMake (authored by xiaobai, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://reviews.llvm.org/D

[Lldb-commits] [PATCH] D46810: 3/3: Fix DWARFUnit::GetUnitDIEPtrOnly stale pointer

2018-05-29 Thread Alex Langford via Phabricator via lldb-commits
xiaobai added inline comments. Comment at: lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFUnit.cpp:208 +void DWARFUnit::ExtractDIEsEndCheck(lldb::offset_t offset) const { + lldb::offset_t next_cu_offset = GetNextCompileUnitOffset(); + This function introduces a

[Lldb-commits] [PATCH] D47612: Add dependency on clang-headers when building LLDB.framework using CMake

2018-05-31 Thread Alex Langford via Phabricator via lldb-commits
xiaobai created this revision. xiaobai added reviewers: clayborg, labath, sas. Herald added a subscriber: mgorny. The LLDB.framework generated when building with CMake + Ninja/Make is completely missing the clang headers. Although the code to copy them exists, we don't even generate them unless we

[Lldb-commits] [PATCH] D47612: Add dependency on clang-headers when building LLDB.framework using CMake

2018-06-01 Thread Alex Langford via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL333777: Add dependency on clang-headers when building LLDB.framework using CMake (authored by xiaobai, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://reviews.llvm.

[Lldb-commits] [PATCH] D47612: Add dependency on clang-headers when building LLDB.framework using CMake

2018-06-01 Thread Alex Langford via Phabricator via lldb-commits
xiaobai added a comment. In https://reviews.llvm.org/D47612#1118615, @labath wrote: > I don't understand the interactions between lldb framework and clang headers, > but if there isn't a better person to review this, I'm happy to rubber-stamp > it. :) Thanks! I don't quite understand it eithe

[Lldb-commits] [PATCH] D47742: Change SWIG output directory when building LLDB.framework with CMake

2018-06-04 Thread Alex Langford via Phabricator via lldb-commits
xiaobai created this revision. xiaobai added a reviewer: clayborg. Herald added a subscriber: mgorny. Instead of assuming that SWIG generated files (e.g. lldb.py) will live in scripts, we should set it to $LLDB_PYTHON_TARGET_DIR. This variable is set to scripts, except when building LLDB.framework

[Lldb-commits] [PATCH] D47742: Change SWIG output directory when building LLDB.framework with CMake

2018-06-04 Thread Alex Langford via Phabricator via lldb-commits
xiaobai added reviewers: labath, sas. xiaobai added a comment. I'm not sure who else would be interested in reviewing this. If you know somebody, please add them. :) https://reviews.llvm.org/D47742 ___ lldb-commits mailing list lldb-commits@lists.l

[Lldb-commits] [PATCH] D47742: Change SWIG output directory when building LLDB.framework with CMake

2018-06-04 Thread Alex Langford via Phabricator via lldb-commits
xiaobai added inline comments. Comment at: scripts/CMakeLists.txt:38 OUTPUT ${LLDB_WRAP_PYTHON} - OUTPUT ${CMAKE_CURRENT_BINARY_DIR}/lldb.py DEPENDS ${SWIG_SOURCES} sas wrote: > ...and this path were not the same before your change. Was that a bug that >

[Lldb-commits] [PATCH] D47742: Change SWIG output directory when building LLDB.framework with CMake

2018-06-04 Thread Alex Langford via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL333968: Change SWIG output directory when building LLDB.framework with CMake (authored by xiaobai, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://reviews.llvm.org/

[Lldb-commits] [PATCH] D47792: Fix up Info.plist when building LLDB.framework with CMake

2018-06-05 Thread Alex Langford via Phabricator via lldb-commits
xiaobai created this revision. xiaobai added reviewers: sas, clayborg. Herald added a subscriber: mgorny. We weren't using the Info.plist template in resources previously. When using that template, some of the key's values weren't being populated because some variables were not being defined. In o

[Lldb-commits] [PATCH] D47801: Make lldb tools dependent on liblldb target when building LLDB.framework with CMake

2018-06-05 Thread Alex Langford via Phabricator via lldb-commits
xiaobai created this revision. xiaobai added reviewers: sas, clayborg, labath. Herald added a subscriber: mgorny. When you build LLDB.framework with cmake, the liblldb target is built as a framework. When lldb tools are built with INCLUDE_IN_FRAMEWORK, then LLDB.framework should depend on those to

[Lldb-commits] [PATCH] D47801: Make lldb tools dependent on liblldb target when building LLDB.framework with CMake

2018-06-06 Thread Alex Langford via Phabricator via lldb-commits
xiaobai added a comment. > No existing INCLUDE_IN_FRAMEWORK tool links to liblldb, just it's individual > components, which is fine. And this is probably a state that we should > maintain for the future. I think I agree with you here. > So, how about we do this instead: > > - rename INCLUDE_I

[Lldb-commits] [PATCH] D47792: Fix up Info.plist when building LLDB.framework with CMake

2018-06-06 Thread Alex Langford via Phabricator via lldb-commits
xiaobai added inline comments. Comment at: source/API/CMakeLists.txt:184 + set(EXECUTABLE_NAME "LLDB") + set(CURRENT_PROJECT_VERSION "360.99.0") set_target_properties(liblldb PROPERTIES clayborg wrote: > sas wrote: > > clayborg wrote: > > > Currently the app

[Lldb-commits] [PATCH] D47801: Make lldb tools dependent on liblldb target when building LLDB.framework with CMake

2018-06-06 Thread Alex Langford via Phabricator via lldb-commits
xiaobai added a comment. In https://reviews.llvm.org/D47801#1123933, @labath wrote: > In https://reviews.llvm.org/D47801#1123895, @xiaobai wrote: > > > > - rename INCLUDE_IN_FRAMEWORK to something more neutral (USED_BY_LIBLLDB > > > or whatever) > > > - make the liblldb -> tool dependency not co

[Lldb-commits] [PATCH] D47801: Make lldb tools dependent on liblldb target when building LLDB.framework with CMake

2018-06-06 Thread Alex Langford via Phabricator via lldb-commits
xiaobai abandoned this revision. xiaobai added a comment. Going to go with the direction we discussed here. This shouldn't be needed. https://reviews.llvm.org/D47801 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi

[Lldb-commits] [PATCH] D47897: Check for process_vm_readv using CheckSymbolExists

2018-06-07 Thread Alex Langford via Phabricator via lldb-commits
xiaobai created this revision. xiaobai added reviewers: eugene, labath, beanz. Herald added a subscriber: mgorny. Instead of checking if code compiles, I think it is a better to check if the symbol exists. This is simpler and should do the same thing. https://reviews.llvm.org/D47897 Files: cm

[Lldb-commits] [PATCH] D47897: Check for process_vm_readv using CheckSymbolExists

2018-06-07 Thread Alex Langford via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL334219: Check for process_vm_readv using CheckSymbolExists (authored by xiaobai, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://reviews.llvm.org/D47897 Files: l

[Lldb-commits] [PATCH] D48060: Introduce lldb-framework CMake target and centralize its logic

2018-06-11 Thread Alex Langford via Phabricator via lldb-commits
xiaobai created this revision. xiaobai added reviewers: clayborg, labath, sas. Herald added a subscriber: mgorny. Currently, the liblldb target is treated as the entire framework when building LLDB.framework with CMake, and treated only as the actual liblldb library otherwise. In this patch I aim

[Lldb-commits] [PATCH] D48060: Introduce lldb-framework CMake target and centralize its logic

2018-06-12 Thread Alex Langford via Phabricator via lldb-commits
xiaobai added inline comments. Comment at: cmake/modules/LLDBFramework.cmake:1 +if (LLDB_BUILD_FRAMEWORK) + add_custom_target(lldb-framework) labath wrote: > Maybe use early exit here? Sounds good Comment at: cmake/modules/LLDBFramework.cmake:

[Lldb-commits] [PATCH] D48060: Introduce lldb-framework CMake target and centralize its logic

2018-06-12 Thread Alex Langford via Phabricator via lldb-commits
xiaobai added inline comments. Comment at: cmake/modules/LLDBFramework.cmake:45 + + add_dependencies(lldb-framework liblldb lldb-argdumper lldb-server lldb-framework-headers) + add_dependencies(finish_swig lldb-framework) labath wrote: > xiaobai wrote: > > lab

[Lldb-commits] [PATCH] D48060: Introduce lldb-framework CMake target and centralize its logic

2018-06-12 Thread Alex Langford via Phabricator via lldb-commits
xiaobai updated this revision to Diff 151049. xiaobai added a comment. Minor change I forgot to make https://reviews.llvm.org/D48060 Files: CMakeLists.txt cmake/modules/LLDBFramework.cmake source/API/CMakeLists.txt tools/driver/CMakeLists.txt Index: tools/driver/CMakeLists.txt

[Lldb-commits] [PATCH] D48060: Introduce lldb-framework CMake target and centralize its logic

2018-06-12 Thread Alex Langford via Phabricator via lldb-commits
xiaobai updated this revision to Diff 151048. xiaobai added a comment. Updated based on feedback. I would like to get more feedback before I'm comfortable changing it further and/or committing this. https://reviews.llvm.org/D48060 Files: CMakeLists.txt cmake/modules/LLDBFramework.cmake s

[Lldb-commits] [PATCH] D48060: Introduce lldb-framework CMake target and centralize its logic

2018-06-12 Thread Alex Langford via Phabricator via lldb-commits
xiaobai added inline comments. Comment at: CMakeLists.txt:145 + add_dependencies(lldb-suite lldb-framework) +elseif() + if (LLDB_CAN_USE_LLDB_SERVER) compnerd wrote: > Shouldn't this be `else()`? Yup Comment at: CMakeLists.txt:176 +if (LL

[Lldb-commits] [PATCH] D48060: Introduce lldb-framework CMake target and centralize its logic

2018-06-12 Thread Alex Langford via Phabricator via lldb-commits
xiaobai updated this revision to Diff 151067. xiaobai added a comment. Minor fixups pointed out by compnerd https://reviews.llvm.org/D48060 Files: CMakeLists.txt cmake/modules/LLDBFramework.cmake source/API/CMakeLists.txt tools/driver/CMakeLists.txt Index: tools/driver/CMakeLists.txt =

[Lldb-commits] [PATCH] D48060: Introduce lldb-framework CMake target and centralize its logic

2018-06-13 Thread Alex Langford via Phabricator via lldb-commits
xiaobai added inline comments. Comment at: CMakeLists.txt:140 +# lldb-suite is a dummy target that encompasses all the necessary tools and +# libraries for building a fully-functioning lldb. +add_custom_target(lldb-suite) labath wrote: > fully-functioning lldb **

[Lldb-commits] [PATCH] D48060: Introduce lldb-framework CMake target and centralize its logic

2018-06-15 Thread Alex Langford via Phabricator via lldb-commits
xiaobai updated this revision to Diff 151543. xiaobai added a comment. Pavel's suggestions. https://reviews.llvm.org/D48060 Files: CMakeLists.txt cmake/modules/AddLLDB.cmake cmake/modules/LLDBFramework.cmake source/API/CMakeLists.txt tools/driver/CMakeLists.txt Index: tools/driver/CM

[Lldb-commits] [PATCH] D48060: Introduce lldb-framework CMake target and centralize its logic

2018-06-15 Thread Alex Langford via Phabricator via lldb-commits
xiaobai added a comment. I think this is in a pretty good state. I built LLDB.framework with xcodebuild and compared it. There are still some discrepancies but this brings us a step closer to a final working solution. Comment at: cmake/modules/LLDBFramework.cmake:45 + + add_

[Lldb-commits] [PATCH] D48060: Introduce lldb-framework CMake target and centralize its logic

2018-06-15 Thread Alex Langford via Phabricator via lldb-commits
xiaobai added a comment. xiaobai added inline comments. Comment at: cmake/modules/AddLLDB.cmake:102-104 if(LLDB_BUILD_FRAMEWORK) if(ARG_INCLUDE_IN_FRAMEWORK) + add_dependencies(lldb-framework ${name}) labath wrote: > If you reorder this slightly, the

[Lldb-commits] [PATCH] D48060: Introduce lldb-framework CMake target and centralize its logic

2018-06-15 Thread Alex Langford via Phabricator via lldb-commits
xiaobai updated this revision to Diff 151598. xiaobai added a comment. Labath's suggestion https://reviews.llvm.org/D48060 Files: CMakeLists.txt cmake/modules/AddLLDB.cmake cmake/modules/LLDBFramework.cmake source/API/CMakeLists.txt tools/argdumper/CMakeLists.txt tools/darwin-debug/

[Lldb-commits] [PATCH] D48060: Introduce lldb-framework CMake target and centralize its logic

2018-06-18 Thread Alex Langford via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL334968: Introduce lldb-framework CMake target and centralize its logic (authored by xiaobai, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://reviews.llvm.org/D48060

[Lldb-commits] [PATCH] D48060: Introduce lldb-framework CMake target and centralize its logic

2018-06-18 Thread Alex Langford via Phabricator via lldb-commits
xiaobai added a comment. Thank you @labath for your help. I'm much happier with this! Repository: rL LLVM https://reviews.llvm.org/D48060 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lld

[Lldb-commits] [PATCH] D47792: Fix up Info.plist when building LLDB.framework with CMake

2018-06-18 Thread Alex Langford via Phabricator via lldb-commits
xiaobai added a comment. Friendly ping! https://reviews.llvm.org/D47792 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [PATCH] D47792: Fix up Info.plist when building LLDB.framework with CMake

2018-06-18 Thread Alex Langford via Phabricator via lldb-commits
xiaobai updated this revision to Diff 151840. xiaobai added a comment. Rebasing this commit after my framework refactor https://reviews.llvm.org/D47792 Files: CMakeLists.txt cmake/modules/LLDBFramework.cmake resources/LLDB-Info.plist Index: resources/LLDB-Info.plist

[Lldb-commits] [PATCH] D47792: Fix up Info.plist when building LLDB.framework with CMake

2018-06-18 Thread Alex Langford via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL335014: Fix up Info.plist when building LLDB.framework with CMake (authored by xiaobai, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://reviews.llvm.org/D47792 Fil

[Lldb-commits] [PATCH] D48620: Fix a single typo in SBSymbolContext

2018-06-26 Thread Alex Langford via Phabricator via lldb-commits
xiaobai accepted this revision. xiaobai added a comment. This revision is now accepted and ready to land. Woohoo! https://reviews.llvm.org/D48620 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinf

[Lldb-commits] [PATCH] D48993: [CMake] Give Python module install command a component name

2018-07-05 Thread Alex Langford via Phabricator via lldb-commits
xiaobai created this revision. xiaobai added reviewers: sas, smeenai, labath, davide. Herald added a subscriber: mgorny. This install command is used to install all the python modules and python bindings. Currently the only way to install it is this: `cmake -P build/tools/lldb/tools/scripts/cmake_

[Lldb-commits] [PATCH] D48993: [CMake] Give Python module install command a component name

2018-07-05 Thread Alex Langford via Phabricator via lldb-commits
xiaobai planned changes to this revision. xiaobai added a comment. This isn't quite doing what I want yet. I intend on adding an install target. https://reviews.llvm.org/D48993 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.l

[Lldb-commits] [PATCH] D48993: [CMake] Give Python module install command a component name

2018-07-05 Thread Alex Langford via Phabricator via lldb-commits
xiaobai abandoned this revision. xiaobai added a comment. Gonna take some time to rethink and better understand this. https://reviews.llvm.org/D48993 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/lis

[Lldb-commits] [PATCH] D49038: [CMake] Give lldb tools functional install targets when building LLDB.framework

2018-07-06 Thread Alex Langford via Phabricator via lldb-commits
xiaobai created this revision. xiaobai added reviewers: labath, sas, compnerd, smeenai. Herald added a subscriber: mgorny. This change makes the install targets for lldb tools functional when building for the framework. I am currently working on the install rules for lldb-framework and this will

[Lldb-commits] [PATCH] D49038: [CMake] Give lldb tools functional install targets when building LLDB.framework

2018-07-06 Thread Alex Langford via Phabricator via lldb-commits
xiaobai added a comment. I tested this by invoking cmake with `-DLLDB_BUILD_FRAMEWORK=1` and `-DCMAKE_INSTALL_PREFIX=""`, followed by `DESTDIR=/tmp ninja install-lldb-argdumper`. It installed lldb-argdumper to /tmp/Library/Frameworks/LLDB.framework/Versions/A/Resources/lldb-argdumper https://

[Lldb-commits] [PATCH] D49282: [cmake] Add option to skip building lldb-server

2018-07-12 Thread Alex Langford via Phabricator via lldb-commits
xiaobai created this revision. xiaobai added reviewers: zturner, labath, sas. Herald added a subscriber: mgorny. There is currently a way to skip the debugserver build. See how the CMake variables SKIP_DEBUGSERVER and LLDB_CODESIGN_IDENTITY are used if you're interested in that. I'd like the opti

[Lldb-commits] [PATCH] D49282: [cmake] Add option to skip building lldb-server

2018-07-13 Thread Alex Langford via Phabricator via lldb-commits
xiaobai updated this revision to Diff 155459. xiaobai added a comment. Update unittest logic. https://reviews.llvm.org/D49282 Files: cmake/modules/LLDBConfig.cmake tools/CMakeLists.txt unittests/tools/CMakeLists.txt Index: unittests/tools/CMakeLists.txt =

[Lldb-commits] [PATCH] D49282: [cmake] Add option to skip building lldb-server

2018-07-16 Thread Alex Langford via Phabricator via lldb-commits
xiaobai added a comment. In https://reviews.llvm.org/D49282#1163517, @labath wrote: > I think this is fine (though the meaning of SKIP_LLDB_SERVER is subtly > different than SKIP_DEBUGSERVER), but while looking at this I got an idea for > a possible improvement. How is it subtly different? Ad

[Lldb-commits] [PATCH] D49038: [CMake] Give lldb tools functional install targets when building LLDB.framework

2018-07-16 Thread Alex Langford via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL337202: [CMake] Give lldb tools functional install targets when building LLDB.framework (authored by xiaobai, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://review

[Lldb-commits] [PATCH] D49282: [cmake] Add option to skip building lldb-server

2018-07-16 Thread Alex Langford via Phabricator via lldb-commits
xiaobai added a comment. In https://reviews.llvm.org/D49282#1164050, @labath wrote: > In https://reviews.llvm.org/D49282#1163853, @xiaobai wrote: > > > In https://reviews.llvm.org/D49282#1163517, @labath wrote: > > > > > I think this is fine (though the meaning of SKIP_LLDB_SERVER is subtly > >

[Lldb-commits] [PATCH] D49406: Invert dependency between lldb-framework and lldb-suite

2018-07-16 Thread Alex Langford via Phabricator via lldb-commits
xiaobai created this revision. xiaobai added reviewers: sas, labath. Herald added a subscriber: mgorny. Currently, if you build lldb-framework the entire framework doesn't actually build. In order to build the entire framework, you need to actually build lldb-suite. This abstraction doesn't feel q

[Lldb-commits] [PATCH] D49406: Invert dependency between lldb-framework and lldb-suite

2018-07-16 Thread Alex Langford via Phabricator via lldb-commits
xiaobai updated this revision to Diff 155790. xiaobai added a comment. Accidentally merged the contents of two commits into one. Removing the contents of one of the commits from this one. https://reviews.llvm.org/D49406 Files: CMakeLists.txt cmake/modules/LLDBFramework.cmake source/API/C

[Lldb-commits] [PATCH] D49406: Invert dependency between lldb-framework and lldb-suite

2018-07-17 Thread Alex Langford via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL337311: Invert dependency between lldb-framework and lldb-suite (authored by xiaobai, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://reviews.llvm.org/D49406 Files

[Lldb-commits] [PATCH] D49779: Make framework-header-fix process copied headers

2018-07-25 Thread Alex Langford via Phabricator via lldb-commits
xiaobai added a comment. If I understand correctly, this is putting the headers directly into the framework? That's a pretty good idea :D In https://reviews.llvm.org/D49779#1174659, @keith wrote: > It seems like if this was a common occurrence, it would've been fixed > earlier, so I'm wonderin

[Lldb-commits] [PATCH] D49779: Make framework-header-fix process copied headers

2018-07-26 Thread Alex Langford via Phabricator via lldb-commits
xiaobai requested changes to this revision. xiaobai added a comment. This revision now requires changes to proceed. I think this might actually not do what we want it to do. I've commented inline with my concerns. Comment at: cmake/modules/LLDBFramework.cmake:21 add_custom_

[Lldb-commits] [PATCH] D49779: Make framework-header-fix process copied headers

2018-07-26 Thread Alex Langford via Phabricator via lldb-commits
xiaobai added a comment. Looks good Comment at: cmake/modules/LLDBFramework.cmake:41 +add_custom_target(lldb-framework-headers + DEPENDS ${framework_headers} + COMMAND ${LLDB_SOURCE_DIR}/scripts/framework-header-fix.sh keith wrote: > xiaobai wrote: > > This s

[Lldb-commits] [PATCH] D49779: Make framework-header-fix process copied headers

2018-07-26 Thread Alex Langford via Phabricator via lldb-commits
xiaobai added inline comments. Comment at: cmake/modules/LLDBFramework.cmake:41 +add_custom_target(lldb-framework-headers + DEPENDS ${framework_headers} + COMMAND ${LLDB_SOURCE_DIR}/scripts/framework-header-fix.sh keith wrote: > xiaobai wrote: > > keith wrote:

[Lldb-commits] [PATCH] D49779: Make framework-header-fix process copied headers

2018-07-26 Thread Alex Langford via Phabricator via lldb-commits
xiaobai added inline comments. Comment at: cmake/modules/LLDBFramework.cmake:41 +add_custom_target(lldb-framework-headers + DEPENDS ${framework_headers} + COMMAND ${LLDB_SOURCE_DIR}/scripts/framework-header-fix.sh keith wrote: > xiaobai wrote: > > keith wrote:

[Lldb-commits] [PATCH] D49779: Make framework-header-fix process copied headers

2018-07-26 Thread Alex Langford via Phabricator via lldb-commits
xiaobai accepted this revision. xiaobai added a comment. This revision is now accepted and ready to land. Awesome! Thank you so much for your patience and contribution. :) Do you need somebody to commit this for you? https://reviews.llvm.org/D49779 ___

[Lldb-commits] [PATCH] D49779: Make framework-header-fix process copied headers

2018-07-26 Thread Alex Langford via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL338058: Make framework-header-fix process copied headers (authored by xiaobai, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://reviews.llvm.org/D49779 Files: lld

[Lldb-commits] [PATCH] D49888: Stop building liblldb with CMake's framework functionality

2018-07-26 Thread Alex Langford via Phabricator via lldb-commits
xiaobai created this revision. xiaobai added a reviewer: labath. Herald added a subscriber: mgorny. CMake has a bug in its ninja generator that prevents you from installing targets that are built with framework support. Therefore, I want to not rely on CMake's framework support. https://reviews

[Lldb-commits] [PATCH] D49888: Stop building liblldb with CMake's framework functionality

2018-07-26 Thread Alex Langford via Phabricator via lldb-commits
xiaobai added a comment. Tested this by invoking cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Debug -DLLDB_BUILD_FRAMEWORK=1 && ninja lldb The resulting framework appears to be the same as before. https://reviews.llvm.org/D49888 ___ lldb-commits mailin

[Lldb-commits] [PATCH] D49888: Stop building liblldb with CMake's framework functionality

2018-07-27 Thread Alex Langford via Phabricator via lldb-commits
xiaobai added a comment. In https://reviews.llvm.org/D49888#1177929, @labath wrote: > Can't say I fully understand what's going on, but the changes seem reasonable > to me. Let me know if I can clear anything up. > If there is some public cmake bug describing the issue you ran into, it would

[Lldb-commits] [PATCH] D49888: Stop building liblldb with CMake's framework functionality

2018-07-27 Thread Alex Langford via Phabricator via lldb-commits
xiaobai updated this revision to Diff 157713. xiaobai added a comment. Add comment pointing to CMake bug report https://reviews.llvm.org/D49888 Files: CMakeLists.txt cmake/modules/AddLLDB.cmake cmake/modules/LLDBConfig.cmake cmake/modules/LLDBFramework.cmake scripts/CMakeLists.txt s

[Lldb-commits] [PATCH] D49888: Stop building liblldb with CMake's framework functionality

2018-07-27 Thread Alex Langford via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL338154: Stop building liblldb with CMake's framework functionality (authored by xiaobai, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://reviews.llvm.org/D49888 Fi

[Lldb-commits] [PATCH] D50038: Introduce install-lldb-framework target

2018-07-30 Thread Alex Langford via Phabricator via lldb-commits
xiaobai created this revision. xiaobai added reviewers: labath, sas. Herald added a subscriber: mgorny. Previously, I thought that install-liblldb would fail because CMake had a bug related to installing frameworks. In actuality, I misunderstood the semantics of `add_custom_target`: the DEPENDS op

[Lldb-commits] [PATCH] D50038: Introduce install-lldb-framework target

2018-07-30 Thread Alex Langford via Phabricator via lldb-commits
xiaobai added a comment. Using this patch, I was able to build the lldb framework and install it. I configured with: cmake .. -G Ninja -DCMAKE_BUILD_TYPE=Release -DLLDB_CODESIGN_IDENTITY="" -DLLDB_BUILD_FRAMEWORK=1 -DLLDB_USE_SYSTEM_SIX=1 -DCMAKE_INSTALL_PREFIX="" -DLLVM_TARGETS_TO_BUILD="X8

[Lldb-commits] [PATCH] D50038: Introduce install-lldb-framework target

2018-07-31 Thread Alex Langford via Phabricator via lldb-commits
xiaobai added a comment. In https://reviews.llvm.org/D50038#1181817, @labath wrote: > I am glad filing the cmake bug has paid off. :) Same! :) Comment at: cmake/modules/AddLLDB.cmake:81-87 + # install-liblldb{,-stripped} is the actual target that will install the + # frame

[Lldb-commits] [PATCH] D50038: Introduce install-lldb-framework target

2018-07-31 Thread Alex Langford via Phabricator via lldb-commits
xiaobai updated this revision to Diff 158329. xiaobai added a comment. Address comments https://reviews.llvm.org/D50038 Files: CMakeLists.txt cmake/modules/AddLLDB.cmake cmake/modules/LLDBFramework.cmake source/API/CMakeLists.txt Index: source/API/CMakeLists.txt ===

[Lldb-commits] [PATCH] D50038: Introduce install-lldb-framework target

2018-08-01 Thread Alex Langford via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL338594: Introduce install-lldb-framework target (authored by xiaobai, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://reviews.llvm.org/D50038 Files: lldb/trunk/C

[Lldb-commits] [PATCH] D50038: Introduce install-lldb-framework target

2018-08-01 Thread Alex Langford via Phabricator via lldb-commits
xiaobai added a comment. In https://reviews.llvm.org/D50038#1184445, @clayborg wrote: > Might be nice to put a blurb in the build page about this in the MacOS > section? Yep, I think that wouldn't be a bad idea. I can handle that in a separate commit. Might be nice for one of the buildbots to

[Lldb-commits] [PATCH] D50362: Add instructions for building LLDB on Mac OS X with CMake

2018-08-06 Thread Alex Langford via Phabricator via lldb-commits
xiaobai updated this revision to Diff 159400. xiaobai added a comment. Reducing redundancy and changing some wording around. https://reviews.llvm.org/D50362 Files: www/build.html Index: www/build.html === --- www/build.html +++

[Lldb-commits] [PATCH] D50365: Add a new tool named "lldb-vscode" that implements the Visual Studio Code Debug Adaptor Protocol

2018-08-06 Thread Alex Langford via Phabricator via lldb-commits
xiaobai added a comment. Can't speak much to the contents yet (Haven't done a thorough pass yet) but it looks like there's a lot of dead code you might want to remove. I commented on a few of them but there is probably more. Comment at: packages/Python/lldbsuite/test/tools/l

[Lldb-commits] [PATCH] D50384: Move Predicate.h from Host to Utility

2018-08-07 Thread Alex Langford via Phabricator via lldb-commits
xiaobai added a comment. Hurray for more layering improvements! It looks like Raphael recently committed a modulemap for compiling the LLDB headers into C++ modules (`include/lldb/module.modulemap`) that has a reference to Predicate.h in in Host. You should probably modify that as well. https

[Lldb-commits] [PATCH] D50362: Add instructions for building LLDB on Mac OS X with CMake

2018-08-07 Thread Alex Langford via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rLLDB339155: Add instructions for building LLDB on Mac OS X with CMake (authored by xiaobai, committed by ). Changed prior to commit: https://reviews.llvm.org/D50362?vs=159400&id=159540#toc Repository:

[Lldb-commits] [PATCH] D49282: [cmake] Add option to skip building lldb-server

2018-08-23 Thread Alex Langford via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL340560: [cmake] Add option to skip building lldb-server (authored by xiaobai, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/D49282?vs=155459&

[Lldb-commits] [PATCH] D51374: [LLDB] Fix script to work with GNU sed

2018-08-28 Thread Alex Langford via Phabricator via lldb-commits
xiaobai accepted this revision. xiaobai added a comment. Regardless of compatibility, the man page for sed on OSX recommends not having a zero length extension while editing the file in place. LGTM. https://reviews.llvm.org/D51374 ___ lldb-commits

[Lldb-commits] [PATCH] D51959: Add compatability version to liblldb in framework builds

2018-09-11 Thread Alex Langford via Phabricator via lldb-commits
xiaobai created this revision. xiaobai added reviewers: clayborg, labath. Herald added a subscriber: mgorny. Building LLDB with xcodebuild sets the compatability version of liblldb in LLDB.framework. Building the framework with cmake does not set the compatability version, and so it defaults to 0.

[Lldb-commits] [PATCH] D51959: Add compatability version to liblldb in framework builds

2018-09-12 Thread Alex Langford via Phabricator via lldb-commits
xiaobai updated this revision to Diff 165126. xiaobai added a comment. Fix typo (Thanks for the catch!) https://reviews.llvm.org/D51959 Files: source/API/CMakeLists.txt Index: source/API/CMakeLists.txt === --- source/API/CMakeL

[Lldb-commits] [PATCH] D51959: Add compatability version to liblldb in framework builds

2018-09-12 Thread Alex Langford via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL342066: Add compatibility version to liblldb in framework builds (authored by xiaobai, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://reviews.llvm.org/D51959 File

[Lldb-commits] [PATCH] D40869: Optimize fake ELF section lookup while parsing symbols in ObjectFileELF

2017-12-05 Thread Alex Langford via Phabricator via lldb-commits
xiaobai created this revision. Herald added a subscriber: emaste. I recently ran into a shared object that had a reasonably large number of absolute symbols. Parsing all the symbols in the shared object took an unusually long amount of time, so I looked into it and found that when we created fake

[Lldb-commits] [PATCH] D42264: Update lldb architecture doc

2018-01-18 Thread Alex Langford via Phabricator via lldb-commits
xiaobai created this revision. xiaobai added reviewers: labath, zturner, jingham. ArchSpec was moved from Core to Utility, so I modified the docs to reflect that. https://reviews.llvm.org/D42264 Files: www/architecture/index.html Index: www/architecture/index.html ==

[Lldb-commits] [PATCH] D42264: Update lldb architecture doc

2018-01-18 Thread Alex Langford via Phabricator via lldb-commits
xiaobai added a comment. I don't have commit rights, so I need somebody to commit for me. If you can do that, that'd be great! :) https://reviews.llvm.org/D42264 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bi

[Lldb-commits] [PATCH] D42264: Update lldb architecture doc

2018-01-24 Thread Alex Langford via Phabricator via lldb-commits
xiaobai closed this revision. xiaobai added a subscriber: compnerd. xiaobai added a comment. @compnerd committed this for me! r323363 https://reviews.llvm.org/D42264 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi

[Lldb-commits] [PATCH] D42763: Build each testcase variant in its own subdirectory and remove the srcdir lock file

2018-01-31 Thread Alex Langford via Phabricator via lldb-commits
xiaobai added inline comments. Comment at: packages/Python/lldbsuite/test/functionalities/breakpoint/comp_dir_symlink/TestCompDirSymLink.py:39-40 (_COMP_DIR_SYM_LINK_PROP, pwd_symlink)) -lldbutil.run_break_set_by_file_and_line(self, self.src_path, self.line)

[Lldb-commits] [PATCH] D39307: Fix global data symbol resolution

2018-01-31 Thread Alex Langford via Phabricator via lldb-commits
xiaobai abandoned this revision. xiaobai added a comment. It's clear this is not the way forward. The problem I am trying to solve should be attacked differently. Thanks everyone for your input! https://reviews.llvm.org/D39307 ___ lldb-commits mail

[Lldb-commits] [PATCH] D42763: Build each testcase variant in its own subdirectory and remove the srcdir lock file

2018-01-31 Thread Alex Langford via Phabricator via lldb-commits
xiaobai added a comment. Oh, FWIW I tested this on Linux (specifically CentOS) and the test result summary showed no difference in Success/Failure rate. https://reviews.llvm.org/D42763 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http:

[Lldb-commits] [PATCH] D39967: Disable breakpoints before writing memory and re-enable after.

2018-02-22 Thread Alex Langford via Phabricator via lldb-commits
xiaobai added inline comments. Comment at: source/Breakpoint/BreakpointSiteList.cpp:191 if (lower != m_bp_site_list.begin()) { -collection::const_iterator prev_pos = lower; -prev_pos--; +auto prev_pos = std::prev(lower); const BreakpointSiteSP &prev_bp = (*pre

[Lldb-commits] [PATCH] D39967: Disable breakpoints before writing memory and re-enable after.

2018-02-22 Thread Alex Langford via Phabricator via lldb-commits
xiaobai added inline comments. Comment at: source/Breakpoint/BreakpointSiteList.cpp:191 if (lower != m_bp_site_list.begin()) { -collection::const_iterator prev_pos = lower; -prev_pos--; +auto prev_pos = std::prev(lower); const BreakpointSiteSP &prev_bp = (*pre

  1   2   3   4   5   6   7   8   9   10   >