[Lldb-commits] [lldb] r335014 - Fix up Info.plist when building LLDB.framework with CMake

2018-06-18 Thread Alex Langford via lldb-commits
Author: xiaobai Date: Mon Jun 18 19:59:30 2018 New Revision: 335014 URL: http://llvm.org/viewvc/llvm-project?rev=335014&view=rev Log: Fix up Info.plist when building LLDB.framework with CMake Summary: We weren't using the Info.plist template in resources previously. When using that template, some

[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] 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] D48303: Don't take the address of an xvalue when printing an expr result

2018-06-18 Thread Raphael Isemann via Phabricator via lldb-commits
teemperor updated this revision to Diff 151828. teemperor added a comment. - Removed now unnecessary brackets. https://reviews.llvm.org/D48303 Files: packages/Python/lldbsuite/test/expression_command/xvalue/Makefile packages/Python/lldbsuite/test/expression_command/xvalue/TestXValuePrinting

[Lldb-commits] [PATCH] D48303: Don't take the address of an xvalue when printing an expr result

2018-06-18 Thread Raphael Isemann via Phabricator via lldb-commits
teemperor updated this revision to Diff 151827. teemperor added a comment. - Added test case https://reviews.llvm.org/D48303 Files: packages/Python/lldbsuite/test/expression_command/xvalue/Makefile packages/Python/lldbsuite/test/expression_command/xvalue/TestXValuePrinting.py packages/Pyt

[Lldb-commits] [PATCH] D48303: Don't take the address of an xvalue when printing an expr result

2018-06-18 Thread Raphael Isemann via Phabricator via lldb-commits
teemperor planned changes to this revision. teemperor added a comment. - Needs a test https://reviews.llvm.org/D48303 ___ 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 Greg Clayton via Phabricator via lldb-commits
clayborg accepted this revision. clayborg added a comment. Looks good to me as long as Xcode still produces the same Info.plist in its LLDB.framework after your changes. https://reviews.llvm.org/D47792 ___ lldb-commits mailing list lldb-commits@lis

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

2018-06-18 Thread Stephane Sezer via Phabricator via lldb-commits
sas accepted this revision. sas added a comment. This revision is now accepted and ready to land. LGTM for now. https://reviews.llvm.org/D47792 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/

[Lldb-commits] [PATCH] D48303: Don't take the address of an xvalue when printing an expr result

2018-06-18 Thread Raphael Isemann via Phabricator via lldb-commits
teemperor created this revision. If we have an xvalue here, we will always hit the `err_typecheck_invalid_lvalue_addrof` error in 'Sema::CheckAddressOfOperand' when trying to take the address of the result. This patch uses the fallback code path where we store the result in a local variable ins

[Lldb-commits] [lldb] r334995 - Some NFC changes to how we scan of kexts & kernels in memory in the

2018-06-18 Thread Jason Molenda via lldb-commits
Author: jmolenda Date: Mon Jun 18 16:30:03 2018 New Revision: 334995 URL: http://llvm.org/viewvc/llvm-project?rev=334995&view=rev Log: Some NFC changes to how we scan of kexts & kernels in memory in the DynamicLoaderDarwinKernel plugin. Created a new function ReadMachHeader and instead of reading

[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] D48295: [WIP] Implement new ReturnMIStatus method of CMICmdBase class.

2018-06-18 Thread Adrian Prantl via Phabricator via lldb-commits
aprantl added a comment. That sounds like a good overall direction, though I probably wouldn't communicate the function pointers via member variables but rather prefer them to be passed as function arguments or return values. This makes the flow a little more obvious for readers. https://revi

[Lldb-commits] [PATCH] D48302: Search for kext variants is searching from parent directory when it should not be

2018-06-18 Thread Jason Molenda via Phabricator via lldb-commits
jasonmolenda created this revision. jasonmolenda added a reviewer: JDevlieghere. Herald added a subscriber: llvm-commits. There's a small perf issue after the changes to r334205; the patch is intended to search all the executables in a kext bundle to discover variants, e.g. /System/Library/Exten

[Lldb-commits] [PATCH] D48295: [WIP] Implement new ReturnMIStatus method of CMICmdBase class.

2018-06-18 Thread Alexander Polyakov via Phabricator via lldb-commits
apolyakov added a comment. SuccessHandler and ErrorHandler will be a member variables of CMICmdBase. https://reviews.llvm.org/D48295 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commit

[Lldb-commits] [PATCH] D48295: [WIP] Implement new ReturnMIStatus method of CMICmdBase class.

