Re: [Lldb-commits] [lldb] r324019 - Create a marker for Spotlight to never index $BUILD_DIR.

2018-02-01 Thread Jim Ingham via lldb-commits
Might try adding this patch to the test case: Index: packages/Python/lldbsuite/test/functionalities/breakpoint/breakpoint_case_sensitivity/TestBreakpointCaseSensitivity.py === --- packages/Python/lldbsuite/test/functionalities/break

Re: [Lldb-commits] [lldb] r324019 - Create a marker for Spotlight to never index $BUILD_DIR.

2018-02-01 Thread Davide Italiano via lldb-commits
I'm afraid this still wasn't enough to placate the bots. http://lab.llvm.org:8080/green/view/LLDB/job/lldb-xcode/4647/ Can you please take another look? -- Davide On Thu, Feb 1, 2018 at 2:27 PM, Davide Italiano wrote: > On Thu, Feb 1, 2018 at 2:18 PM, Adrian Prantl via lldb-commits > wrote: >>

[Lldb-commits] [PATCH] D42828: Fix for read-past-end-of-array buglet in ProcessElfCore.cpp while reading linux notes

2018-02-01 Thread Jason Molenda via Phabricator via lldb-commits
jasonmolenda created this revision. jasonmolenda added a reviewer: labath. jasonmolenda added a project: LLDB. Herald added a subscriber: llvm-commits. I caught this while running the testsuite against lldb built with address sanitizer (ASAN) enabled - it found one problem when running the TestL

Re: [Lldb-commits] [lldb] r324019 - Create a marker for Spotlight to never index $BUILD_DIR.

2018-02-01 Thread Davide Italiano via lldb-commits
On Thu, Feb 1, 2018 at 2:18 PM, Adrian Prantl via lldb-commits wrote: > Author: adrian > Date: Thu Feb 1 14:18:02 2018 > New Revision: 324019 > > URL: http://llvm.org/viewvc/llvm-project?rev=324019&view=rev > Log: > Create a marker for Spotlight to never index $BUILD_DIR. > > LLDB queries Spotlig

[Lldb-commits] [lldb] r324019 - Create a marker for Spotlight to never index $BUILD_DIR.

2018-02-01 Thread Adrian Prantl via lldb-commits
Author: adrian Date: Thu Feb 1 14:18:02 2018 New Revision: 324019 URL: http://llvm.org/viewvc/llvm-project?rev=324019&view=rev Log: Create a marker for Spotlight to never index $BUILD_DIR. LLDB queries Spotlight to locate .dSYM bundles based on the UUID embedded in a binary, and because the UUID

[Lldb-commits] [lldb] r324013 - Make use of physical footprint as memory measurement.

2018-02-01 Thread Han Ming Ong via lldb-commits
Author: hanming Date: Thu Feb 1 13:46:40 2018 New Revision: 324013 URL: http://llvm.org/viewvc/llvm-project?rev=324013&view=rev Log: Make use of physical footprint as memory measurement. Remove obsolete measurements. This check in requires at least 10.11 Reviewed: Jason Molenda, Jim Ingham Xc

[Lldb-commits] [lldb] r324010 - Added lldbutil.run_to_name_breakpoint and use it in one test.

2018-02-01 Thread Jim Ingham via lldb-commits
Author: jingham Date: Thu Feb 1 13:35:50 2018 New Revision: 324010 URL: http://llvm.org/viewvc/llvm-project?rev=324010&view=rev Log: Added lldbutil.run_to_name_breakpoint and use it in one test. Using the "run_to_{source,name}_breakpoint will allow us to remove a lot of boiler-plate from the tes

[Lldb-commits] [lldb] r324008 - Remove unused Args variable, and #include of Args.h. NFC.

2018-02-01 Thread Jim Ingham via lldb-commits
Author: jingham Date: Thu Feb 1 13:31:14 2018 New Revision: 324008 URL: http://llvm.org/viewvc/llvm-project?rev=324008&view=rev Log: Remove unused Args variable, and #include of Args.h. NFC. Modified: lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp Modified: lldb/trunk/s

[Lldb-commits] [PATCH] D42763: Build each testcase variant in its own subdirectory and remove the srcdir lock file

2018-02-01 Thread Adrian Prantl via Phabricator via lldb-commits
aprantl added inline comments. Comment at: packages/Python/lldbsuite/test/api/listeners/TestListener.py:26 TestBase.setUp(self) -self.build() labath wrote: > I'm confused by these changes. I was under the impression that setUp() runs > before

[Lldb-commits] [PATCH] D42763: Build each testcase variant in its own subdirectory and remove the srcdir lock file

2018-02-01 Thread Pavel Labath via Phabricator via lldb-commits
labath added inline comments. Comment at: packages/Python/lldbsuite/test/api/listeners/TestListener.py:26 TestBase.setUp(self) -self.build() I'm confused by these changes. I was under the impression that setUp() runs before each test method (a

