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

2018-04-24 Thread Pavel Labath via Phabricator via lldb-commits
labath added inline comments. Comment at: source/Breakpoint/BreakpointResolverFileLine.cpp:130-131 +// we must leave the slash character though. +while (relative_path.consume_front(".")) + /* Do nothing. */; + } What about paths like `.foo/bar.c` an

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

2018-04-24 Thread Pavel Labath via lldb-commits
Author: labath Date: Tue Apr 24 03:51:44 2018 New Revision: 330708 URL: http://llvm.org/viewvc/llvm-project?rev=330708&view=rev Log: [dotest] Make the set of tests independent of the test configuration Summary: In the magic test duplicator, we were making the decision whether to create a test var

[Lldb-commits] [PATCH] D45949: [dotest] Make the set of tests independent of the test configuration

2018-04-24 Thread Pavel Labath via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL330708: [dotest] Make the set of tests independent of the test configuration (authored by labath, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://reviews.llvm.org/D

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

2018-04-24 Thread Pavel Labath via Phabricator via lldb-commits
labath created this revision. labath added reviewers: JDevlieghere, aprantl, amccarth. The utility iterates through the tests in the suite, much like dotest does, and prints all tests it found. So that it can set up the environment properly, it needs to be called with a single argument - the path

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

2018-04-24 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere added inline comments. Comment at: lit/Suite/lldbtestdumper.py:27 + +def set_up_environment(): +global lldb_test_root A comment describing what and why this is necessary might be nice. Comment at: lit/Suite/lldbtestdumper.py:4

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

2018-04-24 Thread Greg Clayton via Phabricator via lldb-commits
clayborg added a comment. I am trying to switch to using llvm::sys::path::remove_dots() and we will see where we end up. By switching to this it means: "./foo.c" --> "foo.c" "./foo/bar.c" --> "foo/bar.c" This makes is easier to see if a relative path matches another FileSpec since we don't hav

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

2018-04-24 Thread Pavel Labath via Phabricator via lldb-commits
labath added inline comments. Comment at: source/Utility/FileSpec.cpp:406 + m_directory.Clear(); + } } clayborg wrote: > > they resolve to the same file in a virtual filesystem, where all referenced > > path components exist and are directories > > Norma

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

2018-04-24 Thread Greg Clayton via Phabricator via lldb-commits
clayborg added inline comments. Comment at: source/Utility/FileSpec.cpp:406 + m_directory.Clear(); + } } labath wrote: > clayborg wrote: > > > they resolve to the same file in a virtual filesystem, where all > > > referenced path components exist and are

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

2018-04-24 Thread Pavel Labath via Phabricator via lldb-commits
labath added inline comments. Comment at: source/Utility/FileSpec.cpp:406 + m_directory.Clear(); + } } clayborg wrote: > labath wrote: > > clayborg wrote: > > > > they resolve to the same file in a virtual filesystem, where all > > > > referenced path com

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

2018-04-24 Thread Zachary Turner via Phabricator via lldb-commits
zturner added a comment. Does it print just the names of the .py files, or does it print the actual test classes and methods in the Class.TestName format, evaluate XFAIL and SKIPs, etc? I'm also not entirely clear why `set_up_environment` is even necessary. Nothing below the call to `set_up_en

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

2018-04-24 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. In https://reviews.llvm.org/D46005#1076978, @zturner wrote: > Does it print just the names of the .py files, or does it print the actual > test classes and methods in the Class.TestName format, evaluate XFAIL and > SKIPs, etc? It prints everything: test file (including

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

2018-04-24 Thread Zachary Turner via Phabricator via lldb-commits
zturner added a comment. In https://reviews.llvm.org/D46005#1077000, @labath wrote: > In https://reviews.llvm.org/D46005#1076978, @zturner wrote: > > > Does it print just the names of the .py files, or does it print the actual > > test classes and methods in the Class.TestName format, evaluate X

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

2018-04-24 Thread Zachary Turner via Phabricator via lldb-commits
zturner added a comment. In https://reviews.llvm.org/D46005#1077013, @zturner wrote: > In https://reviews.llvm.org/D46005#1077000, @labath wrote: > > > In https://reviews.llvm.org/D46005#1076978, @zturner wrote: > > > > > Does it print just the names of the .py files, or does it print the > > >

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

