[Lldb-commits] [lldb] r289164 - Modernize the Args access pattern in a few more commands.

2016-12-08 Thread Zachary Turner via lldb-commits
Author: zturner Date: Thu Dec 8 19:08:29 2016 New Revision: 289164 URL: http://llvm.org/viewvc/llvm-project?rev=289164&view=rev Log: Modernize the Args access pattern in a few more commands. Modified: lldb/trunk/include/lldb/Interpreter/CommandObject.h lldb/trunk/source/Commands/CommandO

[Lldb-commits] [lldb] r289168 - Fix some occurrences of passing StringRef to Printf.

2016-12-08 Thread Zachary Turner via lldb-commits
Author: zturner Date: Thu Dec 8 19:20:58 2016 New Revision: 289168 URL: http://llvm.org/viewvc/llvm-project?rev=289168&view=rev Log: Fix some occurrences of passing StringRef to Printf. Hopefully these will all disappear in the future once we move to formatv. Modified: lldb/trunk/source/Com

[Lldb-commits] [lldb] r289188 - Remove some more uses of Args::GetArgumentAtIndex.

2016-12-08 Thread Zachary Turner via lldb-commits
Author: zturner Date: Thu Dec 8 23:46:41 2016 New Revision: 289188 URL: http://llvm.org/viewvc/llvm-project?rev=289188&view=rev Log: Remove some more uses of Args::GetArgumentAtIndex. Modified: lldb/trunk/source/Commands/CommandObjectMultiword.cpp lldb/trunk/source/Commands/CommandObject

Re: [Lldb-commits] [PATCH] D27632: Add Formatv() versions of all our printf style formatting functions

2016-12-09 Thread Zachary Turner via lldb-commits
Seems reasonable, I'll make a FileSpec formatter and update the patch On Fri, Dec 9, 2016 at 4:03 PM Greg Clayton via Phabricator < revi...@reviews.llvm.org> wrote: > clayborg requested changes to this revision. > clayborg added a comment. > This revision now requires changes to proceed. > > I wou

Re: [Lldb-commits] [PATCH] D27632: Add Formatv() versions of all our printf style formatting functions

