[Lldb-commits] [lldb] r341425 - Change TestCompletion to only ever look inside of BaseDir

2018-09-04 Thread Frederic Riss via lldb-commits
Author: friss Date: Tue Sep 4 16:09:49 2018 New Revision: 341425 URL: http://llvm.org/viewvc/llvm-project?rev=341425&view=rev Log: Change TestCompletion to only ever look inside of BaseDir TestCompletion was failing quite frequently on our Linux bots. Some tracing revealed that when we are itera

[Lldb-commits] [PATCH] D51661: Print column info in backtraces et al. if available

2018-09-04 Thread Adrian Prantl via Phabricator via lldb-commits
aprantl created this revision. aprantl added reviewers: jingham, jasonmolenda. Herald added a subscriber: kubamracek. This patch allows LLDB to print column info in backtraces et al. if available, which is useful when the backtrace contains a frame like the following: `f(can_crash(0), can_crash(

[Lldb-commits] [PATCH] D51615: Set Windows console mode to enable support for ansi escape codes

2018-09-04 Thread Dávid Bolvanský via Phabricator via lldb-commits
xbolva00 updated this revision to Diff 163882. xbolva00 added a comment. - Updated https://reviews.llvm.org/D51615 Files: source/Core/Debugger.cpp Index: source/Core/Debugger.cpp === --- source/Core/Debugger.cpp +++ source/Core

[Lldb-commits] [PATCH] D51615: Set Windows console mode to enable support for ansi escape codes

2018-09-04 Thread Dávid Bolvanský via Phabricator via lldb-commits
xbolva00 planned changes to this revision. xbolva00 added a comment. I will reuse the accepted code which arrives with https://reviews.llvm.org/D51611 here also. https://reviews.llvm.org/D51615 ___ lldb-commits mailing list lldb-commits@lists.llvm.

[Lldb-commits] [PATCH] D51604: Terminate debugger if an assert was hit

2018-09-04 Thread Dávid Bolvanský via Phabricator via lldb-commits
xbolva00 added a comment. In https://reviews.llvm.org/D51604#1223455, @clayborg wrote: > In https://reviews.llvm.org/D51604#1223451, @xbolva00 wrote: > > > Thanks for review, commited as https://reviews.llvm.org/rL341387 > > > If you include the text: > > Differential Revision: https://reviews.

[Lldb-commits] [PATCH] D51604: Terminate debugger if an assert was hit

2018-09-04 Thread Greg Clayton via Phabricator via lldb-commits
clayborg added a comment. In https://reviews.llvm.org/D51604#1223451, @xbolva00 wrote: > Thanks for review, commited as https://reviews.llvm.org/rL341387 If you include the text: Differential Revision: https://reviews.llvm.org/D51604 It will automatically close this and put in a comment wit

[Lldb-commits] [PATCH] D51604: Terminate debugger if an assert was hit

2018-09-04 Thread Dávid Bolvanský via Phabricator via lldb-commits
xbolva00 added a comment. Thanks for review, commited as https://reviews.llvm.org/rL341387 https://reviews.llvm.org/D51604 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [PATCH] D51604: Terminate debugger if an assert was hit

2018-09-04 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere accepted this revision as: JDevlieghere. JDevlieghere added a comment. This revision is now accepted and ready to land. LGTM https://reviews.llvm.org/D51604 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org

[Lldb-commits] [PATCH] D51569: Hold GIL while allocating memory for PythonString.

2018-09-04 Thread Tatyana Krasnukha via Phabricator via lldb-commits
tatyana-krasnukha added a comment. I have a third party module which implements a custom command for LLDB. The command calls `str(target)`, `str(process)`, etc. for logging. Anyway, every call to these functions will cause this crash to happen, because PythonString is allocated after releasing

[Lldb-commits] [PATCH] D51604: Terminate debugger if an assert was hit

2018-09-04 Thread Dávid Bolvanský via Phabricator via lldb-commits
xbolva00 updated this revision to Diff 163852. xbolva00 added a comment. - Use abort https://reviews.llvm.org/D51604 Files: source/Utility/LLDBAssert.cpp Index: source/Utility/LLDBAssert.cpp === --- source/Utility/LLDBAssert.cp

[Lldb-commits] [PATCH] D51604: Terminate debugger if an assert was hit

2018-09-04 Thread Greg Clayton via Phabricator via lldb-commits
clayborg added a comment. Yes abort is better as exit will cause the global C++ destructor chain to be called. I was always thinking lldbassert() was aborting, but seeing as this is not the case this could cause problems if you enable it as it will be a change. Watch the buildbots carefully.

[Lldb-commits] [PATCH] D51569: Hold GIL while allocating memory for PythonString.

2018-09-04 Thread Greg Clayton via Phabricator via lldb-commits
clayborg added a comment. What kind of scenario causes this crash to happen? Seems like a hack? Repository: rLLDB LLDB https://reviews.llvm.org/D51569 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman

[Lldb-commits] [PATCH] D51600: [NFC] Fixed enum constant in boolean context error

2018-09-04 Thread Dávid Bolvanský via Phabricator via lldb-commits
xbolva00 added a comment. Ok, I messed up my LLDB svn a bit yesterday so probably I have found reason of that strange behavior. I will re-setup it locally. Thanks. Repository: rLLDB LLDB https://reviews.llvm.org/D51600 ___ lldb-commits mailing l

[Lldb-commits] [PATCH] D51604: Terminate debugger if an assert was hit

2018-09-04 Thread Leonard Mosescu via Phabricator via lldb-commits
lemo added inline comments. Comment at: source/Utility/LLDBAssert.cpp:31 +"log, and as many details as possible\n"; + exit(1); } abort() may be a better choice here (exit() path calls a lot of shutdown code and it's not safe in a number of cases)

[Lldb-commits] [PATCH] D51600: [NFC] Fixed enum constant in boolean context error

2018-09-04 Thread Dávid Bolvanský via Phabricator via lldb-commits
xbolva00 added a comment. In https://reviews.llvm.org/D51600#1223303, @clayborg wrote: > If you insert the text: > > Differential Revision: https://reviews.llvm.org/D51600 > > > Into your commit it will automatically show the SVN revision that was used > for the commit. Can you attach the SVN

[Lldb-commits] [PATCH] D51600: [NFC] Fixed enum constant in boolean context error

2018-09-04 Thread Raphael Isemann via Phabricator via lldb-commits
teemperor added a comment. (you can also try arcanist which will do this automatically for you) Repository: rLLDB LLDB https://reviews.llvm.org/D51600 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman

[Lldb-commits] [PATCH] D51600: [NFC] Fixed enum constant in boolean context error

2018-09-04 Thread Greg Clayton via Phabricator via lldb-commits
clayborg added a comment. If you insert the text: Differential Revision: https://reviews.llvm.org/D51600 Into your commit it will automatically show the SVN revision that was used for the commit. Can you attach the SVN revision to this as a comment so we can track this? Repository: rLLDB

[Lldb-commits] [PATCH] D48704: [LLDB] Fix for "Bug 37950: ExecutionContext::GetByteOrder() always returns endian::InlHostByteOrder()"

2018-09-04 Thread Greg Clayton via Phabricator via lldb-commits
clayborg added a comment. Should be easy to write unit test for ExecutionContext.cpp. See FileSpecTest.cpp for how to implement a unit test for a .cpp file. Repository: rLLDB LLDB https://reviews.llvm.org/D48704 ___ lldb-commits mailing list lld

[Lldb-commits] [PATCH] D51557: Replace uses of LazyBool with LazyBool template

2018-09-04 Thread Greg Clayton via Phabricator via lldb-commits
clayborg added a comment. Very nice. LGTM https://reviews.llvm.org/D51557 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [PATCH] D51615: Set Windows console mode to enable support for ansi escape codes

2018-09-04 Thread Dávid Bolvanský via Phabricator via lldb-commits
xbolva00 updated this revision to Diff 163820. xbolva00 added a comment. - Addressed review comments https://reviews.llvm.org/D51615 Files: source/Core/Debugger.cpp Index: source/Core/Debugger.cpp === --- source/Core/Debugger.c

[Lldb-commits] [PATCH] D51569: Hold GIL while allocating memory for PythonString.

2018-09-04 Thread Tatyana Krasnukha via Phabricator via lldb-commits
tatyana-krasnukha added a comment. Yes, and `%feature("nothreadallow")` doesn't allow to release GIL before calling these functions - it prevents Swig from wrapping them into SWIG_PYTHON_THREAD_BEGIN_ALLOW .. SWIG_PYTHON_THREAD_END_ALLOW block. Repository: rLLDB LLDB https://reviews.llvm.o

[Lldb-commits] [PATCH] D51604: Terminate debugger if an assert was hit

2018-09-04 Thread Dávid Bolvanský via Phabricator via lldb-commits
xbolva00 updated this revision to Diff 163818. xbolva00 added a comment. - Use early return https://reviews.llvm.org/D51604 Files: source/Utility/LLDBAssert.cpp Index: source/Utility/LLDBAssert.cpp === --- source/Utility/LLDBAs

[Lldb-commits] [PATCH] D51569: Hold GIL while allocating memory for PythonString.

2018-09-04 Thread Greg Clayton via Phabricator via lldb-commits
clayborg added a comment. Not sure about this one. IIUC we now wouldn't take the GIL for these functions now and hope that the str() function doesn't do something that would require thread safety? Repository: rLLDB LLDB https://reviews.llvm.org/D51569

[Lldb-commits] [PATCH] D51615: Set Windows console mode to enable support for ansi escape codes

2018-09-04 Thread Dávid Bolvanský via Phabricator via lldb-commits
xbolva00 added inline comments. Comment at: source/Core/Debugger.cpp:819 + consoleMode |= ENABLE_VIRTUAL_TERMINAL_PROCESSING; + SetUseColor(SetConsoleMode(hConsole, consoleMode)); +#endif Should I rewrite it to more clear version like bool ansi_supported = Set

[Lldb-commits] [PATCH] D51604: Terminate debugger if an assert was hit

2018-09-04 Thread Dávid Bolvanský via Phabricator via lldb-commits
xbolva00 added inline comments. Comment at: source/Utility/LLDBAssert.cpp:23 if (expression) ; else { JDevlieghere wrote: > I guess while we're at it we can turn this into an early return and use > LLVM_LIKELY? > > ``` > if (LLVM_LIKELY(expression))

