[Lldb-commits] [PATCH] D51520: Add libc++ data formatter for std::variant

2018-09-12 Thread Shafik Yaghmour via Phabricator via lldb-commits
shafik added a comment. @vsk @jingham I believe I have addressed your comments, please review again. Comment at: packages/Python/lldbsuite/test/functionalities/data-formatter/data-formatter-stl/libcxx/variant/main.cpp:29 +std::variant v3; +std::variant v_no_value; +

[Lldb-commits] [PATCH] D51520: Add libc++ data formatter for std::variant

2018-09-12 Thread Shafik Yaghmour via Phabricator via lldb-commits
shafik updated this revision to Diff 165201. shafik marked 9 inline comments as done. shafik added a comment. Address comments on std::variant formatter - Adding tests for reference to variant and variant of variant - Refactoring test to be more efficient - Refactoring unsafe code that assumed

[Lldb-commits] [PATCH] D51175: Add support for descriptions with command completions.

2018-09-12 Thread Jim Ingham via Phabricator via lldb-commits
jingham requested changes to this revision. jingham added a comment. This revision now requires changes to proceed. This looks good. I agree with Jonas, however that we might have cases where we end up with two identical completions that have different descriptions, and we shouldn't drop them.

[Lldb-commits] [PATCH] D51830: Add a way to make scripted breakpoints

2018-09-12 Thread Jim Ingham via Phabricator via lldb-commits
jingham updated this revision to Diff 165184. jingham added a comment. Add documentation for SBTarget.CreateBreakpointFromScript, and fixed a few minor nits that Greg pointed out. https://reviews.llvm.org/D51830 Files: include/lldb/API/SBAddress.h include/lldb/API/SBBreakpoint.h

[Lldb-commits] [PATCH] D51830: Add a way to make scripted breakpoints

2018-09-12 Thread Jim Ingham via Phabricator via lldb-commits
jingham added a comment. I addressed most of the comments. I remember we argued about how the filters should work w.r.t. the resolvers back when I first did this, but I still claim my way is right ;-) I gave some arguments for that in response to your inline comment. I'm going to save this

[Lldb-commits] [PATCH] D51967: [PDB] Use the raw PDB symbol interface more accurately

2018-09-12 Thread Zachary Turner via Phabricator via lldb-commits
zturner added a comment. I've been experimenting with DIA locally and after some investigation I'm not sure this is going to be reliable. Let's say we have a class, we want the decl context containing the class. For example, on line 366. So we call `GetDeclContextContainingSymbol`. Despite

[Lldb-commits] [lldb] r342085 - Commit my attempt to test the change to ProcessGDBRemote

2018-09-12 Thread Jason Molenda via lldb-commits
Author: jmolenda Date: Wed Sep 12 14:35:02 2018 New Revision: 342085 URL: http://llvm.org/viewvc/llvm-project?rev=342085=rev Log: Commit my attempt to test the change to ProcessGDBRemote in r336956. This test doesn't actually test the change that was submitted by Venkata, but it's a good one to

[Lldb-commits] [PATCH] D51967: [PDB] Use the raw PDB symbol interface more accurately

