[Lldb-commits] [lldb] r251733 - Fix Clang-tidy modernize-use-nullptr warnings in include/lldb/API and source/API; other minor fixes.

2015-10-30 Thread Eugene Zelenko via lldb-commits
Author: eugenezelenko Date: Fri Oct 30 20:22:59 2015 New Revision: 251733 URL: http://llvm.org/viewvc/llvm-project?rev=251733&view=rev Log: Fix Clang-tidy modernize-use-nullptr warnings in include/lldb/API and source/API; other minor fixes. Other fixes should reduce number of readability-redunda

[Lldb-commits] [lldb] r251732 - Harden this test case to do the right thing in the face of compiler changes

2015-10-30 Thread Enrico Granata via lldb-commits
Author: enrico Date: Fri Oct 30 20:19:27 2015 New Revision: 251732 URL: http://llvm.org/viewvc/llvm-project?rev=251732&view=rev Log: Harden this test case to do the right thing in the face of compiler changes Modified: lldb/trunk/packages/Python/lldbsuite/test/lang/c/const_variables/TestCons

[Lldb-commits] [lldb] r251730 - Fix Clang-tidy modernize-use-override warnings in include/lldb/Expression, source/Expression and tools/lldb-mi; other minor fixes.

2015-10-30 Thread Eugene Zelenko via lldb-commits
Author: eugenezelenko Date: Fri Oct 30 19:43:59 2015 New Revision: 251730 URL: http://llvm.org/viewvc/llvm-project?rev=251730&view=rev Log: Fix Clang-tidy modernize-use-override warnings in include/lldb/Expression, source/Expression and tools/lldb-mi; other minor fixes. Modified: lldb/trunk/

Re: [Lldb-commits] [lldb] r251727 - Abstract the notion of the truth value of an expression result, for use