2018-04-24 Thread Zachary Turner via Phabricator via lldb-commits
zturner added a comment. Actually, for the first case, I'm thinking we can extend lit to support somethign like per-directory set up. Like if there is a file present called `lit.init.cfg`, then this file contains some code that is run once per directory before any of the tests. Then we could

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

2018-04-24 Thread Greg Clayton via Phabricator via lldb-commits
clayborg updated this revision to Diff 143777. clayborg added a comment. Switch over to using llvm::sys::path::remove_dots(), remove the ::Normalize() function and fix a few issue discovered during testing. https://reviews.llvm.org/D45977 Files: include/lldb/Core/FileSpecList.h include/lld

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

2018-04-24 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. In https://reviews.llvm.org/D46005#1077013, @zturner wrote: > I thought the intention was going to be parallelize at file-granularity > rather than method granularity, since the whole point of grouping tests > together into classes is that they can share similar set up a

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

2018-04-24 Thread Zachary Turner via Phabricator via lldb-commits
zturner added a comment. In https://reviews.llvm.org/D46005#1077029, @labath wrote: > In https://reviews.llvm.org/D46005#1077013, @zturner wrote: > > > I thought the intention was going to be parallelize at file-granularity > > rather than method granularity, since the whole point of grouping te

[Lldb-commits] [PATCH] D40474: DWZ 05/07: Main functionality

2018-04-24 Thread Jan Kratochvil via Phabricator via lldb-commits
jankratochvil updated this revision to Diff 143785. https://reviews.llvm.org/D40474 Files: include/lldb/Utility/ConstString.h include/lldb/Utility/FileSpec.h source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.h source/Plugins/SymbolFile/DWARF/DWARFDataExtractor.h source/Plugins/SymbolFile

[Lldb-commits] [PATCH] D40473: DWZ 04/07: Adjust existing code for the DWZ support.

2018-04-24 Thread Jan Kratochvil via Phabricator via lldb-commits
jankratochvil updated this revision to Diff 143784. https://reviews.llvm.org/D40473 Files: source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp source/Plugins/SymbolFile/DWARF/DWARFDIE.cpp source/Plugins/SymbolFile/DWARF/DWARFDIE.h source/Plugins/SymbolFile/DWARF/DWARFDebugInfo.cpp s

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

2018-04-24 Thread Adrian Prantl via Phabricator via lldb-commits
aprantl added inline comments. Comment at: source/Utility/FileSpec.cpp:241 } + llvm::sys::path::remove_dots(resolved, true, LLVMPathSyntax(syntax)); `// Normalize the path by removing './' and other redundant components.` Comment at: sour

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

2018-04-24 Thread Jan Kratochvil via Phabricator via lldb-commits
jankratochvil updated this revision to Diff 143799. 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 packages/Python/

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

2018-04-24 Thread Greg Clayton via Phabricator via lldb-commits
clayborg updated this revision to Diff 143801. clayborg added a comment. Added comment before llvm::sys::path_remove_dots(...) https://reviews.llvm.org/D45977 Files: include/lldb/Core/FileSpecList.h include/lldb/Utility/FileSpec.h source/Breakpoint/BreakpointResolverFileLine.cpp source/

[Lldb-commits] [PATCH] D45628: [LLDB] Support compressed debug info sections (.zdebug*)

2018-04-24 Thread Erik Welander via Phabricator via lldb-commits
alur added a comment. Friendly ping, is there anything else I need to do for this to get submitted? https://reviews.llvm.org/D45628 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Re: [Lldb-commits] [PATCH] D45628: [LLDB] Support compressed debug info sections (.zdebug*)

2018-04-24 Thread Leonard Mosescu via lldb-commits
Hi Erik, the review is still marked as requiring changes. Once that is sorted out I'd be happy to submit this on your behalf (what is the base SVN revision for the latest patch?) Davide Italiano, is all the CR feedback addressed in the latest revision? On Tue, Apr 24, 2018 at 1:38 PM, Erik Weland

[Lldb-commits] [PATCH] D45628: [LLDB] Support compressed debug info sections (.zdebug*)

2018-04-24 Thread Leonard Mosescu via Phabricator via lldb-commits
lemo added subscribers: bgianfo, clayborg, alur, labath, penryu, lemo. lemo added a comment. Hi Erik, the review is still marked as requiring changes. Once that is sorted out I'd be happy to submit this on your behalf (what is the base SVN revision for the latest patch?) Davide Italiano, is all t