2018-09-12 Thread Zachary Turner via Phabricator via lldb-commits
zturner accepted this revision. zturner added inline comments. This revision is now accepted and ready to land. Comment at: source/Plugins/SymbolFile/PDB/PDBASTParser.cpp:274 - auto class_parent_id = raw.getClassParentId(); - if (auto class_parent =

[Lldb-commits] [PATCH] D51935: [LLDB] - Improve reporting source lines and variables (improved DWARF5 support).

2018-09-12 Thread Greg Clayton via Phabricator via lldb-commits
clayborg added a comment. In https://reviews.llvm.org/D51935#1232203, @grimar wrote: > In https://reviews.llvm.org/D51935#1232195, @clayborg wrote: > > > Patch looks good. A few fixes mentioned in inlined comments. And I am > > unsure how the test suite will run with various compilers if they

[Lldb-commits] [PATCH] D51966: Do not create new terminals when launching process on Windows with --no-stdio

2018-09-12 Thread Dávid Bolvanský via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rLLDB342075: Do not create new terminals when launching process on Windows with --no-stdio (authored by xbolva00, committed by ). Repository: rLLDB LLDB https://reviews.llvm.org/D51966 Files:

[Lldb-commits] [PATCH] D51999: build: add libedit to include paths

2018-09-12 Thread Tatyana Krasnukha via Phabricator via lldb-commits
tatyana-krasnukha added a comment. Everything that includes Host/Editline.h (Host/Editline.cpp, Core/IOHandler.cpp, ...). Build fails with "fatal error: histedit.h: No such file or directory" Repository: rLLDB LLDB https://reviews.llvm.org/D51999

[Lldb-commits] [PATCH] D51999: build: add libedit to include paths

2018-09-12 Thread Davide Italiano via Phabricator via lldb-commits
davide added a comment. How exactly are you building (i.e. what triggers this error)? Repository: rLLDB LLDB https://reviews.llvm.org/D51999 ___ lldb-commits mailing list lldb-commits@lists.llvm.org

[Lldb-commits] [PATCH] D51999: build: add libedit to include paths

2018-09-12 Thread Tatyana Krasnukha via Phabricator via lldb-commits
tatyana-krasnukha created this revision. tatyana-krasnukha added a reviewer: compnerd. Herald added subscribers: lldb-commits, mgorny. Without that build of Host, Core and Interpreter with custom libedit fails. Repository: rLLDB LLDB https://reviews.llvm.org/D51999 Files: CMakeLists.txt

[Lldb-commits] [lldb] r342072 - If we fail to get an armv7em-- disassembler from llvm, skip the

2018-09-12 Thread Jason Molenda via lldb-commits
Author: jmolenda Date: Wed Sep 12 12:30:03 2018 New Revision: 342072 URL: http://llvm.org/viewvc/llvm-project?rev=342072=rev Log: If we fail to get an armv7em-- disassembler from llvm, skip the tests and don't mark this as a failure. This happens when we've linked against an llvm without the ARM

[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

[Lldb-commits] [lldb] r342066 - Add compatibility version to liblldb in framework builds

2018-09-12 Thread Alex Langford via lldb-commits
Author: xiaobai Date: Wed Sep 12 11:10:22 2018 New Revision: 342066 URL: http://llvm.org/viewvc/llvm-project?rev=342066=rev Log: Add compatibility version to liblldb in framework builds Summary: Building LLDB with xcodebuild sets the compatibility version of liblldb in LLDB.framework. Building

[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 === ---

[Lldb-commits] [PATCH] D51935: [LLDB] - Improve reporting source lines and variables (improved DWARF5 support).

2018-09-12 Thread George Rimar via Phabricator via lldb-commits
grimar added a comment. In https://reviews.llvm.org/D51935#1232195, @clayborg wrote: > Patch looks good. A few fixes mentioned in inlined comments. And I am unsure > how the test suite will run with various compilers if they don't support the > -gdwarf-5 flag. We might need to run obj2yaml on

[Lldb-commits] [PATCH] D51935: [LLDB] - Improve reporting source lines and variables (improved DWARF5 support).

2018-09-12 Thread Greg Clayton via Phabricator via lldb-commits
clayborg requested changes to this revision. clayborg added a comment. Patch looks good. A few fixes mentioned in inlined comments. And I am unsure how the test suite will run with various compilers if they don't support the -gdwarf-5 flag. We might need to run obj2yaml on a binary and then

[Lldb-commits] [PATCH] D51935: [LLDB] - Improve reporting source lines and variables (improved DWARF5 support).

2018-09-12 Thread George Rimar via Phabricator via lldb-commits
grimar planned changes to this revision. grimar added a comment. Will reupload. https://reviews.llvm.org/D51935 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [PATCH] D51935: [LLDB] - Improve reporting source lines and variables (improved DWARF5 support).

2018-09-12 Thread George Rimar via Phabricator via lldb-commits
grimar updated this revision to Diff 165112. grimar added a comment. - Addressed review comments. - Added test case. - Minor cosmetic changes. https://reviews.llvm.org/D51935 Files: include/lldb/lldb-enumerations.h packages/Python/lldbsuite/test/functionalities/show_location/Makefile

[Lldb-commits] [PATCH] D51966: Do not create new terminals when launching process on Windows with --no-stdio

2018-09-12 Thread Zachary Turner via Phabricator via lldb-commits
zturner accepted this revision. zturner added a comment. This revision is now accepted and ready to land. I'm fine with this. https://reviews.llvm.org/D51966 ___ lldb-commits mailing list lldb-commits@lists.llvm.org

[Lldb-commits] [PATCH] D51966: Do not create new terminals when launching process on Windows with --no-stdio

2018-09-12 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. This makes sense to me, but the windows folks should say what is best for their platform. https://reviews.llvm.org/D51966 ___ lldb-commits mailing list lldb-commits@lists.llvm.org

[Lldb-commits] [PATCH] D51966: Do not create new terminals when launching process on Windows with --no-stdio

2018-09-12 Thread Dávid Bolvanský via Phabricator via lldb-commits
xbolva00 updated this revision to Diff 165103. xbolva00 retitled this revision from "Do not create new terminals when launching process on Windows by default" to "Do not create new terminals when launching process on Windows with --no-stdio". xbolva00 edited the summary of this revision.

[Lldb-commits] [PATCH] D51966: Do not create new terminals when launching process on Windows by default

2018-09-12 Thread Greg Clayton via Phabricator via lldb-commits
clayborg added a comment. In https://reviews.llvm.org/D51966#1232057, @xbolva00 wrote: > So basically the hardest problem is to "find a way to get stdio from a > process and feed to to LLDB so it shows up when neither --tty nor --no-stdio > is set" .. yes. The easier solution is to just

Re: [Lldb-commits] [lldb] r342029 - Reduce alignment on struct XSAVE, fixing a gcc warning

2018-09-12 Thread Greg Clayton via lldb-commits
Sounds good, thanks for clarifying. Just want to be safe. > On Sep 12, 2018, at 9:09 AM, Pavel Labath wrote: > > On 12/09/18 16:37, Greg Clayton wrote: >> Don't we get a blob of register bytes back from ptrace when reading >> registers? The struct we use must match this byte for byte. > >

Re: [Lldb-commits] [lldb] r342029 - Reduce alignment on struct XSAVE, fixing a gcc warning

2018-09-12 Thread Pavel Labath via lldb-commits
On 12/09/18 16:37, Greg Clayton wrote: > Don't we get a blob of register bytes back from ptrace when reading > registers? The struct we use must match this byte for byte. That is true. However, this alignment does not set the layout of the fields in the struct. Rather it sets the alignment of

[Lldb-commits] [PATCH] D51966: Do not create new terminals when launching process on Windows by default

2018-09-12 Thread Dávid Bolvanský via Phabricator via lldb-commits
xbolva00 added a comment. So basically the hardest problem is to "find a way to get stdio from a process and feed to to LLDB so it shows up when neither --tty nor --no-stdio is set" .. Repository: rLLDB LLDB https://reviews.llvm.org/D51966 ___

[Lldb-commits] [PATCH] D51934: [target] Change target create's behavior wrt loading dependent files.

2018-09-12 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere updated this revision to Diff 165094. JDevlieghere added a comment. - Document default behavior. https://reviews.llvm.org/D51934 Files: packages/Python/lldbsuite/test/functionalities/target_create_deps/Makefile

[Lldb-commits] [PATCH] D51966: Do not create new terminals when launching process on Windows by default

2018-09-12 Thread Greg Clayton via Phabricator via lldb-commits
clayborg added a comment. The other option is to only remove this flag if "--no-stdio" is set. The best solution IMHO is: - find a way to get stdio from a process and feed to to LLDB so it shows up when neither --tty nor --no-stdio is set - when --tty is specified, set the CREATE_NEW_CONSOLE

[Lldb-commits] [PATCH] D51966: Do not create new terminals when launching process on Windows by default

2018-09-12 Thread Dávid Bolvanský via Phabricator via lldb-commits
xbolva00 added a comment. In https://reviews.llvm.org/D51966#1231943, @clayborg wrote: > We should obey the --tty option here and set CREATE_NEW_CONSOLE if it is set > no? I also thought about it. @zturner, @labath ? Repository: rLLDB LLDB https://reviews.llvm.org/D51966

[Lldb-commits] [PATCH] D51934: [target] Change target create's behavior wrt loading dependent files.

2018-09-12 Thread Greg Clayton via Phabricator via lldb-commits
clayborg added inline comments. Comment at: source/Commands/CommandObjectTarget.cpp:143-151 +static OptionEnumValueElement g_dependents_enumaration[4] = { +{eLoadDependentsDefault, "default", + "Only load dependents when the target is an executables."}, +

Re: [Lldb-commits] [lldb] r342029 - Reduce alignment on struct XSAVE, fixing a gcc warning

2018-09-12 Thread Greg Clayton via lldb-commits
Don't we get a blob of register bytes back from ptrace when reading registers? The struct we use must match this byte for byte. This seems like this change could affect the ability to get correct register values? > On Sep 12, 2018, at 1:50 AM, Pavel Labath via lldb-commits > wrote: > >

[Lldb-commits] [PATCH] D51966: Do not create new terminals when launching process on Windows by default

2018-09-12 Thread Greg Clayton via Phabricator via lldb-commits
clayborg added a comment. We should obey the --tty option here and set CREATE_NEW_CONSOLE if it is set no? Repository: rLLDB LLDB https://reviews.llvm.org/D51966 ___ lldb-commits mailing list lldb-commits@lists.llvm.org

[Lldb-commits] [PATCH] D51830: Add a way to make scripted breakpoints

2018-09-12 Thread Greg Clayton via Phabricator via lldb-commits
clayborg added a comment. Only issue now is documentation and why are we requiring addresses to be in compile unit. See inlined comments. Comment at: include/lldb/API/SBTarget.h:667 + lldb::SBBreakpoint BreakpointCreateFromScript( + const char *class_name, +

[Lldb-commits] [PATCH] D50383: Move SafeMachO from Utility to Host

2018-09-12 Thread Pavel Labath via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rLLDB342050: Move SafeMachO from Utility to Host (authored by labath, committed by ). Changed prior to commit: https://reviews.llvm.org/D50383?vs=165058=165070#toc Repository: rLLDB LLDB

[Lldb-commits] [lldb] r342051 - Fix two issues in PDBASTParser

2018-09-12 Thread Pavel Labath via lldb-commits
Author: labath Date: Wed Sep 12 05:26:11 2018 New Revision: 342051 URL: http://llvm.org/viewvc/llvm-project?rev=342051=rev Log: Fix two issues in PDBASTParser - gcc warning about using binary or for or-ing two comparisons (a == b | a == c) - llvm style prefers static functions to functions in an

[Lldb-commits] [lldb] r342050 - Move SafeMachO from Utility to Host

2018-09-12 Thread Pavel Labath via lldb-commits
Author: labath Date: Wed Sep 12 05:26:05 2018 New Revision: 342050 URL: http://llvm.org/viewvc/llvm-project?rev=342050=rev Log: Move SafeMachO from Utility to Host Summary: One of the conclusions of the discussion on D49740 was that SafeMachO is better off in the Host module (as that's the only

[Lldb-commits] [lldb] r342047 - Remove another unused mislayered include.

2018-09-12 Thread Benjamin Kramer via lldb-commits
Author: d0k Date: Wed Sep 12 04:31:18 2018 New Revision: 342047 URL: http://llvm.org/viewvc/llvm-project?rev=342047=rev Log: Remove another unused mislayered include. Modified: lldb/trunk/source/Target/CPPLanguageRuntime.cpp Modified: lldb/trunk/source/Target/CPPLanguageRuntime.cpp URL:

[Lldb-commits] [lldb] r342046 - Remove unused include that's also a layering violation.

2018-09-12 Thread Benjamin Kramer via lldb-commits
Author: d0k Date: Wed Sep 12 04:27:10 2018 New Revision: 342046 URL: http://llvm.org/viewvc/llvm-project?rev=342046=rev Log: Remove unused include that's also a layering violation. Modified: lldb/trunk/source/Target/CPPLanguageRuntime.cpp Modified:

[Lldb-commits] [PATCH] D51935: [LLDB] - Improve reporting source lines and variables (improved DWARF5 support).

2018-09-12 Thread George Rimar via Phabricator via lldb-commits
grimar marked 5 inline comments as done. grimar added a comment. Thanks for the review, Greg! I'll address your comments and add the test case when it will be ready. Hope soon. https://reviews.llvm.org/D51935 ___ lldb-commits mailing list

[Lldb-commits] [PATCH] D50383: Move SafeMachO from Utility to Host

2018-09-12 Thread Raphael Isemann via Phabricator via lldb-commits
teemperor accepted this revision. teemperor added a comment. This revision is now accepted and ready to land. LGTM, thanks! https://reviews.llvm.org/D50383 ___ lldb-commits mailing list lldb-commits@lists.llvm.org

[Lldb-commits] [PATCH] D50383: Move SafeMachO from Utility to Host

2018-09-12 Thread Pavel Labath via Phabricator via lldb-commits
labath updated this revision to Diff 165058. labath added a comment. Add the file to module map. https://reviews.llvm.org/D50383 Files: include/lldb/Host/SafeMachO.h include/lldb/Utility/SafeMachO.h include/lldb/module.modulemap source/Host/common/Symbols.cpp

[Lldb-commits] [PATCH] D50681: Remove manual byte counting from internal Stream methods.

2018-09-12 Thread Raphael Isemann via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL342044: Remove manual byte counting from internal Stream methods. (authored by teemperor, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit:

[Lldb-commits] [lldb] r342044 - Remove manual byte counting from internal Stream methods.

2018-09-12 Thread Raphael Isemann via lldb-commits
Author: teemperor Date: Wed Sep 12 03:20:41 2018 New Revision: 342044 URL: http://llvm.org/viewvc/llvm-project?rev=342044=rev Log: Remove manual byte counting from internal Stream methods. Summary: This patch removes the manual byte counting in all internal Stream methods. This is now done by

[Lldb-commits] [PATCH] D51934: [target] Change target create's behavior wrt loading dependent files.

2018-09-12 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere updated this revision to Diff 165047. JDevlieghere added a comment. I totally agree; I've left the argument name unchanged and made the argument optional. I had to change the semantics slightly (because of the negation in the argument name) but otherwise things will continue

[Lldb-commits] [PATCH] D51930: Add a basic test for 'memory region'

2018-09-12 Thread Raphael Isemann via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL342042: Add a basic test for memory region (authored by teemperor, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/D51930?vs=164862=165045#toc

[Lldb-commits] [lldb] r342042 - Add a basic test for 'memory region'

2018-09-12 Thread Raphael Isemann via lldb-commits
Author: teemperor Date: Wed Sep 12 03:04:25 2018 New Revision: 342042 URL: http://llvm.org/viewvc/llvm-project?rev=342042=rev Log: Add a basic test for 'memory region' Summary: The 'memory region' command is at the moment not tested at all by our test suite. This patch just adds a basic test

[Lldb-commits] [lldb] r342029 - Reduce alignment on struct XSAVE, fixing a gcc warning

2018-09-12 Thread Pavel Labath via lldb-commits
Author: labath Date: Wed Sep 12 01:50:08 2018 New Revision: 342029 URL: http://llvm.org/viewvc/llvm-project?rev=342029=rev Log: Reduce alignment on struct XSAVE, fixing a gcc warning The warning is about heap-allocating a struct with bigger alignment requirements than the standard heap allocator

[Lldb-commits] [PATCH] D51966: Do not create new terminals when launching process on Windows by default

2018-09-12 Thread Dávid Bolvanský via Phabricator via lldb-commits
xbolva00 abandoned this revision. xbolva00 added a comment. In https://reviews.llvm.org/D51966#1231533, @labath wrote: > I think the issue here is that on windows we don't have the ability(*) to > pipe stdio through lldb, so if you create a process without a console, you > will not be able to

[Lldb-commits] [PATCH] D51967: [PDB] Use the raw PDB symbol interface more accurately

2018-09-12 Thread Aleksandr Urakov via Phabricator via lldb-commits
aleksandr.urakov created this revision. aleksandr.urakov added a reviewer: zturner. aleksandr.urakov added a project: LLDB. Herald added a subscriber: lldb-commits. This patch adds some symbol tag checks before using the `IPDBRawSymbol` interface to improve safety and readability. Repository:

[Lldb-commits] [PATCH] D51966: Do not create new terminals when launching process on Windows by default

2018-09-12 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. I think the issue here is that on windows we don't have the ability(*) to pipe stdio through lldb, so if you create a process without a console, you will not be able to use see it's output or pass it some input (probably fine for gui apps, but bad for console ones).

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

2018-09-12 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. lgtm modulo typos https://reviews.llvm.org/D51959 ___ lldb-commits mailing list lldb-commits@lists.llvm.org

[Lldb-commits] [PATCH] D51966: Do not create new terminals when launching process on Windows by default

2018-09-12 Thread Dávid Bolvanský via Phabricator via lldb-commits
xbolva00 created this revision. xbolva00 added reviewers: teemperor, zturner. Herald added subscribers: lldb-commits, abidh. Unify behaviour across platforms. (We create new terminals only on Windows). process launch offers explicit option: -t ( --tty ) Start the process in a terminal