2015-10-30 Thread Enrico Granata via lldb-commits
> On Oct 30, 2015, at 5:02 PM, Jim Ingham via lldb-commits > wrote: > > bool > +ValueObject::IsLogicalTrue (Error& error) > +{ > +Scalar scalar_value; > + > +if (!ResolveValue (scalar_value)) > +{ > +error.SetErrorString("failed to get a scalar result"); > +retur

[Lldb-commits] [lldb] r251727 - Abstract the notion of the truth value of an expression result, for use

2015-10-30 Thread Jim Ingham via lldb-commits
Author: jingham Date: Fri Oct 30 19:02:18 2015 New Revision: 251727 URL: http://llvm.org/viewvc/llvm-project?rev=251727&view=rev Log: Abstract the notion of the truth value of an expression result, for use in breakpoint conditions. Modified: lldb/trunk/include/lldb/Core/ValueObject.h lldb

[Lldb-commits] [lldb] r251722 - Make the error return more explicit when an SBValue has no value.

2015-10-30 Thread Jim Ingham via lldb-commits
Author: jingham Date: Fri Oct 30 16:43:15 2015 New Revision: 251722 URL: http://llvm.org/viewvc/llvm-project?rev=251722&view=rev Log: Make the error return more explicit when an SBValue has no value. Modified: lldb/trunk/source/API/SBValue.cpp Modified: lldb/trunk/source/API/SBValue.cpp URL:

[Lldb-commits] [lldb] r251721 - Add a few missing includes.

2015-10-30 Thread Jim Ingham via lldb-commits
Author: jingham Date: Fri Oct 30 16:32:25 2015 New Revision: 251721 URL: http://llvm.org/viewvc/llvm-project?rev=251721&view=rev Log: Add a few missing includes. Modified: lldb/trunk/include/lldb/API/LLDB.h Modified: lldb/trunk/include/lldb/API/LLDB.h URL: http://llvm.org/viewvc/llvm-projec

[Lldb-commits] [lldb] r251720 - Fix an error message (the debugger was invalid, not the target.)

2015-10-30 Thread Jim Ingham via lldb-commits
Author: jingham Date: Fri Oct 30 16:32:03 2015 New Revision: 251720 URL: http://llvm.org/viewvc/llvm-project?rev=251720&view=rev Log: Fix an error message (the debugger was invalid, not the target.) Modified: lldb/trunk/source/API/SBDebugger.cpp Modified: lldb/trunk/source/API/SBDebugger.cpp

Re: [Lldb-commits] [PATCH] D14182: Centos 5 compile fixes for lldb

2015-10-30 Thread Ed Maste via lldb-commits
emaste added a subscriber: emaste. emaste added a comment. For future diffs please include additional context (e.g. git diff -U9) Repository: rL LLVM http://reviews.llvm.org/D14182 ___ lldb-commits mailing list lldb-commits@lists.llvm.org htt

[Lldb-commits] [PATCH] D14182: Centos 5 compile fixes for lldb

2015-10-30 Thread Mark Chandler via lldb-commits
mchandler-blizzard created this revision. mchandler-blizzard added reviewers: labath, ovyalov. mchandler-blizzard added a subscriber: lldb-commits. mchandler-blizzard set the repository for this revision to rL LLVM. Herald added subscribers: srhines, danalbert, tberghammer. Adds checks for posix f

Re: [Lldb-commits] [PATCH] D14182: Centos 5 compile fixes for lldb

2015-10-30 Thread Mark Chandler via lldb-commits
mchandler-blizzard added inline comments. Comment at: tools/lldb/source/Host/common/File.cpp:301 @@ -299,1 +300,3 @@ + +#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,23) if (options & eOpenOptionCloseOnExec) krytarowski wrote: > labath wrote: > > This need

Re: [Lldb-commits] [lldb] r251681 - Added real editline tests.

2015-10-30 Thread Todd Fiala via lldb-commits
It should already be there. I had a single test in it before (a do-nothing single test), for maybe 4 or 5 days. On Fri, Oct 30, 2015 at 9:48 AM, Zachary Turner wrote: > BTW, can you add EditlineTests.cpp to unittests/Editline/CMakeLists.txt? > Currently this unittest only appears to be enabled

Re: [Lldb-commits] [lldb] r251678 - Some test cases that need the lldbExec path were failing because lldbExec was turning out to be None even though it was being validly set by dotest.py

2015-10-30 Thread Jim Ingham via lldb-commits
Note, the other important step was that you had to have an lldb installed in /usr/bin/lldb that FAILED this test. If you have a more recent lldb there, the test will succeed, and you won't notice you aren't testing your newly built sources. Jim > On Oct 30, 2015, at 1:25 PM, Enrico Granata vi

Re: [Lldb-commits] [lldb] r251678 - Some test cases that need the lldbExec path were failing because lldbExec was turning out to be None even though it was being validly set by dotest.py

2015-10-30 Thread Zachary Turner via lldb-commits
Thanks. I'll follow up next week after I do some investigation On Fri, Oct 30, 2015 at 1:25 PM Enrico Granata wrote: > I think what I was doing is be in lldb/test and do > > $ ./dotest.py ../packages/python/lldbsuite/functionalities/completion > > On Oct 30, 2015, at 12:22 PM, Zachary Turner w

Re: [Lldb-commits] [lldb] r251678 - Some test cases that need the lldbExec path were failing because lldbExec was turning out to be None even though it was being validly set by dotest.py

2015-10-30 Thread Enrico Granata via lldb-commits
I think what I was doing is be in lldb/test and do $ ./dotest.py ../packages/python/lldbsuite/functionalities/completion > On Oct 30, 2015, at 12:22 PM, Zachary Turner wrote: > > Can you give me a command line which will reproduce the original problem? > Because I ran through the entire test

Re: [Lldb-commits] [PATCH] D14166: Correctly include LLVM_EXTERNAL_CLANG_SOURCE_DIR.

2015-10-30 Thread Stephane Sezer via lldb-commits
sas added a comment. Thanks for fixing this. Didn't test external LLVM builds. Repository: rL LLVM http://reviews.llvm.org/D14166 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commit

Re: [Lldb-commits] [lldb] r251678 - Some test cases that need the lldbExec path were failing because lldbExec was turning out to be None even though it was being validly set by dotest.py

2015-10-30 Thread Zachary Turner via lldb-commits
Can you give me a command line which will reproduce the original problem? Because I ran through the entire test suite and nothing failed, so I want to make sure we're doing the same thing. I'm still a little confused about how this happens, but I plan to look into it when I'm back on Monday and se

Re: [Lldb-commits] [lldb] r251678 - Some test cases that need the lldbExec path were failing because lldbExec was turning out to be None even though it was being validly set by dotest.py

2015-10-30 Thread Enrico Granata via lldb-commits
> On Oct 29, 2015, at 11:31 PM, Zachary Turner wrote: > > Wow. That's a weird problem. Thanks for finding it! > > Would it work if we move the definition of the `lldbtest_config` class into > lldbsuite/test/__init__.py? This way the configuration should be part of the > global package st

[Lldb-commits] [lldb] r251716 - Fix Clang-tidy modernize-use-nullptr warnings in source/Breakpoint; other minor fixes.

2015-10-30 Thread Eugene Zelenko via lldb-commits
Author: eugenezelenko Date: Fri Oct 30 13:50:12 2015 New Revision: 251716 URL: http://llvm.org/viewvc/llvm-project?rev=251716&view=rev Log: Fix Clang-tidy modernize-use-nullptr warnings in source/Breakpoint; other minor fixes. Modified: lldb/trunk/source/Breakpoint/Breakpoint.cpp lldb/tr

Re: [Lldb-commits] [PATCH] D13296: [LLDB] Fix watchpoint ignore feature for architectures with watchpoint_exceptions_received=before

2015-10-30 Thread Jim Ingham via lldb-commits
jingham added a subscriber: jingham. jingham added a comment. The substance is fine. I fixed up the grammar a little, maybe something like: TODO: This condition should be checked in the synchronous part of the watchpoint code (Watchpoint::ShouldStop), so that we avoid pulling an event even if

Re: [Lldb-commits] [PATCH] D13296: [LLDB] Fix watchpoint ignore feature for architectures with watchpoint_exceptions_received=before

2015-10-30 Thread Jim Ingham via lldb-commits
The substance is fine. I fixed up the grammar a little, maybe something like: TODO: This condition should be checked in the synchronous part of the watchpoint code (Watchpoint::ShouldStop), so that we avoid pulling an event even if the watchpoint fails the ignore count condition. It is moved h

Re: [Lldb-commits] [lldb] r251681 - Added real editline tests.

2015-10-30 Thread Zachary Turner via lldb-commits
BTW, can you add EditlineTests.cpp to unittests/Editline/CMakeLists.txt? Currently this unittest only appears to be enabled for the Xcode build (and it might actually break the CMake build since CMake complains if there is a cpp file that is not added to a target) On Fri, Oct 30, 2015 at 9:43 AM T

Re: [Lldb-commits] [lldb] r251681 - Added real editline tests.

2015-10-30 Thread Todd Fiala via lldb-commits
> Should a unittest really have debug printfs? Those are behind a define. edit line is inherently about converting input to output, and when we layer in auto-tabbing, auto-completion, etc. it is critical in test development to see how these develop. Every single touch of this test is going to in

Re: [Lldb-commits] [lldb] r251681 - Added real editline tests.

2015-10-30 Thread Todd Fiala via lldb-commits
> What are all these setenv lines for? libedit requires a TERM to know how to deal with the screen. We can't talk to libedit if it can't figure out what kind of terminal it is working with. > Another option is to use TEST_F instead of TEST(), and then declare a class with Setup() and TearDown()

[Lldb-commits] [lldb] r251704 - Remove 2 lines missed in earlier commit (r251636).

2015-10-30 Thread Hafiz Abid Qadeer via lldb-commits
Author: abidh Date: Fri Oct 30 11:20:40 2015 New Revision: 251704 URL: http://llvm.org/viewvc/llvm-project?rev=251704&view=rev Log: Remove 2 lines missed in earlier commit (r251636). Modified: lldb/trunk/tools/lldb-mi/MICmdCmdStack.cpp Modified: lldb/trunk/tools/lldb-mi/MICmdCmdStack.cpp UR

Re: [Lldb-commits] [lldb] r251678 - Some test cases that need the lldbExec path were failing because lldbExec was turning out to be None even though it was being validly set by dotest.py

2015-10-30 Thread Zachary Turner via lldb-commits
I'm also still a little confused why this worked before my patch. How is unittest2 importing the individual tests in a way that behaves differently when dotest is a package (now) versus a standalone script (before)? On Thu, Oct 29, 2015 at 11:31 PM Zachary Turner wrote: > Wow. That's a weird p

[Lldb-commits] [lldb] r251699 - Mark another TestEvents test as flaky on linux

2015-10-30 Thread Pavel Labath via lldb-commits
Author: labath Date: Fri Oct 30 09:08:19 2015 New Revision: 251699 URL: http://llvm.org/viewvc/llvm-project?rev=251699&view=rev Log: Mark another TestEvents test as flaky on linux I don't think anything has changed recently - the test was always flaky, but only very rarely. Still, it is causing n

[Lldb-commits] [PATCH] D14201: Fix race during process detach

2015-10-30 Thread Pavel Labath via lldb-commits
labath created this revision. labath added reviewers: clayborg, jingham. labath added a subscriber: lldb-commits. The code which was preventing the usage of the OS plugin while detach is in progress also prevented us to update the thread list correctly. This resulted in an empty thread list, which

Re: [Lldb-commits] [PATCH] D12877: [LLDB] Switch to assembly view if source is moved

2015-10-30 Thread Mohit Bhakkad via lldb-commits
mohit.bhakkad updated this revision to Diff 38799. mohit.bhakkad added a comment. Changes in this revision: - changed no-source to no-debuginfo and made it default - now no-source means display assembly if source file is missing, even if debug-info is present. Repository: rL LLVM http://rev

Re: [Lldb-commits] [PATCH] D13296: [LLDB] Fix watchpoint ignore feature for architectures with watchpoint_exceptions_received=before

2015-10-30 Thread Mohit Bhakkad via lldb-commits
mohit.bhakkad added a comment. I forgot about note part, is it okay to add a TODO before ignore count condition in source/Target/StopInfo.cpp: TODO: This condition should be checked in synchronous part of watchpoint code (Watchpoint::ShouldStop), so that we avoid pulling an event even if watch

[Lldb-commits] [PATCH] D14197: Handle the option and parameter separator in every command.

2015-10-30 Thread Hafiz Abid Qadeer via lldb-commits
abidh created this revision. abidh added a reviewer: ki.stfu. abidh added a subscriber: lldb-commits. As per the following link, the "--" as separator between options and parameter can come in any command. Currently, it was being handled in only one command. I have moved into the base so that any

Re: [Lldb-commits] [PATCH] D13296: [LLDB] Fix watchpoint ignore feature for architectures with watchpoint_exceptions_received=before

2015-10-30 Thread Mohit Bhakkad via lldb-commits
mohit.bhakkad requested a review of this revision. mohit.bhakkad added a comment. > Note, if you end up going with the current patch, isn't quite right, however. > You need to move the check for the watchpoint ignore count up before > printing out the old & new values. An ignored watchpoint