2018-06-18 Thread Alexander Polyakov via Phabricator via lldb-commits
apolyakov added a comment. Sure. For example we may look at `bool CMICmdCmdExecContinue::Execute()`, there we may see following code: if (error.Success()) { // CODETAG_DEBUG_SESSION_RUNNING_PROG_RECEIVED_SIGINT_PAUSE_PROGRAM if (!CMIDriver::Instance().SetDriverStateRunningDebugging

[Lldb-commits] [PATCH] D48295: [WIP] Implement new ReturnMIStatus method of CMICmdBase class.

2018-06-18 Thread Adrian Prantl via Phabricator via lldb-commits
aprantl added a comment. Can you post a more concrete example? I think this sounds like a good idea. https://reviews.llvm.org/D48295 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commit

[Lldb-commits] [PATCH] D48295: [WIP] Implement new ReturnMIStatus method of CMICmdBase class.

2018-06-18 Thread Alexander Polyakov via Phabricator via lldb-commits
apolyakov added a comment. I got an idea how to deal with different number of parameters: what if we suggest to user to create own lambda functions(where he can specify needed actions) without parameters, but with capturing required variables by reference or by value? `auto f = [&x1, &x2...]{do

[Lldb-commits] [PATCH] D48295: [WIP] Implement new ReturnMIStatus method of CMICmdBase class.

2018-06-18 Thread Adrian Prantl via Phabricator via lldb-commits
aprantl added inline comments. Comment at: tools/lldb-mi/MICmdBase.cpp:221 +// Args:error - (R) Error description object. +// Return: None. +// Throws: None. apolyakov wrote: > aprantl wrote: > > It returns a bool, right? > > > > At some point it sure woul

[Lldb-commits] [PATCH] D48295: [WIP] Implement new ReturnMIStatus method of CMICmdBase class.

2018-06-18 Thread Alexander Polyakov via Phabricator via lldb-commits
apolyakov added inline comments. Comment at: tools/lldb-mi/MICmdBase.cpp:221 +// Args:error - (R) Error description object. +// Return: None. +// Throws: None. aprantl wrote: > It returns a bool, right? > > At some point it sure would be nice if we could c

[Lldb-commits] [PATCH] D48295: [WIP] Implement new ReturnMIStatus method of CMICmdBase class.

2018-06-18 Thread Adrian Prantl via Phabricator via lldb-commits
aprantl added a comment. > Also, I've been thinking about another approach with having a method in > CMICmdBase that takes two parameters: pointers to a functions in which user > could specify needed actions. But the main problem is that we don't have a > knowledge about these functions, they m

[Lldb-commits] [PATCH] D48295: [WIP] Implement new ReturnMIStatus method of CMICmdBase class.

2018-06-18 Thread Adrian Prantl via Phabricator via lldb-commits
aprantl accepted this revision. aprantl added inline comments. This revision is now accepted and ready to land. Comment at: tools/lldb-mi/MICmdBase.cpp:221 +// Args:error - (R) Error description object. +// Return: None. +// Throws: None. It returns a bool,

[Lldb-commits] [PATCH] D48295: [WIP] Implement new ReturnMIStatus method of CMICmdBase class.

2018-06-18 Thread Alexander Polyakov via Phabricator via lldb-commits
apolyakov added a comment. This approach is quite simple and can be used in `-exec-...`, `-target-...` and future commands. Also, I've been thinking about another approach with having a method in CMICmdBase that takes two parameters: pointers to a functions in which user could specify needed

[Lldb-commits] [lldb] r334978 - Fixed file completion for paths that start with '~'.

2018-06-18 Thread Raphael Isemann via lldb-commits
Author: teemperor Date: Mon Jun 18 13:11:38 2018 New Revision: 334978 URL: http://llvm.org/viewvc/llvm-project?rev=334978&view=rev Log: Fixed file completion for paths that start with '~'. We didn't add the remaining path behind the '~' to the completion string, causing it to just complete direct

[Lldb-commits] [PATCH] D48295: [WIP] Implement new ReturnMIStatus method of CMICmdBase class.

2018-06-18 Thread Alexander Polyakov via Phabricator via lldb-commits
apolyakov created this revision. apolyakov added reviewers: aprantl, clayborg, labath. Herald added a subscriber: ki.stfu. The new method takes one parameter of type SBError and, if it has an error, sets error message and returns MIstatus::failure, returns MIstatus::success otherwise. https://r

[Lldb-commits] [PATCH] D47991: Improve SBThread's stepping API using SBError parameter.

2018-06-18 Thread Alexander Polyakov via Phabricator via lldb-commits
apolyakov updated this revision to Diff 151773. apolyakov edited the summary of this revision. apolyakov added a comment. I removed comments about optional arguments since I didn't find any info about it in LLVM coding style. https://reviews.llvm.org/D47991 Files: include/lldb/API/SBThread.h

[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] 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] [lldb] r334968 - Introduce lldb-framework CMake target and centralize its logic

2018-06-18 Thread Alex Langford via lldb-commits
Author: xiaobai Date: Mon Jun 18 11:27:16 2018 New Revision: 334968 URL: http://llvm.org/viewvc/llvm-project?rev=334968&view=rev Log: Introduce lldb-framework CMake target and centralize its logic Summary: In this patch I aim to do the following: 1) Create an lldb-framework target that acts as t

[Lldb-commits] [PATCH] D48272: Replace HostInfo::GetLLDBPath with specific functions

2018-06-18 Thread Greg Clayton via Phabricator via lldb-commits
clayborg accepted this revision. clayborg added a comment. This revision is now accepted and ready to land. Looks good. My only question is do we not require people to only fill in the directory portion of the FileSpec anymore for these functions? I am fine with way since hopefully FileSpec::App

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

2018-06-18 Thread Greg Clayton via Phabricator via lldb-commits
clayborg added a comment. Indeed!!! So happy to see this work getting done. Great stuff. Will be great to not have to maintain the Xcode project as some point in the near future. https://reviews.llvm.org/D48060 ___ lldb-commits mailing list lldb-co

[Lldb-commits] [PATCH] D47992: [lldb-mi] Correct error processing in exec-next command.

2018-06-18 Thread Greg Clayton via Phabricator via lldb-commits
clayborg added a comment. In https://reviews.llvm.org/D47992#1134120, @apolyakov wrote: > If you look at `bool CMICmdCmdExecContinue::Execute()`, you'll see that there > are cases in which we need a flexible way to finish MI command(specific > action in error case for example). We have a few op

[Lldb-commits] [lldb] r334955 - Fix macosx build broken by the VersionTuple refactor

2018-06-18 Thread Pavel Labath via lldb-commits
Author: labath Date: Mon Jun 18 09:10:20 2018 New Revision: 334955 URL: http://llvm.org/viewvc/llvm-project?rev=334955&view=rev Log: Fix macosx build broken by the VersionTuple refactor I actually did check that macos builds before committing, but this error was in conditionally compiled code tha

[Lldb-commits] [lldb] r334953 - Fix netbsd build broken by r334950

2018-06-18 Thread Pavel Labath via lldb-commits
Author: labath Date: Mon Jun 18 08:44:36 2018 New Revision: 334953 URL: http://llvm.org/viewvc/llvm-project?rev=334953&view=rev Log: Fix netbsd build broken by r334950 This also includes one more build fix for windows. Modified: lldb/trunk/source/Host/netbsd/HostInfoNetBSD.cpp lldb/trunk

[Lldb-commits] [lldb] r334952 - Attempt to fix windows&freebsd builds broken by r334950

2018-06-18 Thread Pavel Labath via lldb-commits
Author: labath Date: Mon Jun 18 08:29:42 2018 New Revision: 334952 URL: http://llvm.org/viewvc/llvm-project?rev=334952&view=rev Log: Attempt to fix windows&freebsd builds broken by r334950 Modified: lldb/trunk/source/Host/freebsd/HostInfoFreeBSD.cpp lldb/trunk/source/Host/windows/HostInfo

[Lldb-commits] [PATCH] D47889: Use llvm::VersionTuple instead of manual version marshalling

2018-06-18 Thread Pavel Labath via Phabricator via lldb-commits
This revision was not accepted when it landed; it landed in state "Needs Review". This revision was automatically updated to reflect the committed changes. Closed by commit rL334950: Use llvm::VersionTuple instead of manual version marshalling (authored by labath, committed by ). Herald added a s

[Lldb-commits] [lldb] r334950 - Use llvm::VersionTuple instead of manual version marshalling

2018-06-18 Thread Pavel Labath via lldb-commits
Author: labath Date: Mon Jun 18 08:02:23 2018 New Revision: 334950 URL: http://llvm.org/viewvc/llvm-project?rev=334950&view=rev Log: Use llvm::VersionTuple instead of manual version marshalling Summary: This has multiple advantages: - we need only one function argument/instance variable instead o

[Lldb-commits] [PATCH] D47302: [WIP] New class SBTargetSettings to store and manipulate all target's properties.

2018-06-18 Thread Alexander Polyakov via Phabricator via lldb-commits
polyakov.alex updated this revision to Diff 151682. polyakov.alex retitled this revision from "[lldb, lldb-mi] Add method AddCurrentTargetSharedObjectPath to the SBDebugger." to "[WIP] New class SBTargetSettings to store and manipulate all target's properties.". polyakov.alex edited the summary o

[Lldb-commits] [PATCH] D48272: Replace HostInfo::GetLLDBPath with specific functions

2018-06-18 Thread Pavel Labath via Phabricator via lldb-commits
labath created this revision. labath added reviewers: clayborg, zturner. Instead of a function taking an enum value determining which path to return, we now have a suite of functions, each returning a single path kind. This makes it easy to move the python-path function into a specific plugin in a

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

2018-06-18 Thread Pavel Labath via Phabricator via lldb-commits
labath accepted this revision. labath added a comment. This revision is now accepted and ready to land. Looks good. I'm really happy with how this turned out. Thank you for your patience. https://reviews.llvm.org/D48060 ___ lldb-commits mailing lis