2016-12-10 Thread Zachary Turner via lldb-commits
I would say format provider should be the default way to add formatting for a commonly formatted type. Member function syntax is used to implement adaptors that allow you to override formatting behavior of a type that already has a provider. One nice thing about F and D would be this: formatv("Di

Re: [Lldb-commits] [PATCH] D27632: Add Formatv() versions of all our printf style formatting functions

2016-12-10 Thread Zachary Turner via lldb-commits
To elaborate about member function vs format provider, decoupling types from the way they're formatted seems like a good design practice in general. For example, you might want to add support for formatting a class which you don't have the code to. Sure, you can do it one way whenever possible an

Re: [Lldb-commits] [PATCH] D27707: Remove code needed for supporting old VS versions.

2016-12-13 Thread Zachary Turner via lldb-commits
Lgtm thanks On Tue, Dec 13, 2016 at 2:33 AM Hafiz Abid Qadeer via Phabricator < revi...@reviews.llvm.org> wrote: > abidh created this revision. > abidh added a reviewer: zturner. > abidh added a subscriber: lldb-commits. > > This code was probably needed to support VS2013 and is not needed now. I

Re: [Lldb-commits] [lldb] r289711 - Adopt PrettyStackTrace in LLDB

2016-12-14 Thread Zachary Turner via lldb-commits
On Wed, Dec 14, 2016 at 1:41 PM Sean Callanan via lldb-commits < lldb-commits@lists.llvm.org> wrote: > > Modified: lldb/trunk/source/API/SBFrame.cpp > URL: > http://llvm.org/viewvc/llvm-project/lldb/trunk/source/API/SBFrame.cpp?rev=289711&r1=289710&r2=289711&view=diff > > =

Re: [Lldb-commits] [PATCH] D27759: Fix build for mingw.

2016-12-15 Thread Zachary Turner via lldb-commits
Looks good On Thu, Dec 15, 2016 at 2:16 AM Hafiz Abid Qadeer via Phabricator < revi...@reviews.llvm.org> wrote: > abidh added a comment. > > In https://reviews.llvm.org/D27759#622332, @labath wrote: > > > Yeah, I meant using it everywhere as a generic "am I on windows, > regardless of the compiler

Re: [Lldb-commits] [PATCH] D26757: Fix broken escaping of commands in the build

2016-12-15 Thread Zachary Turner via lldb-commits
I think this was lgtm'ed wasn't it? On Thu, Dec 15, 2016 at 9:46 AM Luke Drummond via Phabricator < revi...@reviews.llvm.org> wrote: > ldrumm marked 2 inline comments as done. > ldrumm added a comment. > > ping > > > https://reviews.llvm.org/D26757 > > > >

[Lldb-commits] [lldb] r289922 - Add methods to enable using formatv syntax in LLDB.

2016-12-15 Thread Zachary Turner via lldb-commits
Author: zturner Date: Thu Dec 15 22:27:00 2016 New Revision: 289922 URL: http://llvm.org/viewvc/llvm-project?rev=289922&view=rev Log: Add methods to enable using formatv syntax in LLDB. This adds formatv-backed formatting functions in various places in LLDB such as StreamString, logging, construc

Re: [Lldb-commits] [PATCH] D27780: Make OptionDefinition structure store a StringRef

2016-12-15 Thread Zachary Turner via lldb-commits
So I ran into a nasty problem doing the rest of the conversions and at the moment I'm not sure if there's even a workaround. So this is on hold while I think about it. On Thu, Dec 15, 2016 at 8:06 PM Zachary Turner via Phabricator < revi...@reviews.llvm.org> wrote: > zturner added a comment. > >

[Lldb-commits] [lldb] r289994 - Fix compiler warning.

2016-12-16 Thread Zachary Turner via lldb-commits
Author: zturner Date: Fri Dec 16 15:35:12 2016 New Revision: 289994 URL: http://llvm.org/viewvc/llvm-project?rev=289994&view=rev Log: Fix compiler warning. Modified: lldb/trunk/source/Commands/CommandObjectMemory.cpp Modified: lldb/trunk/source/Commands/CommandObjectMemory.cpp URL: http://l

Re: [Lldb-commits] [lldb] r290819 - [unittests] Split DWARF tests out of PDB, fix standalone build

2017-01-03 Thread Zachary Turner via lldb-commits
Hi Michal, It looks like this patch may have broken this bot. http://lab.llvm.org:8080/green/job/lldb_build_test/23767/consoleFull#-1083450927b825e790-484f-4586-af29-73c4754ff671 What do you think? On Mon, Jan 2, 2017 at 10:31 AM Michal Gorny via lldb-commits < lldb-commits@lists.llvm.org> wrote

Re: [Lldb-commits] [PATCH] D28305: [Host] Handle short reads and writes, take 3

2017-01-04 Thread Zachary Turner via lldb-commits
Honestly I would just assume we blanket kill FILE* across the entire codebase. It's non-portable, doesn't interoperate with Python 3, doesn't interoperate with C++ library facilities, and is clunky to deal with on Windows since most of the useful APIs won't accept one. On Wed, Jan 4, 2017 at 2:04

[Lldb-commits] [lldb] r291291 - Install lldb Python module on Windows.

2017-01-06 Thread Zachary Turner via lldb-commits
Author: zturner Date: Fri Jan 6 16:05:35 2017 New Revision: 291291 URL: http://llvm.org/viewvc/llvm-project?rev=291291&view=rev Log: Install lldb Python module on Windows. Patch by Vadim Chugunov Differential Revision: https://reviews.llvm.org/D27476 Modified: lldb/trunk/scripts/CMakeLists.

Re: [Lldb-commits] [PATCH] D28519: Add format_provider for the Error class

2017-01-11 Thread Zachary Turner via lldb-commits
Official Lgtm On Wed, Jan 11, 2017 at 4:48 AM Pavel Labath via Phabricator < revi...@reviews.llvm.org> wrote: > labath added a comment. > > In https://reviews.llvm.org/D28519#641938, @clayborg wrote: > > > You can't add anything extra to the AsCString() since it returns a > "const char *". You can

Re: [Lldb-commits] [PATCH] D28858: Replace getcwd with the llvm equivalent

2017-01-23 Thread Zachary Turner via lldb-commits
Sorry forgot about this, looks good On Mon, Jan 23, 2017 at 7:55 AM Pavel Labath via Phabricator < revi...@reviews.llvm.org> wrote: > labath added a comment. > > Any objections to this, Zach? > > > https://reviews.llvm.org/D28858 > > > > ___ lldb-commits

Re: [Lldb-commits] [PATCH] D29359: Start breaking some dependencies in lldbUtility

2017-01-31 Thread Zachary Turner via lldb-commits
Thanks for the clarification, I wrote "try to convert" there because I didn't look closely enough to see what problem it was solving. Since it seems to be specific to ValueObject (which a grep confirms), we may be able to just move the code for SharingPtr next to ValueObject. That said, SharingPt

Re: [Lldb-commits] [PATCH] D29359: Start breaking some dependencies in lldbUtility

2017-01-31 Thread Zachary Turner via lldb-commits
llvm::Error only enforces checking at the point that it goes out of scope. So the example you mention should be supported, as long as you propagate the value all the way up and don't destroy it. There's also ways to explicitly ignore an Error (similar to casting to void to make the compiler not war

Re: [Lldb-commits] [PATCH] D29359: Start breaking some dependencies in lldbUtility

2017-01-31 Thread Zachary Turner via lldb-commits
Yea, there may be value in both. If i ever tried to do this I'd probably take the approach of converting all the obvious cases first that should enforce checking and then see what's left. Then we could use llvm:Error and lldb::Status, or something On Tue, Jan 31, 2017 at 5:39 PM Jim Ingham wrote:

Re: [Lldb-commits] [PATCH] D29359: Start breaking some dependencies in lldbUtility

2017-01-31 Thread Zachary Turner via lldb-commits
Are you interested in seeing the followup patches for review (moving classes from Core -> Utility etc), or does it sound reasonable just based on my description? On Tue, Jan 31, 2017 at 6:05 PM Jim Ingham wrote: > BTW, not to exclude the positive because it doesn't need discussing: all > the res

Re: [Lldb-commits] [PATCH] D29359: Start breaking some dependencies in lldbUtility

2017-02-01 Thread Zachary Turner via lldb-commits
Correct, I'm not doing any of the "long term" stuff now, I was just thinking out loud with that. On Wed, Feb 1, 2017 at 10:49 AM Jim Ingham wrote: > I don't think any of this should be terribly controversial. The "Long > term" part of the proposals might be, but that's not what you're talking >

[Lldb-commits] [lldb] r293806 - Break some dependencies in lldbUtility.

2017-02-01 Thread Zachary Turner via lldb-commits
Author: zturner Date: Wed Feb 1 13:45:14 2017 New Revision: 293806 URL: http://llvm.org/viewvc/llvm-project?rev=293806&view=rev Log: Break some dependencies in lldbUtility. Differential Revision: https://reviews.llvm.org/D29359 Removed: lldb/trunk/include/lldb/Utility/ConvertEnum.h lldb

Re: [Lldb-commits] [PATCH] D29427: Move some classes from Core -> Utility

2017-02-01 Thread Zachary Turner via lldb-commits
Derp. Thanks for catching that! On Wed, Feb 1, 2017 at 2:41 PM Jason Molenda wrote: > You need some break;s. > > > -const char *lldb_private::GetVoteAsCString(Vote vote) { > - switch (vote) { > - case eVoteNo: > -return "no"; > - case eVoteNoOpinion: > -return "no opinion"; > - case

Re: [Lldb-commits] [PATCH] D29514: Change Error::PutToLog to LLDB_LOG_ERROR

2017-02-03 Thread Zachary Turner via lldb-commits
Compiles on Windows, I will watch the bots to see if anything breaks on Linux/ OSX. On Fri, Feb 3, 2017 at 3:03 PM Pavel Labath via Phabricator < revi...@reviews.llvm.org> wrote: > labath accepted this revision. > labath added a comment. > This revision is now accepted and ready to land. > > look

Re: [Lldb-commits] [PATCH] D29510: Remove LIBLLDB_LOG_VERBOSE category

2017-02-03 Thread Zachary Turner via lldb-commits
Right, one of the suggestions I mentioned first was to have comments in the headers that mention the ability to format the class, or to have the formatters defined in the same header file as the object. So you look at the definition of FileSpec, and you learn about the formatter for FileSpec. On

Re: [Lldb-commits] [PATCH] D29510: Remove LIBLLDB_LOG_VERBOSE category

2017-02-03 Thread Zachary Turner via lldb-commits
Yes, a centralized list would be nice On Fri, Feb 3, 2017 at 5:27 PM Jim Ingham wrote: > That doesn't help me if I don't know that Format takes formatters and that > various lldb objects take formatters and here are all the formatters we > have. And it would be kinder to have the list of availab

[Lldb-commits] [lldb] r294210 - Get rid of Error::PutToLog().

2017-02-06 Thread Zachary Turner via lldb-commits
Author: zturner Date: Mon Feb 6 12:31:44 2017 New Revision: 294210 URL: http://llvm.org/viewvc/llvm-project?rev=294210&view=rev Log: Get rid of Error::PutToLog(). Instead just rely on LLDB_LOG(). This is part of an effort to sort out dependency hell in LLDB. Error is in Utility, but Log is in C

[Lldb-commits] [lldb] r294213 - Try to fix build on non-Windows platforms.

2017-02-06 Thread Zachary Turner via lldb-commits
Author: zturner Date: Mon Feb 6 12:49:16 2017 New Revision: 294213 URL: http://llvm.org/viewvc/llvm-project?rev=294213&view=rev Log: Try to fix build on non-Windows platforms. Modified: lldb/trunk/source/Host/common/Host.cpp Modified: lldb/trunk/source/Host/common/Host.cpp URL: http://llvm

Re: [Lldb-commits] [PATCH] D29615: Convert Log class to llvm streams

2017-02-08 Thread Zachary Turner via lldb-commits
Aside from the thread stuff, nothing seems particularly risky about this change. Did the thread-local stuff you removed have anything to do with the -t option to the log command? On Wed, Feb 8, 2017 at 9:15 AM Pavel Labath via Phabricator < revi...@reviews.llvm.org> wrote: > labath added a comme

Re: [Lldb-commits] [PATCH] D29895: Refactor log channel registration mechanism

2017-02-13 Thread Zachary Turner via lldb-commits
Is it possible to add some unittests for this? In addition to just tests=good, it would also serve as documentation for the new api On Mon, Feb 13, 2017 at 9:09 AM Pavel Labath via Phabricator < revi...@reviews.llvm.org> wrote: > labath created this revision. > Herald added a subscriber: aprantl.

[Lldb-commits] [lldb] r295091 - Use StringRef and APFloat instead of lldb/StringConvert.h

2017-02-14 Thread Zachary Turner via lldb-commits
Author: zturner Date: Tue Feb 14 13:07:01 2017 New Revision: 295091 URL: http://llvm.org/viewvc/llvm-project?rev=295091&view=rev Log: Use StringRef and APFloat instead of lldb/StringConvert.h Modified: lldb/trunk/source/Utility/JSON.cpp Modified: lldb/trunk/source/Utility/JSON.cpp URL: http

Re: [Lldb-commits] [PATCH] D29909: Break some more dependencies in lldbUtility

2017-02-14 Thread Zachary Turner via lldb-commits
Indeed it should, but unfortunately this is a hand maintained project, and I don't have a Mac. Usually in these cases the first person to notice the Xcode project is broken just submits a fix for it On Tue, Feb 14, 2017 at 11:27 PM Boris Ulasevich via Phabricator < revi...@reviews.llvm.org> wrote:

Re: [Lldb-commits] [PATCH] D29964: Finish breaking the dependency from lldbUtility -> Host

2017-02-15 Thread Zachary Turner via lldb-commits
On Wed, Feb 15, 2017 at 5:54 AM Pavel Labath via Phabricator < revi...@reviews.llvm.org> wrote: > labath added inline comments. > > > > Comment at: lldb/source/Utility/VASprintf.cpp:18 > + va_list args) { > + llvm::SmallString<16> error(""); > + >

[Lldb-commits] [lldb] r295368 - Finish breaking the dependency from Utility.

2017-02-16 Thread Zachary Turner via lldb-commits
Author: zturner Date: Thu Feb 16 13:38:21 2017 New Revision: 295368 URL: http://llvm.org/viewvc/llvm-project?rev=295368&view=rev Log: Finish breaking the dependency from Utility. Differential Revision: https://reviews.llvm.org/D29964 Added: lldb/trunk/include/lldb/Host/PseudoTerminal.h l

[Lldb-commits] [lldb] r295368 - Finish breaking the dependency from Utility.

2017-02-16 Thread Zachary Turner via lldb-commits
Modified: lldb/trunk/source/Host/CMakeLists.txt URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Host/CMakeLists.txt?rev=295368&r1=295367&r2=295368&view=diff == --- lldb/trunk/source/Host/CMakeLists.txt (original

[Lldb-commits] [lldb] r295369 - Fix build

2017-02-16 Thread Zachary Turner via lldb-commits
Author: zturner Date: Thu Feb 16 14:15:26 2017 New Revision: 295369 URL: http://llvm.org/viewvc/llvm-project?rev=295369&view=rev Log: Fix build Modified: lldb/trunk/source/Utility/VASprintf.cpp lldb/trunk/unittests/Utility/VASprintfTest.cpp Modified: lldb/trunk/source/Utility/VASprintf.c

Re: [Lldb-commits] [lldb] r295369 - Fix build

2017-02-17 Thread Zachary Turner via lldb-commits
e was something that would have been already caught by running the unit tests on windows, which leads me to believe you didn't run them before submission. Thanks, pl 2017-02-16 20:15 GMT+00:00 Zachary Turner via lldb-commits : > Author: zturner > Date: Thu Feb 16 14:15:26 2017 >

Re: [Lldb-commits] [PATCH] D30251: Map ELF files as writable so we can update the relocations in them

2017-02-22 Thread Zachary Turner via lldb-commits
Yea if this isn't urgent, can we wait for my other changes to go in? Llvm does support mapping writable, but not through the same interface. So it should still work On Wed, Feb 22, 2017 at 6:43 AM Pavel Labath via Phabricator < revi...@reviews.llvm.org> wrote: > labath added a reviewer: zturner.

Re: [Lldb-commits] [PATCH] D30054: Delete DataBufferMemoryMap

2017-02-24 Thread Zachary Turner via lldb-commits
I left out unit tests since we'd essentially be duplicating the unit tests of MemoryBuffer, and because it involves the file system (also this is temporary code until DataBuffer stuff goes away). Lmk if you disagree though On Fri, Feb 24, 2017 at 2:53 AM Pavel Labath via Phabricator < revi...@revie

Re: [Lldb-commits] [PATCH] D30054: Delete DataBufferMemoryMap

2017-02-24 Thread Zachary Turner via lldb-commits
I am going to move the constructor to private for now, this should eliminate any disagreement about whether to add null checks, as it is now literally impossible to construct one with a null pointer. For now this doesn't matter since nobody is even using the MemoryBuffer constructor except from in

[Lldb-commits] [lldb] r296159 - Delete DataBufferMemoryMap.

2017-02-24 Thread Zachary Turner via lldb-commits
Author: zturner Date: Fri Feb 24 12:56:49 2017 New Revision: 296159 URL: http://llvm.org/viewvc/llvm-project?rev=296159&view=rev Log: Delete DataBufferMemoryMap. After a series of patches on the LLVM side to get the mmaping code up to compatibility with LLDB's needs, it is now ready to go, which

Re: [Lldb-commits] [PATCH] D30054: Delete DataBufferMemoryMap

2017-02-27 Thread Zachary Turner via lldb-commits
I didn't refer to mmaping in the name because LLVM's MemoryBuffer is not necessarily mmap'ed. It might be mmap'ed and it might not be. Depends on various factors such as whether you specify the IsVolatile flag, how big the file is, and maybe a few other things. After this change we have DataBuff

Re: [Lldb-commits] [PATCH] D30054: Delete DataBufferMemoryMap

2017-02-27 Thread Zachary Turner via lldb-commits
There may be some cases where we're no longer mmaping where we used to, but looking at LLVM's implementation, that would only happen if the file is fairly small, and there's a comment in LLVM explaining why they don't mmap small files. So I think that's actually an improvement for LLDB (although I

Re: [Lldb-commits] [PATCH] D30054: Delete DataBufferMemoryMap

2017-02-27 Thread Zachary Turner via lldb-commits
Oh that wasn't in response to the comment about wrapper classes, that was just a general comment about the fact that we lose logging by moving to LLVM's implementation at all. If we have our own implementation, we could in theory log at various stages of the mmaping process, but by moving to a lib

Re: [Lldb-commits] [PATCH] D30402: Modernize Enable/DisableLogChannel interface a bit

2017-02-28 Thread Zachary Turner via lldb-commits
Lgtm On Tue, Feb 28, 2017 at 3:08 AM Pavel Labath via Phabricator < revi...@reviews.llvm.org> wrote: > labath updated this revision to Diff 9. > labath added a comment. > > rebase on top of tree > > > https://reviews.llvm.org/D30402 > > Files: > include/lldb/Core/Debugger.h > include/lldb/

[Lldb-commits] [lldb] r296495 - Fix incorrect logic in StackFrame::Disassemble.

2017-02-28 Thread Zachary Turner via lldb-commits
Author: zturner Date: Tue Feb 28 11:59:59 2017 New Revision: 296495 URL: http://llvm.org/viewvc/llvm-project?rev=296495&view=rev Log: Fix incorrect logic in StackFrame::Disassemble. This had broken as the result of some previous cleanup. Modified: lldb/trunk/source/Target/StackFrame.cpp Mod

Re: [Lldb-commits] [lldb] r296495 - Fix incorrect logic in StackFrame::Disassemble.

2017-02-28 Thread Zachary Turner via lldb-commits
s for disassembler) On Tue, Feb 28, 2017 at 10:13 AM Jim Ingham wrote: > No test case? > > Jim > > > On Feb 28, 2017, at 9:59 AM, Zachary Turner via lldb-commits < > lldb-commits@lists.llvm.org> wrote: > > > > Author: zturner > > Date: Tue Feb 28 11:59:

[Lldb-commits] [lldb] r296516 - Wrap the call to UndecorateSymbolName in a mutex.

2017-02-28 Thread Zachary Turner via lldb-commits
Author: zturner Date: Tue Feb 28 14:29:20 2017 New Revision: 296516 URL: http://llvm.org/viewvc/llvm-project?rev=296516&view=rev Log: Wrap the call to UndecorateSymbolName in a mutex. MSDN documents that this function is not thread-safe, so we wrap it in a global mutex. Modified: lldb/trunk/

[Lldb-commits] [lldb] r296517 - clang-format the Mangled changes.

2017-02-28 Thread Zachary Turner via lldb-commits
Author: zturner Date: Tue Feb 28 14:30:31 2017 New Revision: 296517 URL: http://llvm.org/viewvc/llvm-project?rev=296517&view=rev Log: clang-format the Mangled changes. Modified: lldb/trunk/source/Core/Mangled.cpp Modified: lldb/trunk/source/Core/Mangled.cpp URL: http://llvm.org/viewvc/llvm-

Re: [Lldb-commits] [lldb] r296495 - Fix incorrect logic in StackFrame::Disassemble.

2017-02-28 Thread Zachary Turner via lldb-commits
On Tue, Feb 28, 2017 at 3:07 PM Jason Molenda wrote: > At it's core, lldb is a real world tool that thousands of people depend > on; breaking it or introducing bugs for little gain beyond aesthetics is a > very poor tradeoff. > Just for the record, I disagree with this assertion that there is li

Re: [Lldb-commits] [lldb] r296495 - Fix incorrect logic in StackFrame::Disassemble.

2017-02-28 Thread Zachary Turner via lldb-commits
That patch was not really about early returns, it was about using StringRef. So my comment about the aesthetics was referring to the patch in general. The early return was more of a drive by, since I was already touching the code. In that respect I was just following the well documented and wide

Re: [Lldb-commits] [lldb] r296495 - Fix incorrect logic in StackFrame::Disassemble.

2017-02-28 Thread Zachary Turner via lldb-commits
On Tue, Feb 28, 2017 at 3:49 PM Jim Ingham wrote: > > > On Feb 28, 2017, at 3:36 PM, Zachary Turner wrote: > > > > That patch was not really about early returns, it was about using > StringRef. So my comment about the aesthetics was referring to the patch > in general. The early return was mor

Re: [Lldb-commits] [lldb] r296495 - Fix incorrect logic in StackFrame::Disassemble.

2017-02-28 Thread Zachary Turner via lldb-commits
On Tue, Feb 28, 2017 at 4:09 PM Jason Molenda wrote: > > You mentioned that this kind of mechanical churn of the code is something > everyone else in the LLVM/LLDB community supports. I don't know about the > LLVM community, but I strongly argue that this is the wrong way to develop > a stable,

[Lldb-commits] [lldb] r296717 - Fix various warnings. NFC

2017-03-01 Thread Zachary Turner via lldb-commits
Author: zturner Date: Wed Mar 1 18:05:25 2017 New Revision: 296717 URL: http://llvm.org/viewvc/llvm-project?rev=296717&view=rev Log: Fix various warnings. NFC Modified: lldb/trunk/source/Commands/CommandObjectFrame.cpp lldb/trunk/source/Commands/CommandObjectType.cpp lldb/trunk/sour

Re: [Lldb-commits] [PATCH] D30515: Made GetClangTargetCPU() const.

2017-03-01 Thread Zachary Turner via lldb-commits
lgtm On Wed, Mar 1, 2017 at 4:26 PM Jason Majors via Phabricator via lldb-commits wrote: > jmajors created this revision. > > It does not change members or call non-const members. > HostInfo::GetArchitecture() returns a const object ref (maybe others?), > which can't access the non-const functio

Re: [Lldb-commits] [lldb] r296717 - Fix various warnings. NFC

2017-03-02 Thread Zachary Turner via lldb-commits
Clang-cl On Thu, Mar 2, 2017 at 2:51 AM Pavel Labath wrote: > > On 2 March 2017 at 00:05, Zachary Turner via lldb-commits < > lldb-commits@lists.llvm.org> wrote: > > -DumpValueObjectOptions::DeclPrintingHelper helper = > -[&valobj_

Re: [Lldb-commits] [lldb] r296717 - Fix various warnings. NFC

2017-03-02 Thread Zachary Turner via lldb-commits
What capture does it say is missing? Also what version of msvc? On Thu, Mar 2, 2017 at 7:17 AM Zachary Turner wrote: > Clang-cl > On Thu, Mar 2, 2017 at 2:51 AM Pavel Labath wrote: > > > On 2 March 2017 at 00:05, Zachary Turner via lldb-commits < > lldb-commits@

Re: [Lldb-commits] [lldb] r296717 - Fix various warnings. NFC

2017-03-02 Thread Zachary Turner via lldb-commits
ing to you: > Microsoft (R) C/C++ Optimizing Compiler Version 19.00.23506 for x86 > > > > On 2 March 2017 at 15:18, Zachary Turner wrote: > > What capture does it say is missing? Also what version of msvc? > > > > On Thu, Mar 2, 2017 at 7:17

Re: [Lldb-commits] [lldb] r296814 - Added a list of outstanding projects that would benefit lldb.

2017-03-02 Thread Zachary Turner via lldb-commits
Nice list, thanks! On Thu, Mar 2, 2017 at 1:51 PM Jim Ingham via lldb-commits < lldb-commits@lists.llvm.org> wrote: > Author: jingham > Date: Thu Mar 2 15:39:27 2017 > New Revision: 296814 > > URL: http://llvm.org/viewvc/llvm-project?rev=296814&view=rev > Log: > Added a list of outstanding proje

Re: [Lldb-commits] [PATCH] D30560: Split DataExtractor into two classes.

2017-03-02 Thread Zachary Turner via lldb-commits
Tbh I felt dirty calling it Ex, so thanks for calling me out on it :) I'll whip up some changes later On Thu, Mar 2, 2017 at 6:09 PM Jim Ingham via Phabricator < revi...@reviews.llvm.org> wrote: > jingham added a comment. > > Is it horrible of me to ask that we choose a name that is more descript

Re: [Lldb-commits] [PATCH] D30560: Split DataExtractor into two classes.

2017-03-02 Thread Zachary Turner via lldb-commits
I was actually thinking of making the dump functions free functions that take a const DataExtractor&. This way the entire implementation could remain unchanged with the exception of replacing implicit member variable reads with reads through an explicit instance of the extractor. This way we don't

[Lldb-commits] [lldb] r296855 - Remove some dead code in FileSpec.

2017-03-02 Thread Zachary Turner via lldb-commits
Author: zturner Date: Fri Mar 3 00:14:38 2017 New Revision: 296855 URL: http://llvm.org/viewvc/llvm-project?rev=296855&view=rev Log: Remove some dead code in FileSpec. This in turn triggered some fallout where other files had been transitively picking up includes that they needed from FileSpec.h

Re: [Lldb-commits] [PATCH] D30410: testsuite/android: build test executables with the android ndk directly

2017-03-03 Thread Zachary Turner via lldb-commits
It works because we already require GnuWin32 (even just to run make at all) On Fri, Mar 3, 2017 at 6:02 AM Pavel Labath via Phabricator via lldb-commits wrote: > This revision was automatically updated to reflect the committed changes. > Closed by commit rL296869: testsuite/android: build test ex

Re: [Lldb-commits] [PATCH] D30560: Split DataExtractor into two classes.

2017-03-03 Thread Zachary Turner via lldb-commits
Yea, I can see splitting the target specific stuff into a separate "target aware" dump function and having the base one not require the exeuction context and go in Utility. In the interest of not breaking anything it seems reasonable to try to do that as a separate patch so we the functional and n

[Lldb-commits] [lldb] r296906 - [Windows] Remove the #include hack.

2017-03-03 Thread Zachary Turner via lldb-commits
Author: zturner Date: Fri Mar 3 14:21:59 2017 New Revision: 296906 URL: http://llvm.org/viewvc/llvm-project?rev=296906&view=rev Log: [Windows] Remove the #include hack. Prior to MSVC 2015 we had to manually include this header any time we were going to include or due to a bug in MSVC's STL im

[Lldb-commits] [lldb] r296920 - Add a script to dump out all project inter-dependencies.

2017-03-03 Thread Zachary Turner via lldb-commits
Author: zturner Date: Fri Mar 3 16:40:46 2017 New Revision: 296920 URL: http://llvm.org/viewvc/llvm-project?rev=296920&view=rev Log: Add a script to dump out all project inter-dependencies. Added: lldb/trunk/scripts/analyze-project-deps.py Added: lldb/trunk/scripts/analyze-project-deps.py U

Re: [Lldb-commits] [lldb] r296925 - Fix Darwin failures introduced in r296909

2017-03-03 Thread Zachary Turner via lldb-commits
Thanks Tim! I have a few more file moves coming up as well, sorry for the trouble! On Fri, Mar 3, 2017 at 3:29 PM Tim Hammerquist via lldb-commits < lldb-commits@lists.llvm.org> wrote: > Author: penryu > Date: Fri Mar 3 17:17:29 2017 > New Revision: 296925 > > URL: http://llvm.org/viewvc/llvm-p

Re: [Lldb-commits] [lldb] r296925 - Fix Darwin failures introduced in r296909

2017-03-03 Thread Zachary Turner via lldb-commits
I can fix that, I didn't see it in my tests because it doesn't compile that file on Windows. I'll get a fix in shortly. On Fri, Mar 3, 2017 at 3:38 PM Tim Hammerquist wrote: > Sure, Zachary. I try to step in when I can. > > Now that you mention it, your r296910 (DumpDataExtractor) patch is > br

Re: [Lldb-commits] [lldb] r296925 - Fix Darwin failures introduced in r296909

2017-03-03 Thread Zachary Turner via lldb-commits
:46 PM Jim Ingham wrote: > Yeah, looks like you need to keep DumpHexBytes in DumpDataExtractor. > That's a little weird because it doesn't actually take a DataExtractor, > but... > > Jim > > > On Mar 3, 2017, at 3:45 PM, Zachary Turner via lldb-commits < > lld

[Lldb-commits] [lldb] r296930 - Fix DataExtractor failures.

2017-03-03 Thread Zachary Turner via lldb-commits
Author: zturner Date: Fri Mar 3 17:52:09 2017 New Revision: 296930 URL: http://llvm.org/viewvc/llvm-project?rev=296930&view=rev Log: Fix DataExtractor failures. Some code that doesn't get compiled on Windows had some references that needed updating, and I missed those. Modified: lldb/trunk/

Re: [Lldb-commits] [lldb] r296925 - Fix Darwin failures introduced in r296909

2017-03-03 Thread Zachary Turner via lldb-commits
27;s a little weird because it doesn't actually take a DataExtractor, > but... > > Jim > > > On Mar 3, 2017, at 3:45 PM, Zachary Turner via lldb-commits < > lldb-commits@lists.llvm.org> wrote: > > > > I can fix that, I didn't see it in my tests because i

Re: [Lldb-commits] [lldb] r296925 - Fix Darwin failures introduced in r296909

2017-03-03 Thread Zachary Turner via lldb-commits
using any methods of DataExtractor. Oops! > Anyway since this is no less weird than before I'll leave it this way for > now until we figure out something better. > >> > >> On Fri, Mar 3, 2017 at 3:46 PM Jim Ingham wrote: > >> Yeah, looks like you need to kee

[Lldb-commits] [lldb] r296941 - Move UUID from Core -> Utility.

2017-03-03 Thread Zachary Turner via lldb-commits
Author: zturner Date: Fri Mar 3 19:28:55 2017 New Revision: 296941 URL: http://llvm.org/viewvc/llvm-project?rev=296941&view=rev Log: Move UUID from Core -> Utility. Added: lldb/trunk/include/lldb/Utility/UUID.h lldb/trunk/source/Utility/UUID.cpp Removed: lldb/trunk/include/lldb/Core/

[Lldb-commits] [lldb] r296944 - Add dependency on DynamicLoaderStatic to Utility.

2017-03-03 Thread Zachary Turner via lldb-commits
Author: zturner Date: Fri Mar 3 19:30:38 2017 New Revision: 296944 URL: http://llvm.org/viewvc/llvm-project?rev=296944&view=rev Log: Add dependency on DynamicLoaderStatic to Utility. Modified: lldb/trunk/source/Plugins/DynamicLoader/Static/CMakeLists.txt Modified: lldb/trunk/source/Plugins/

[Lldb-commits] [lldb] r296946 - Delete LLDB's code for getting / setting thread name.

2017-03-03 Thread Zachary Turner via lldb-commits
Author: zturner Date: Fri Mar 3 19:31:06 2017 New Revision: 296946 URL: http://llvm.org/viewvc/llvm-project?rev=296946&view=rev Log: Delete LLDB's code for getting / setting thread name. This is now functionality in LLVM, and all callers have already been updated to use the LLVM functions. Remo

[Lldb-commits] [lldb] r296947 - Fix a bug in the dep analysis script.

2017-03-03 Thread Zachary Turner via lldb-commits
Author: zturner Date: Fri Mar 3 19:31:29 2017 New Revision: 296947 URL: http://llvm.org/viewvc/llvm-project?rev=296947&view=rev Log: Fix a bug in the dep analysis script. It wasn't always normalizing slashes correctly, so you'd end up with the same thing in the map twice. Modified: lldb/tru

Re: [Lldb-commits] [lldb] r296946 - Delete LLDB's code for getting / setting thread name.

2017-03-03 Thread Zachary Turner via lldb-commits
the more specific part. Was that just an > oversight? > > Jim > > > On Mar 3, 2017, at 5:31 PM, Zachary Turner via lldb-commits < > lldb-commits@lists.llvm.org> wrote: > > > > Author: zturner > > Date: Fri Mar 3 19:31:06 2017 > > New Revision: 296946

Re: [Lldb-commits] [lldb] r296946 - Delete LLDB's code for getting / setting thread name.

2017-03-03 Thread Zachary Turner via lldb-commits
to have lost the code that would make sure that on > platforms with short thread names we pick up the end of the name passed in > because that is generally the more specific part. Was that just an > oversight? > > Jim > > > On Mar 3, 2017, at 5:31 PM, Zachary Turner via lld

[Lldb-commits] [lldb] r296972 - Truncate thread names if they're too long.

2017-03-04 Thread Zachary Turner via lldb-commits
Author: zturner Date: Sat Mar 4 10:42:25 2017 New Revision: 296972 URL: http://llvm.org/viewvc/llvm-project?rev=296972&view=rev Log: Truncate thread names if they're too long. Modified: lldb/trunk/source/Target/Process.cpp Modified: lldb/trunk/source/Target/Process.cpp URL: http://llvm.org

Re: [Lldb-commits] [PATCH] D30624: Remove all of LLDB's custom filesystem statting code.

2017-03-06 Thread Zachary Turner via lldb-commits
I put the using only if I have to type the namespace more than once. I can change the global using to be local, but I don't think it makes sense to either always put the using or never put it On Mon, Mar 6, 2017 at 3:59 AM Tamas Berghammer via Phabricator < revi...@reviews.llvm.org> wrote: > tberg

Re: [Lldb-commits] [lldb] r297013 - Fix Log unit tests

2017-03-06 Thread Zachary Turner via lldb-commits
Weird, I could have sworn I fixed this. But looking at my disk, it's sitting uncommitted :-/ On Mon, Mar 6, 2017 at 7:29 AM Pavel Labath via lldb-commits < lldb-commits@lists.llvm.org> wrote: > Author: labath > Date: Mon Mar 6 09:17:36 2017 > New Revision: 297013 > > URL: http://llvm.org/viewvc

[Lldb-commits] [lldb] r297035 - Fix line endings of deps analysis script.

2017-03-06 Thread Zachary Turner via lldb-commits
Author: zturner Date: Mon Mar 6 11:40:36 2017 New Revision: 297035 URL: http://llvm.org/viewvc/llvm-project?rev=297035&view=rev Log: Fix line endings of deps analysis script. Modified: lldb/trunk/scripts/analyze-project-deps.py Modified: lldb/trunk/scripts/analyze-project-deps.py URL: http

[Lldb-commits] [lldb] r297036 - A few improvements to deps analysis scripts.

2017-03-06 Thread Zachary Turner via lldb-commits
Author: zturner Date: Mon Mar 6 11:41:00 2017 New Revision: 297036 URL: http://llvm.org/viewvc/llvm-project?rev=297036&view=rev Log: A few improvements to deps analysis scripts. 1) Looks in Plugins and clang 2) Adds a mode to display the deps sorted by the number of times the deps occurs in a

[Lldb-commits] [lldb] r297096 - Remove dependency from FileSpec to ArchSpec.

2017-03-06 Thread Zachary Turner via lldb-commits
Author: zturner Date: Mon Mar 6 17:42:44 2017 New Revision: 297096 URL: http://llvm.org/viewvc/llvm-project?rev=297096&view=rev Log: Remove dependency from FileSpec to ArchSpec. All it really needs is the llvm::Triple, so make FileSpec take the Triple directly instead of the ArchSpec. Modified:

[Lldb-commits] [lldb] r297095 - Remove FileSpec::ReadFileContents.

2017-03-06 Thread Zachary Turner via lldb-commits
Author: zturner Date: Mon Mar 6 17:42:14 2017 New Revision: 297095 URL: http://llvm.org/viewvc/llvm-project?rev=297095&view=rev Log: Remove FileSpec::ReadFileContents. This functionality is subsumed by DataBufferLLVM, which is also more efficient since it will try to mmap. However, we don't yet

[Lldb-commits] [lldb] r297102 - Add missing include in FileSpec.

2017-03-06 Thread Zachary Turner via lldb-commits
Author: zturner Date: Mon Mar 6 17:52:57 2017 New Revision: 297102 URL: http://llvm.org/viewvc/llvm-project?rev=297102&view=rev Log: Add missing include in FileSpec. Modified: lldb/trunk/source/Host/common/FileSpec.cpp Modified: lldb/trunk/source/Host/common/FileSpec.cpp URL: http://llvm.o

[Lldb-commits] [lldb] r297116 - Use LLVM for all stat-related functionality.

2017-03-06 Thread Zachary Turner via lldb-commits
Author: zturner Date: Mon Mar 6 21:43:17 2017 New Revision: 297116 URL: http://llvm.org/viewvc/llvm-project?rev=297116&view=rev Log: Use LLVM for all stat-related functionality. This deletes LLDB's FileType enumeration and replaces all users, and all calls to functions that check whether a file

[Lldb-commits] [lldb] r297117 - Fix linux build.

2017-03-06 Thread Zachary Turner via lldb-commits
Author: zturner Date: Mon Mar 6 21:58:59 2017 New Revision: 297117 URL: http://llvm.org/viewvc/llvm-project?rev=297117&view=rev Log: Fix linux build. Modified: lldb/trunk/source/Host/common/FileSpec.cpp Modified: lldb/trunk/source/Host/common/FileSpec.cpp URL: http://llvm.org/viewvc/llvm-p

[Lldb-commits] [lldb] r297119 - Remove FileSpec dependency on FileSystem.

2017-03-06 Thread Zachary Turner via lldb-commits
Author: zturner Date: Mon Mar 6 22:58:06 2017 New Revision: 297119 URL: http://llvm.org/viewvc/llvm-project?rev=297119&view=rev Log: Remove FileSpec dependency on FileSystem. Modified: lldb/trunk/source/Host/common/FileSpec.cpp Modified: lldb/trunk/source/Host/common/FileSpec.cpp URL: http

[Lldb-commits] [lldb] r297120 - Fix FreeBSD build.

2017-03-06 Thread Zachary Turner via lldb-commits
Author: zturner Date: Mon Mar 6 22:58:53 2017 New Revision: 297120 URL: http://llvm.org/viewvc/llvm-project?rev=297120&view=rev Log: Fix FreeBSD build. Modified: lldb/trunk/source/Plugins/Process/FreeBSD/ProcessFreeBSD.cpp Modified: lldb/trunk/source/Plugins/Process/FreeBSD/ProcessFreeBSD.c

Re: [Lldb-commits] [PATCH] D30624: Remove all of LLDB's custom filesystem statting code.

2017-03-07 Thread Zachary Turner via lldb-commits
I think i can address this by adding a bool to llvm::sys::fs::status which indicates whether to follow symlinks On Tue, Mar 7, 2017 at 5:41 AM Pavel Labath via Phabricator < revi...@reviews.llvm.org> wrote: > labath added a comment. > > Zachary, unfortunately I had to revert this -- while investig

Re: [Lldb-commits] [PATCH] D30698: Resubmit "Use LLVM for all stat related calls"

2017-03-07 Thread Zachary Turner via lldb-commits
= Issue Details = UNEXPECTED SUCCESS: test_and_run_command_dwarf (lang/c/register_variables/TestRegisterVariables.py) UNEXPECTED SUCCESS: test_and_run_command_dwo (lang/c/register_variables/TestRegisterVariables.py) UNEXPECTED SUCCESS: test_dwarf (functionalities/thread/exit

Re: [Lldb-commits] [PATCH] D30698: Resubmit "Use LLVM for all stat related calls"

2017-03-07 Thread Zachary Turner via lldb-commits
I can run build TargetTests though (I guess it doesn't depend on editline), and that one passes. On Tue, Mar 7, 2017 at 2:26 PM Zachary Turner wrote: > = > Issue Details > = > UNEXPECTED SUCCESS: test_and_run_command_dwarf > (lang/c/register_variables/TestRegisterVariable

Re: [Lldb-commits] [PATCH] D30698: Resubmit "Use LLVM for all stat related calls"

2017-03-08 Thread Zachary Turner via lldb-commits
Yes it was a debug build On Wed, Mar 8, 2017 at 2:45 AM Pavel Labath wrote: > I've tried it out not and it works -- I think it's good to go then. > > The unit tests, was that a debug build by any chance? I think we are > missing some dependency there which shows up only on debug builds, but > I h

[Lldb-commits] [lldb] r297300 - Resubmit FileSystem changes.

2017-03-08 Thread Zachary Turner via lldb-commits
Author: zturner Date: Wed Mar 8 11:56:08 2017 New Revision: 297300 URL: http://llvm.org/viewvc/llvm-project?rev=297300&view=rev Log: Resubmit FileSystem changes. This was originall reverted due to some test failures in ModuleCache and TestCompDirSymlink. These issues have all been resolved and

[Lldb-commits] [lldb] r297360 - Remove LLDB's recursive directory deletion function.

2017-03-08 Thread Zachary Turner via lldb-commits
Author: zturner Date: Wed Mar 8 23:12:36 2017 New Revision: 297360 URL: http://llvm.org/viewvc/llvm-project?rev=297360&view=rev Log: Remove LLDB's recursive directory deletion function. LLVM now has such a function, so we use that instead. Modified: lldb/trunk/include/lldb/Host/FileSystem.h

[Lldb-commits] [lldb] r297405 - Make the LLDB test suite work with MSVC 2017 on Windows.

2017-03-09 Thread Zachary Turner via lldb-commits
Author: zturner Date: Thu Mar 9 13:54:23 2017 New Revision: 297405 URL: http://llvm.org/viewvc/llvm-project?rev=297405&view=rev Log: Make the LLDB test suite work with MSVC 2017 on Windows. Modified: lldb/trunk/packages/Python/lldbsuite/test/make/Makefile.rules Modified: lldb/trunk/packages

Re: [Lldb-commits] [PATCH] D30807: Use LLVM's directory enumeration code

2017-03-10 Thread Zachary Turner via lldb-commits
You're right, I didn't notice that. But since you mention it, surely that had to have been a bug in the original implementation right? That flag isn't intended to be a synonym for "non recursive iteration ", because that's what the Next enumeration value is for. The algorithm would intentionally le

<    3   4   5   6   7   8   9   10   11   12   >