[Lldb-commits] [PATCH] D54452: [NativePDB] Add support for handling S_CONSTANT records

2018-11-13 Thread Aleksandr Urakov via Phabricator via lldb-commits
aleksandr.urakov added a comment. LGTM too, thanks! https://reviews.llvm.org/D54452 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [PATCH] D54443: [CMake] Accept ENTITLEMENTS in add_llvm_executable and llvm_codesign

2018-11-13 Thread Stefan Gränitz via Phabricator via lldb-commits
sgraenitz added inline comments. Comment at: cmake/modules/AddLLVM.cmake:795 - llvm_codesign(${name}) + llvm_codesign(TARGET ${name} ENTITLEMENTS ${ARG_ENTITLEMENTS} FORCE) endmacro(add_llvm_executable name) beanz wrote: > sgraenitz wrote: > > Would we want

[Lldb-commits] [PATCH] D54444: [CMake] Use extended llvm_codesign to pass entitlements for lldb-server

2018-11-13 Thread Stefan Gränitz via Phabricator via lldb-commits
sgraenitz added inline comments. Comment at: tools/lldb-server/CMakeLists.txt:50 + if(LLDB_USE_ENTITLEMENTS AND NOT IOS) +# Same entitlements file as used for lldb-server +set(entitlements ${LLDB_SOURCE_DIR}/resources/debugserver-macosx-entitlements.plist) -

[Lldb-commits] [PATCH] D54444: [CMake] Use extended llvm_codesign to pass entitlements for lldb-server

2018-11-13 Thread Stefan Gränitz via Phabricator via lldb-commits
sgraenitz updated this revision to Diff 173849. sgraenitz added a comment. unset not necessary, fix comment, globally set LLVM_CODESIGNING_IDENTITY from LLDB_CODESIGN_IDENTITY https://reviews.llvm.org/D5 Files: CMakeLists.txt cmake/modules/AddLLDB.cmake tools/lldb-server/CMakeLists.t

[Lldb-commits] [PATCH] D54443: [CMake] Accept ENTITLEMENTS in add_llvm_executable and llvm_codesign

2018-11-13 Thread Stefan Gränitz via Phabricator via lldb-commits
sgraenitz updated this revision to Diff 173851. sgraenitz added a comment. Remove FORCE parameter from llvm_codesign and instead add global option LLVM_CODESIGNING_FORCE Repository: rL LLVM https://reviews.llvm.org/D54443 Files: CMakeLists.txt cmake/modules/AddLLVM.cmake Index: cmake/

[Lldb-commits] [PATCH] D54443: [CMake] Accept ENTITLEMENTS in add_llvm_executable and llvm_codesign

2018-11-13 Thread Stefan Gränitz via Phabricator via lldb-commits
sgraenitz added inline comments. Comment at: CMakeLists.txt:403 +set(LLVM_CODESIGNING_IDENTITY "" CACHE STRING + "Sign executables and dylibs with the given identity or skip if empty (Darwin Only)") + Identity should be a string right? Commen

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

2018-11-13 Thread Stefan Gränitz via Phabricator via lldb-commits
sgraenitz created this revision. sgraenitz added reviewers: xiaobai, beanz, vsk, JDevlieghere. Herald added a subscriber: mgorny. Use llvm_codesign to sign debugserver with entitlements. Make individual cases more explicit: - default: build debugserver and sign with entitlements - LLDB_NO_DEBUGS

[Lldb-commits] [PATCH] D54352: [CMake] Explicit lldb_codesign function with application in debugserver and lldb-server

2018-11-13 Thread Stefan Gränitz via Phabricator via lldb-commits
sgraenitz abandoned this revision. sgraenitz added a comment. Finally, debugserver with llvm_codesign: https://reviews.llvm.org/D54476 https://reviews.llvm.org/D54352 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cg

[Lldb-commits] [PATCH] D54452: [NativePDB] Add support for handling S_CONSTANT records