[Lldb-commits] [PATCH] D51602: Print the correct error when our DynamicCheckerFunctions fail to install

2018-09-04 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere accepted this revision as: JDevlieghere. JDevlieghere added a comment. This revision is now accepted and ready to land. LGTM! Repository: rLLDB LLDB https://reviews.llvm.org/D51602 ___ lldb-commits mailing list lldb-commits@lists.llv

[Lldb-commits] [PATCH] D51604: Terminate debugger if an assert was hit

2018-09-04 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere added inline comments. Comment at: source/Utility/LLDBAssert.cpp:23 if (expression) ; else { I guess while we're at it we can turn this into an early return and use LLVM_LIKELY? ``` if (LLVM_LIKELY(expression)) return; ``` Reposito

[Lldb-commits] [PATCH] D51615: Set Windows console mode to enable support for ansi escape codes

2018-09-04 Thread Dávid Bolvanský via Phabricator via lldb-commits
xbolva00 added a comment. In https://reviews.llvm.org/D51615#1222730, @teemperor wrote: > Thanks! Didn't know we can activate this setting for the user. > > Some questions though: Should we restore this setting to the original value > after LLDB shuts down? Good question. I tried run lldb, qui

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

2018-09-04 Thread Raphael Isemann via Phabricator via lldb-commits
teemperor requested changes to this revision. teemperor added a comment. This revision now requires changes to proceed. Please add the header also to the modulemap in Host (which has to be manually written, as the Host module contains a lot of OS-specific headers): `module SafeMachO { header "Hos

[Lldb-commits] [PATCH] D51615: Set Windows console mode to enable support for ansi escape codes

2018-09-04 Thread Raphael Isemann via Phabricator via lldb-commits
teemperor requested changes to this revision. teemperor added a comment. This revision now requires changes to proceed. Thanks! Didn't know we can activate this setting for the user. Some questions though: Should we restore this setting to the original value after LLDB shuts down? And what happe

[Lldb-commits] [PATCH] D51615: Set Windows console mode to enable support for ansi escape codes

2018-09-04 Thread Dávid Bolvanský via Phabricator via lldb-commits
xbolva00 created this revision. xbolva00 added reviewers: JDevlieghere, teemperor. Herald added subscribers: lldb-commits, abidh. Windows console now supports supports ANSI escape codes, but we need to enable it using SetConsoleMode with ENABLE_VIRTUAL_TERMINAL_PROCESSING flag. https://docs.micr