[Lldb-commits] [PATCH] D42763: Build each testcase variant in its own subdirectory and remove the srcdir lock file

2018-02-01 Thread Adrian Prantl via Phabricator via lldb-commits
aprantl updated this revision to Diff 132456. aprantl added a comment. Fix broken testcases. https://reviews.llvm.org/D42763 Files: packages/Python/lldbsuite/test/api/listeners/TestListener.py packages/Python/lldbsuite/test/functionalities/breakpoint/comp_dir_symlink/TestCompDirSymLink.py

Re: [Lldb-commits] [PATCH] D42763: Build each testcase variant in its own subdirectory and remove the srcdir lock file

2018-02-01 Thread Jim Ingham via lldb-commits
Yeah, no reason to pile on this patch, mostly I was making sure I understood what we could do... Jim > On Feb 1, 2018, at 11:24 AM, Adrian Prantl via Phabricator > wrote: > > aprantl added a comment. > > @jingham wrote: > >> Now that we aren't mixing variants, would it be possible to have

[Lldb-commits] [PATCH] D42763: Build each testcase variant in its own subdirectory and remove the srcdir lock file

2018-02-01 Thread Adrian Prantl via Phabricator via lldb-commits
aprantl added a comment. @jingham wrote: > Now that we aren't mixing variants, would it be possible to have a test class > claim that all the tests use the same binary file? At present to get > self-contained tests you often need to do roughly the same thing many times, > on the same binary.

Re: [Lldb-commits] [PATCH] D42763: Build each testcase variant in its own subdirectory and remove the srcdir lock file

2018-02-01 Thread Jim Ingham via lldb-commits
Now that we aren't mixing variants, would it be possible to have a test class claim that all the tests use the same binary file? At present to get self-contained tests you often need to do roughly the same thing many times, on the same binary. You only need to build it once per variant in that

[Lldb-commits] [PATCH] D42763: Build each testcase variant in its own subdirectory and remove the srcdir lock file

2018-02-01 Thread Adrian Prantl via Phabricator via lldb-commits
aprantl updated this revision to Diff 132433. aprantl added a comment. Update the diff with Pavel's awesome suggestion of using self.testMethodName. Note that that I haven't fixed all the resulting test error yet, I'm working through those now. https://reviews.llvm.org/D42763 Files: package

[Lldb-commits] [PATCH] D42145: [lldb] Use vFlash commands when writing to target's flash memory regions

2018-02-01 Thread Owen Shaw via Phabricator via lldb-commits
owenpshaw added a comment. Thanks! Overall it's feeling like we're getting down to mainly differences in personal preferences and judgements. Not sure if you're looking for a discussion, which I'm happy to have, if you're just looking for changes to definitely be made. If it's the latter, I

Re: [Lldb-commits] [PATCH] D42443: [SymbolFilePDB] Add support for function symbols

2018-02-01 Thread Zachary Turner via lldb-commits
Yea good point. We can probably punt on this for now as it’s just a nice-to-have On Thu, Feb 1, 2018 at 1:38 AM Pavel Labath via Phabricator < revi...@reviews.llvm.org> wrote: > labath added inline comments. > > > > Comment at: lit/SymbolFile/PDB/func-symbols.test:4 > +RUN: clang-

[Lldb-commits] [PATCH] D42195: [lldb] Generic base for testing gdb-remote behavior

2018-02-01 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. In https://reviews.llvm.org/D42195#995087, @clayborg wrote: > I am pretty sure that the ack that gets sent should happen in response to > getting an ACK. Note that LLDB send an ACK and then waits for an ACK. This > helps us see if anything is there. So yes, this code can

[Lldb-commits] [PATCH] D42763: Build each testcase variant in its own subdirectory and remove the srcdir lock file

2018-02-01 Thread Adrian Prantl via Phabricator via lldb-commits
aprantl added a comment. lib/IR -> test/IR https://reviews.llvm.org/D42763 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [PATCH] D42195: [lldb] Generic base for testing gdb-remote behavior

2018-02-01 Thread Greg Clayton via Phabricator via lldb-commits
clayborg added a comment. I am pretty sure that the ack that gets sent should happen in response to getting an ACK. Note that LLDB send an ACK and then waits for an ACK. This helps us see if anything is there. So yes, this code can always just respond to an unsolicited ACK with an ACK. Reposi

[Lldb-commits] [PATCH] D42195: [lldb] Generic base for testing gdb-remote behavior

2018-02-01 Thread Owen Shaw via Phabricator via lldb-commits
owenpshaw added inline comments. Comment at: lldb/trunk/packages/Python/lldbsuite/test/functionalities/gdb_remote_client/gdbclientutils.py:335-337 +# However, if we aren't expecting an ack, it's likely the initial +# ack that lldb client sends, and observ

[Lldb-commits] [PATCH] D42763: Build each testcase variant in its own subdirectory and remove the srcdir lock file