2018-11-13 Thread Shafik Yaghmour via Phabricator via lldb-commits
shafik added inline comments. Comment at: lldb/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.cpp:329 +std::pair GetIntegralTypeInfo(TypeIndex ti, TpiStream &tpi) { + if (ti.isSimple()) { lemo wrote: > Just a suggestion: I'm not a big fan of returning

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

2018-11-13 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere added inline comments. Comment at: tools/debugserver/source/CMakeLists.txt:101 +option(LLDB_NO_DEBUGSERVER "Delete debugserver after building it, and don't try to codesign it" OFF) +option(LLDB_USE_SYSTEM_DEBUGSERVER "Neither build nor codesign debugserver. Use the

[Lldb-commits] [lldb] r346775 - Since ABI's now hold a process WP, they should be handed

2018-11-13 Thread Jim Ingham via lldb-commits
Author: jingham Date: Tue Nov 13 10:18:32 2018 New Revision: 346775 URL: http://llvm.org/viewvc/llvm-project?rev=346775&view=rev Log: Since ABI's now hold a process WP, they should be handed out one per process rather than keeping a single global instance. Differential Revision: https://reviews.l

[Lldb-commits] [PATCH] D54460: Don't keep a global ABI plugin per architecture

2018-11-13 Thread Jim Ingham via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL346775: Since ABI's now hold a process WP, they should be handed (authored by jingham, committed by ). Herald added subscribers: llvm-commits, jrtc27. Changed prior to commit: https://reviews.llvm.org/D

[Lldb-commits] [PATCH] D54460: Don't keep a global ABI plugin per architecture

2018-11-13 Thread Jim Ingham via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rLLDB346775: Since ABI's now hold a process WP, they should be handed (authored by jingham, committed by ). Repository: rLLDB LLDB https://reviews.llvm.org/D54460 Files: source/Plugins/ABI/MacOSX-arm/

[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] [lldb] r346780 - Add GDB remote packet reproducer.

2018-11-13 Thread Jonas Devlieghere via lldb-commits
Author: jdevlieghere Date: Tue Nov 13 11:18:16 2018 New Revision: 346780 URL: http://llvm.org/viewvc/llvm-project?rev=346780&view=rev Log: Add GDB remote packet reproducer. Added: lldb/trunk/include/lldb/Utility/Reproducer.h lldb/trunk/packages/Python/lldbsuite/test/functionalities/reprod

[Lldb-commits] [PATCH] D54460: Don't keep a global ABI plugin per architecture

2018-11-13 Thread Jim Ingham via Phabricator via lldb-commits
jingham added a comment. Okay, I think I'll keep what Jason did and just make them per-process. As Greg said, they are very cheap to make, since they just take a Process SP and get the weak pointer from it. None of them have any other state. Repository: rLLDB LLDB https://reviews.llvm.org

[Lldb-commits] [lldb] r346783 - [Cocoa] Implement formatter for the new NSDate representation.

2018-11-13 Thread Davide Italiano via lldb-commits
Author: davide Date: Tue Nov 13 11:43:43 2018 New Revision: 346783 URL: http://llvm.org/viewvc/llvm-project?rev=346783&view=rev Log: [Cocoa] Implement formatter for the new NSDate representation. Modified: lldb/trunk/source/Plugins/Language/ObjC/Cocoa.cpp Modified: lldb/trunk/source/Plugin

[Lldb-commits] [PATCH] D54460: Don't keep a global ABI plugin per architecture

2018-11-13 Thread Jim Ingham via Phabricator via lldb-commits
jingham added a comment. As for testing, Jason was careful to use a WP, so nothing crashes. The process's SP doesn't resolve and then you get the default setting of any process specific setting that uses the ABI. Since there aren't any of those yet - this currently has no observable consequen

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

2018-11-13 Thread Stefan Gränitz via Phabricator via lldb-commits
sgraenitz added inline comments. Comment at: tools/debugserver/source/CMakeLists.txt:101 +option(LLDB_NO_DEBUGSERVER "Delete debugserver after building it, and don't try to codesign it" OFF) +option(LLDB_USE_SYSTEM_DEBUGSERVER "Neither build nor codesign debugserver. Use the sy

[Lldb-commits] [lldb] r346787 - [NativePDB] Add support for S_CONSTANT records.

2018-11-13 Thread Zachary Turner via lldb-commits
Author: zturner Date: Tue Nov 13 12:07:57 2018 New Revision: 346787 URL: http://llvm.org/viewvc/llvm-project?rev=346787&view=rev Log: [NativePDB] Add support for S_CONSTANT records. clang-cl does not emit these, but MSVC does, so we need to be able to handle them. Because clang-cl does not gener

[Lldb-commits] [lldb] r346786 - [NativePDB] Improved support for nested type reconstruction.

2018-11-13 Thread Zachary Turner via lldb-commits
Author: zturner Date: Tue Nov 13 12:07:32 2018 New Revision: 346786 URL: http://llvm.org/viewvc/llvm-project?rev=346786&view=rev Log: [NativePDB] Improved support for nested type reconstruction. In a previous patch, we pre-processed the TPI stream in order to build the reverse mapping from nested

[Lldb-commits] [PATCH] D54357: [NativePDB] Improved support for nested type reconstruction

2018-11-13 Thread Zachary Turner via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL346786: [NativePDB] Improved support for nested type reconstruction. (authored by zturner, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/D543

[Lldb-commits] [PATCH] D54452: [NativePDB] Add support for handling S_CONSTANT records

2018-11-13 Thread Zachary Turner via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL346787: [NativePDB] Add support for S_CONSTANT records. (authored by zturner, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/D54452?vs=173775&

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

2018-11-13 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere added inline comments. Comment at: tools/debugserver/source/CMakeLists.txt:118 + OUTPUT_VARIABLE xcode_dev_dir) +string(STRIP ${xcode_dev_dir} xcode_dev_dir) + sgraenitz wrote: > JDevlieghere wrote: > > Why did you make this variable name lo

[Lldb-commits] [PATCH] D52543: [DWARFSymbolFile] Add the module lock where necessary and assert that we own it.

2018-11-13 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere added a comment. I think we can close this after https://reviews.llvm.org/rL344945? Repository: rLLDB LLDB https://reviews.llvm.org/D52543 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailma

[Lldb-commits] [PATCH] D54443: [CMake] Accept ENTITLEMENTS in add_llvm_executable and llvm_codesign

2018-11-13 Thread Chris Bieneman via Phabricator via lldb-commits
beanz added inline comments. Comment at: CMakeLists.txt:403 +set(LLVM_CODESIGNING_IDENTITY "" CACHE STRING + "Sign executables and dylibs with the given identity or skip if empty (Darwin Only)") + sgraenitz wrote: > Identity should be a string right? Yep, makes

Re: [Lldb-commits] [PATCH] D54009: Refactor LLDB lit configuration files

2018-11-13 Thread Zachary Turner via lldb-commits
I think it must be related to setting up the environment in which to run clang. In all other projects we call llvm_config.use_clang() which is in llvm/utils/lit/lit/llvm/config.py, but because here we have an exact path of a clang we are trying to use, we skip this function in LLDB's lit configura

[Lldb-commits] [PATCH] D54009: Refactor LLDB lit configuration files

2018-11-13 Thread Zachary Turner via Phabricator via lldb-commits
zturner added a comment. I think it must be related to setting up the environment in which to run clang. In all other projects we call llvm_config.use_clang() which is in llvm/utils/lit/lit/llvm/config.py, but because here we have an exact path of a clang we are trying to use, we skip this functi

[Lldb-commits] [PATCH] D52543: [DWARFSymbolFile] Add the module lock where necessary and assert that we own it.

2018-11-13 Thread Greg Clayton via Phabricator via lldb-commits
clayborg added a comment. yep Repository: rLLDB LLDB https://reviews.llvm.org/D52543 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] r346812 - Fix a bug in the parsing of the LC_BUILD_VERSION Mach-O load command.

2018-11-13 Thread Adrian Prantl via lldb-commits
Author: adrian Date: Tue Nov 13 15:14:37 2018 New Revision: 346812 URL: http://llvm.org/viewvc/llvm-project?rev=346812&view=rev Log: Fix a bug in the parsing of the LC_BUILD_VERSION Mach-O load command. LC_BUILD_VERSION records are of variable length. The original code would use uninitialized mem

Re: [Lldb-commits] [PATCH] D54009: Refactor LLDB lit configuration files

2018-11-13 Thread Stella Stamenova via lldb-commits
I took a brief look and I have a question about the usage of clang (rather than clang-cl). In general I would agree that we have an exact path of clang (or gcc) that we are trying to use and they’re specified by using %cc and %cxx in the test files, but there are a number of test files that sim

Re: [Lldb-commits] [lldb] r346812 - Fix a bug in the parsing of the LC_BUILD_VERSION Mach-O load command.

2018-11-13 Thread Davide Italiano via lldb-commits
Thanks! On Tue, Nov 13, 2018 at 3:17 PM Adrian Prantl via lldb-commits wrote: > > Author: adrian > Date: Tue Nov 13 15:14:37 2018 > New Revision: 346812 > > URL: http://llvm.org/viewvc/llvm-project?rev=346812&view=rev > Log: > Fix a bug in the parsing of the LC_BUILD_VERSION Mach-O load command. >

Re: [Lldb-commits] [PATCH] D54009: Refactor LLDB lit configuration files

2018-11-13 Thread Zachary Turner via lldb-commits
I believe that is correct, and perhaps part of the problem. In other projects we call llvm_config.use_clang(), and that actually explicitly creates a substitution so that if someone writes "clang" they'll get an error that says "use %clang instead". Because we have the exact path, that isn't happ

Re: [Lldb-commits] [PATCH] D54009: Refactor LLDB lit configuration files

2018-11-13 Thread Stella Stamenova via lldb-commits
I am not sure if that’s the right solution for a couple of reasons: 1. As far as I can tell only clang calls use_clang (and only lld calls use_lld), while the other projects such as lld and llvm rely on the environment to be setup correctly 2. Lld also has tests that invoke clang-cl and th

Re: [Lldb-commits] [PATCH] D54009: Refactor LLDB lit configuration files

2018-11-13 Thread Stella Stamenova via lldb-commits
Actually, I take 2) back. Lld doesn’t call use_clang, but it only references clang-cl, it doesn’t expect it to execute. From: Stella Stamenova Sent: Tuesday, November 13, 2018 3:47 PM To: 'Zachary Turner' Cc: reviews+d54009+public+0e164460da8f1...@reviews.llvm.org; pa...@labath.sk; chris.biene.

Re: [Lldb-commits] [PATCH] D54009: Refactor LLDB lit configuration files

2018-11-13 Thread Zachary Turner via lldb-commits
On Tue, Nov 13, 2018 at 3:47 PM Stella Stamenova wrote: > I am not sure if that’s the right solution for a couple of reasons: > >1. As far as I can tell only clang calls use_clang (and only lld calls >use_lld), while the other projects such as lld and llvm rely on the >environment to

Re: [Lldb-commits] [PATCH] D54009: Refactor LLDB lit configuration files

2018-11-13 Thread Zachary Turner via lldb-commits
Ok so for dotest, it seems to be ignoring the config.cc and config.cxx entirely. So we can theoretically do whatever we want with it, or change around the directory structure so that it's more like: lldb * lit * * Dotest * * Unit * * Tests and put the config.cc / config.cxx logic under Tests. T

Re: [Lldb-commits] [PATCH] D54009: Refactor LLDB lit configuration files

2018-11-13 Thread Stella Stamenova via lldb-commits
The plan for the lit tests sounds reasonable to me. I would also remove LLDB_TEST_C/CXX_COMPILER entirely so that we can reduce confusion since they’re only used for the lit tests, right? My only concern is that I’ve been told that there are people who will build lldb with a different compiler

Re: [Lldb-commits] [PATCH] D54009: Refactor LLDB lit configuration files

2018-11-13 Thread Zachary Turner via lldb-commits
use_clang() already will fall back on searching the environment variable 'CLANG' to find a path to it. self.config.clang = self.use_llvm_tool( 'clang', search_env='CLANG', required=required) But we could make this environment variable a parameter to use_clang() if we wanted to