[Lldb-commits] [PATCH] D46088: Refactor GetNextPersistentVariableName into a non-virtual method

2018-04-25 Thread Adrian Prantl via Phabricator via lldb-commits
aprantl created this revision. aprantl added a reviewer: jingham. Refactor GetNextPersistentVariableName into a non-virtual method that takes a prefix string. This simplifies the implementation and allows plugins such as the Swift plugin to supply different prefixes for return and error

[Lldb-commits] [lldb] r330877 - [debugserver] Return 'ios' instead of 'iphoneos' for the ostype.

2018-04-25 Thread Frederic Riss via lldb-commits
Author: friss Date: Wed Apr 25 15:12:12 2018 New Revision: 330877 URL: http://llvm.org/viewvc/llvm-project?rev=330877=rev Log: [debugserver] Return 'ios' instead of 'iphoneos' for the ostype. When I merged the 2 codepaths that return an OS type, I hade checked that the places accepting

[Lldb-commits] [PATCH] D45977: Always normalize FileSpec paths.

2018-04-25 Thread Greg Clayton via Phabricator via lldb-commits
clayborg updated this revision to Diff 144021. clayborg added a comment. After doing performance tests, the code was 7 to 10 % slower if we didn't check if a path needs normalization due to the llvm code making arrays of StringRef objects and appending a path together. Restored and even

[Lldb-commits] [PATCH] D46083: Move the persistent variable counter into Target

2018-04-25 Thread Adrian Prantl via Phabricator via lldb-commits
aprantl created this revision. aprantl added a reviewer: jingham. Move the persistent variable counter into Target so it can be shared across multiple language plugins. In a multi-language project it is counterintuitive to have a result variables reuse numbers just because they are

Re: [Lldb-commits] [lldb] r330708 - [dotest] Make the set of tests independent of the test configuration

2018-04-25 Thread Vedant Kumar via lldb-commits
> On Apr 25, 2018, at 12:04 PM, Pavel Labath wrote: > > On Wed, 25 Apr 2018 at 19:07, Vedant Kumar wrote: > >> Hi Pavel, > >>> On Apr 24, 2018, at 3:51 AM, Pavel Labath via lldb-commits < > lldb-commits@lists.llvm.org> wrote: >>> +def

[Lldb-commits] [PATCH] D40475: DWZ 06/07: DWZ test mode

2018-04-25 Thread Jan Kratochvil via Phabricator via lldb-commits
jankratochvil updated this revision to Diff 143992. https://reviews.llvm.org/D40475 Files: packages/Python/lldbsuite/test/dotest.py packages/Python/lldbsuite/test/lldbinline.py packages/Python/lldbsuite/test/lldbtest.py packages/Python/lldbsuite/test/make/Makefile.rules

Re: [Lldb-commits] [lldb] r330708 - [dotest] Make the set of tests independent of the test configuration

2018-04-25 Thread Pavel Labath via lldb-commits
On Wed, 25 Apr 2018 at 19:07, Vedant Kumar wrote: > Hi Pavel, > > On Apr 24, 2018, at 3:51 AM, Pavel Labath via lldb-commits < lldb-commits@lists.llvm.org> wrote: > > +def checkDebugInfoSupport(): > > +import lldb > > + > > +platform =

[Lldb-commits] [PATCH] D45977: Always normalize FileSpec paths.

2018-04-25 Thread Greg Clayton via Phabricator via lldb-commits
clayborg added a comment. In https://reviews.llvm.org/D45977#1077719, @labath wrote: > This code itself looks fine, I have just two minor comments. > > However, I do have a question about performance. I remember us being very > worried about performance in the past, so we ended up putting in

Re: [Lldb-commits] [lldb] r330708 - [dotest] Make the set of tests independent of the test configuration

2018-04-25 Thread Vedant Kumar via lldb-commits
> On Apr 25, 2018, at 11:07 AM, Vedant Kumar wrote: > > Hi Pavel, > >> On Apr 24, 2018, at 3:51 AM, Pavel Labath via lldb-commits >> wrote: >> >> Author: labath >> Date: Tue Apr 24 03:51:44 2018 >> New Revision: 330708 >> >> URL:

Re: [Lldb-commits] [lldb] r330708 - [dotest] Make the set of tests independent of the test configuration