2018-02-01 Thread Pavel Labath via Phabricator via lldb-commits
labath added inline comments. Comment at: packages/Python/lldbsuite/test/lldbinline.py:96-98 +return "-N dwarf %s" % (testdir) else: +return "-N dsym %s" % (testdir) aprantl wrote: > labath wrote: > > xiaobai wrote: > > > Good opp

[Lldb-commits] [PATCH] D42763: Build each testcase variant in its own subdirectory and remove the srcdir lock file

2018-02-01 Thread Adrian Prantl via Phabricator via lldb-commits
aprantl added a comment. > I am not sure this actually creates enough separation. That's a good point. If I manage to extract the testname somehow via Python reflection magic, I could also get rid of the unintuitive self.mydir tuple. I'll give that a try. Comment at: packag

[Lldb-commits] [PATCH] D42763: Build each testcase variant in its own subdirectory and remove the srcdir lock file

2018-02-01 Thread Adrian Prantl via Phabricator via lldb-commits
aprantl updated this revision to Diff 132417. aprantl added a comment. Address review feedback from Alex. https://reviews.llvm.org/D42763 Files: packages/Python/lldbsuite/test/api/listeners/TestListener.py packages/Python/lldbsuite/test/functionalities/breakpoint/comp_dir_symlink/TestCompD

[Lldb-commits] [PATCH] D42145: [lldb] Use vFlash commands when writing to target's flash memory regions

2018-02-01 Thread Greg Clayton via Phabricator via lldb-commits
clayborg added a comment. In https://reviews.llvm.org/D42145#994556, @labath wrote: > I think we're slowly getting there, but we could cleanup the implementation a > bit. > > I am also not sure that the `WriteObjectFile` name really captures what this > function does, but I don't have a sugges

[Lldb-commits] [PATCH] D39307: Fix global data symbol resolution

2018-02-01 Thread Greg Clayton via Phabricator via lldb-commits
clayborg added a comment. It would be nice if we can try and disable the redeclaration lookups from clang when in debugger mode. I can't remember if we already have such a flag in the compiler options. If we do, we should try to just disable this when in debug expression mode and see how the te

[Lldb-commits] [lldb] r323974 - Extend windows->android XFAIL on TestLoadUnload

2018-02-01 Thread Pavel Labath via lldb-commits
Author: labath Date: Thu Feb 1 07:35:55 2018 New Revision: 323974 URL: http://llvm.org/viewvc/llvm-project?rev=323974&view=rev Log: Extend windows->android XFAIL on TestLoadUnload This fails regardless of the android architecture or compiler used. The important bit is the mismatch in path separa

[Lldb-commits] [PATCH] D42195: [lldb] Generic base for testing gdb-remote behavior

2018-02-01 Thread Pavel Labath via Phabricator via lldb-commits
labath added inline comments. Comment at: lldb/trunk/packages/Python/lldbsuite/test/functionalities/gdb_remote_client/gdbclientutils.py:335-337 +# However, if we aren't expecting an ack, it's likely the initial +# ack that lldb client sends, and observati

[Lldb-commits] [lldb] r323953 - mock_gdb_server: rectify ack handling code

2018-02-01 Thread Pavel Labath via lldb-commits
Author: labath Date: Thu Feb 1 03:29:06 2018 New Revision: 323953 URL: http://llvm.org/viewvc/llvm-project?rev=323953&view=rev Log: mock_gdb_server: rectify ack handling code The mock server was sending acks back in response to spurious acks from the client, but the client was not prepared to ha

[Lldb-commits] [PATCH] D42145: [lldb] Use vFlash commands when writing to target's flash memory regions

2018-02-01 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. I think we're slowly getting there, but we could cleanup the implementation a bit. I am also not sure that the `WriteObjectFile` name really captures what this function does, but I don't have a suggestion for a better name either Comment at: incl

[Lldb-commits] [PATCH] D42763: Build each testcase variant in its own subdirectory and remove the srcdir lock file

2018-02-01 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. I am not sure this actually creates enough separation. Plenty of tests have more then one test method per file: TestFoo.py: class FooTestCase(TestBase): NO_DEBUG_INFO_TESTCASE = True def test_bar(self): ... def test_baz(self): ... If I underst

[Lldb-commits] [PATCH] D42443: [SymbolFilePDB] Add support for function symbols

2018-02-01 Thread Pavel Labath via Phabricator via lldb-commits
labath added inline comments. Comment at: lit/SymbolFile/PDB/func-symbols.test:4 +RUN: clang-cl -m32 /Z7 /c /GS- %S/Inputs/FuncSymbols.cpp /o %T/FuncSymbols.cpp.obj +RUN: link %T/FuncSymbolsTestMain.cpp.obj %T/FuncSymbols.cpp.obj /DEBUG /nodefaultlib /Entry:main /OUT:%T/FuncSym