2018-04-25 Thread Vedant Kumar via lldb-commits
Hi Pavel, > On Apr 24, 2018, at 3:51 AM, Pavel Labath via lldb-commits > wrote: > > Author: labath > Date: Tue Apr 24 03:51:44 2018 > New Revision: 330708 > > URL: http://llvm.org/viewvc/llvm-project?rev=330708=rev > Log: > [dotest] Make the set of tests

Re: [Lldb-commits] [PATCH] D45977: Always normalize FileSpec paths.

2018-04-25 Thread Greg Clayton via lldb-commits
> On Apr 25, 2018, at 12:54 AM, Pavel Labath via Phabricator > wrote: > > labath added a comment. > > This code itself looks fine, I have just two minor comments. > > However, I do have a question about performance. I remember us being very > worried about

Re: [Lldb-commits] [PATCH] D46005: [test] Add a utility for dumping all tests in the dotest suite

2018-04-25 Thread Zachary Turner via lldb-commits
Sure multiple run lines can be commands being executed that depend on each other, but it's very common for a test to have multiple check labels as well On Wed, Apr 25, 2018 at 9:19 AM Adrian Prantl wrote: > > On Apr 25, 2018, at 9:08 AM, Zachary Turner

Re: [Lldb-commits] [PATCH] D46005: [test] Add a utility for dumping all tests in the dotest suite

2018-04-25 Thread Adrian Prantl via lldb-commits
> On Apr 25, 2018, at 9:08 AM, Zachary Turner wrote: > > But is there a reason why that is more valuable with LLDB than it is with > LLVM? In LLVM when a test fails it stops and doesn't run subsequent run > lines. So you have the same issue there. That's not a good

Re: [Lldb-commits] [PATCH] D46005: [test] Add a utility for dumping all tests in the dotest suite

2018-04-25 Thread Zachary Turner via lldb-commits
But is there a reason why that is more valuable with LLDB than it is with LLVM? In LLVM when a test fails it stops and doesn't run subsequent run lines. So you have the same issue there. The way this is handled in LLVM is that if you think tests are sufficiently different that they could be

Re: [Lldb-commits] [PATCH] D46005: [test] Add a utility for dumping all tests in the dotest suite

2018-04-25 Thread Adrian Prantl via lldb-commits
Disregarding the added complexity I believe that being able to communicate the number of tests filed/passed inside a single file would be very valuable. For example when one test gets broken by upstream clang changes and it takes a few days to fix it properly, we don't want to loose signal on

[Lldb-commits] [PATCH] D46005: [test] Add a utility for dumping all tests in the dotest suite

2018-04-25 Thread Zachary Turner via Phabricator via lldb-commits
zturner added a subscriber: labath. zturner added a comment. Well let’s see what Davide and Adrian think. I’m more of an outsider these days so consider my perspective an llvm-centric one, which would sometimes (but not always) be the best for lldb https://reviews.llvm.org/D46005

Re: [Lldb-commits] [PATCH] D46005: [test] Add a utility for dumping all tests in the dotest suite

2018-04-25 Thread Zachary Turner via lldb-commits
Well let’s see what Davide and Adrian think. I’m more of an outsider these days so consider my perspective an llvm-centric one, which would sometimes (but not always) be the best for lldb On Wed, Apr 25, 2018 at 12:31 AM Pavel Labath via Phabricator < revi...@reviews.llvm.org> wrote: > labath

[Lldb-commits] [lldb] r330823 - Fix -Wswitch warning after r330790.

2018-04-25 Thread Benjamin Kramer via lldb-commits
Author: d0k Date: Wed Apr 25 06:22:47 2018 New Revision: 330823 URL: http://llvm.org/viewvc/llvm-project?rev=330823=rev Log: Fix -Wswitch warning after r330790. source/Symbol/ClangASTContext.cpp:391:13: error: enumeration value 'HIP' not handled in switch [-Werror,-Wswitch] switch

[Lldb-commits] [PATCH] D46005: [test] Add a utility for dumping all tests in the dotest suite

2018-04-25 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. In https://reviews.llvm.org/D46005#1077016, @zturner wrote: > Note that there's currently no precedent (that i'm aware of anwyay) in LLVM > or any of its subprojects for splitting the running of a single file into > multiple parallel jobs. All of LLVM's other projects