[Lldb-commits] [PATCH] D31111: Delete various FileSystem functions that are either dead or have direct LLVM equivalents.

2017-03-17 Thread Zachary Turner via Phabricator via lldb-commits
zturner updated this revision to Diff 92236. zturner added a comment. Forgot to remove `Stat` declaration from header file. https://reviews.llvm.org/D3 Files: lldb/include/lldb/Host/FileSystem.h lldb/source/Host/common/File.cpp lldb/source/Host/common/Host.cpp lldb/source/Host/macos

[Lldb-commits] [PATCH] D31111: Delete various FileSystem functions that are either dead or have direct LLVM equivalents.

2017-03-17 Thread Zachary Turner via Phabricator via lldb-commits
zturner created this revision. Herald added a subscriber: emaste. https://reviews.llvm.org/D3 Files: lldb/include/lldb/Host/FileSystem.h lldb/source/Host/common/File.cpp lldb/source/Host/common/Host.cpp lldb/source/Host/macosx/Host.mm lldb/source/Host/posix/DomainSocket.cpp lldb/s

[Lldb-commits] [PATCH] D31086: Remove FileSystem::MakeDirectory

2017-03-17 Thread Stephane Sezer via Phabricator via lldb-commits
sas accepted this revision. sas added a comment. This revision is now accepted and ready to land. The second behavioral change seems good but the first thing you described is a bit odd. Creating folders with 770 does not seem like a common behavior, and 700 or 755 is usually more standard. Eith

[Lldb-commits] [PATCH] D31108: Delete LLDB code for MD5'ing a file. Use LLVM instead

2017-03-17 Thread Stephane Sezer via Phabricator via lldb-commits
sas accepted this revision. sas added a comment. This revision is now accepted and ready to land. So nice. https://reviews.llvm.org/D31108 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-

[Lldb-commits] [PATCH] D31108: Delete LLDB code for MD5'ing a file. Use LLVM instead

2017-03-17 Thread Zachary Turner via Phabricator via lldb-commits
zturner created this revision. https://reviews.llvm.org/D31108 Files: lldb/source/Host/common/FileSystem.cpp lldb/source/Plugins/Platform/MacOSX/PlatformDarwin.cpp lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp lldb/source/Target/Platform.cpp Index: lldb/so

[Lldb-commits] [lldb] r298123 - allow for specification of compiler/lldb executables basename

2017-03-17 Thread Tim Hammerquist via lldb-commits
Author: penryu Date: Fri Mar 17 16:00:35 2017 New Revision: 298123 URL: http://llvm.org/viewvc/llvm-project?rev=298123&view=rev Log: allow for specification of compiler/lldb executables basename Modified: lldb/trunk/packages/Python/lldbsuite/test/dotest.py Modified: lldb/trunk/packages/Pytho

[Lldb-commits] [PATCH] D31089: Remove FileSystem::GetFilePermissions and FileSystem::SetFilePermissions

2017-03-17 Thread Pavel Labath via Phabricator via lldb-commits
labath accepted this revision. labath added a comment. This revision is now accepted and ready to land. Cool. Nevermind me then. https://reviews.llvm.org/D31089 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/

[Lldb-commits] [PATCH] D31086: Remove FileSystem::MakeDirectory

2017-03-17 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. In https://reviews.llvm.org/D31086#704122, @zturner wrote: > That one is calling a file static function `MakeDirectory`, not > `FileSystem::MakeDirectory`, and the implementation of that function already > calls `llvm::sys::fs::create_directories()` to create the whole t

[Lldb-commits] [PATCH] D31089: Remove FileSystem::GetFilePermissions and FileSystem::SetFilePermissions

2017-03-17 Thread Zachary Turner via Phabricator via lldb-commits
zturner added inline comments. Comment at: lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp:813 + auto perms = + static_cast(packet.GetHexMaxU32(false, UINT32_MAX)); if (packet.GetChar() == ',') { zturner wrote: > labath wr

[Lldb-commits] [PATCH] D31089: Remove FileSystem::GetFilePermissions and FileSystem::SetFilePermissions

2017-03-17 Thread Zachary Turner via Phabricator via lldb-commits
zturner added inline comments. Comment at: lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp:813 + auto perms = + static_cast(packet.GetHexMaxU32(false, UINT32_MAX)); if (packet.GetChar() == ',') { labath wrote: > This doesn

[Lldb-commits] [PATCH] D31089: Remove FileSystem::GetFilePermissions and FileSystem::SetFilePermissions

2017-03-17 Thread Pavel Labath via Phabricator via lldb-commits
labath added a reviewer: jingham. labath added inline comments. Comment at: lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommon.cpp:813 + auto perms = + static_cast(packet.GetHexMaxU32(false, UINT32_MAX)); if (packet.GetChar() == ',') { --

[Lldb-commits] [PATCH] D31086: Remove FileSystem::MakeDirectory

2017-03-17 Thread Zachary Turner via Phabricator via lldb-commits
zturner added a comment. That one is calling a file static function `MakeDirectory`, not `FileSystem::MakeDirectory`, and the implementation of that function already calls `llvm::sys::fs::create_directories()` to create the whole tree, so it should be fine. https://reviews.llvm.org/D31086

[Lldb-commits] [PATCH] D31086: Remove FileSystem::MakeDirectory

2017-03-17 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. I think you missed one occurence in ModuleCache.cpp. This one creates a full directory structure, so you will probably need recursion there (unlike in the rest of these cases, which seem fine). Also unlike the rest of these cases, that one is actually covered by a unit t

[Lldb-commits] [PATCH] D31079: Replace std::ofstream with llvm::raw_fd_ostream

2017-03-17 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. In https://reviews.llvm.org/D31079#703911, @zturner wrote: > In the places where you want to read from an `ifstream` and write to a > socket, you might consider using `llvm::sys::fs::copy_file`, declared in > `Support/FileSystem.h`. Currently it takes two paths, but all

[Lldb-commits] [lldb] r298111 - executables should be validated before spawning subprocesses

2017-03-17 Thread Tim Hammerquist via lldb-commits
Author: penryu Date: Fri Mar 17 13:10:58 2017 New Revision: 298111 URL: http://llvm.org/viewvc/llvm-project?rev=298111&view=rev Log: executables should be validated before spawning subprocesses dotest.py script doesn't validate executables passed on the command line before spawning dozens of subp

[Lldb-commits] [PATCH] D31089: Remove FileSystem::GetFilePermissions and FileSystem::SetFilePermissions

2017-03-17 Thread Zachary Turner via Phabricator via lldb-commits
zturner created this revision. Use the LLVM functions instead https://reviews.llvm.org/D31089 Files: lldb/include/lldb/Host/FileSystem.h lldb/source/Host/posix/FileSystem.cpp lldb/source/Host/windows/FileSystem.cpp lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerCommo

[Lldb-commits] [PATCH] D31088: Remove FileSystem::GetFilePermissions and SetFilePermissions

2017-03-17 Thread Zachary Turner via Phabricator via lldb-commits
zturner created this revision. Use the LLVM functions instead. https://reviews.llvm.org/D31088 Files: lldb/include/lldb/Host/FileSystem.h lldb/source/Host/posix/FileSystem.cpp lldb/source/Host/windows/FileSystem.cpp lldb/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationServerComm

[Lldb-commits] [PATCH] D31088: Remove FileSystem::GetFilePermissions and SetFilePermissions

2017-03-17 Thread Zachary Turner via Phabricator via lldb-commits
zturner abandoned this revision. zturner added a comment. Messed up reviewer / subscriber. https://reviews.llvm.org/D31088 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [PATCH] D31086: Remove FileSystem::MakeDirectory

2017-03-17 Thread Zachary Turner via Phabricator via lldb-commits
zturner created this revision. Use the LLVM function instead. There are two subtle behavioral changes here which I want to make clear so someone can determine whether this matters on their platform. 1. Previously all LLDB callers were passing `eFilePermissionsDirectoryDefault` which is equal t

[Lldb-commits] [PATCH] D31079: Replace std::ofstream with llvm::raw_fd_ostream

2017-03-17 Thread Zachary Turner via Phabricator via lldb-commits
zturner accepted this revision. zturner added a comment. This revision is now accepted and ready to land. In the places where you want to read from an `ifstream` and write to a socket, you might consider using `llvm::sys::fs::copy_file`, declared in `Support/FileSystem.h`. Currently it takes tw

[Lldb-commits] [PATCH] D30927: Normalize the LLVM cmake path before appending it to the module path

2017-03-17 Thread Zachary Turner via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL298100: CMake requires normalized paths when appending. (authored by zturner). Changed prior to commit: https://reviews.llvm.org/D30927?vs=91676&id=92157#toc Repository: rL LLVM https://reviews.llvm

[Lldb-commits] [lldb] r298100 - CMake requires normalized paths when appending.

2017-03-17 Thread Zachary Turner via lldb-commits
Author: zturner Date: Fri Mar 17 11:33:37 2017 New Revision: 298100 URL: http://llvm.org/viewvc/llvm-project?rev=298100&view=rev Log: CMake requires normalized paths when appending. Patch by Hugh Bellamy Differential Revision: https://reviews.llvm.org/D30927 Modified: lldb/trunk/cmake/module

[Lldb-commits] [PATCH] D30926: Fix MSVC signed/unsigned conversion and size_t conversion warnings in LLDB

2017-03-17 Thread Zachary Turner via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL298099: Fix some signed/unsigned comparison warnings. (authored by zturner). Changed prior to commit: https://reviews.llvm.org/D30926?vs=91670&id=92156#toc Repository: rL LLVM https://reviews.llvm.o

[Lldb-commits] [lldb] r298099 - Fix some signed/unsigned comparison warnings.

2017-03-17 Thread Zachary Turner via lldb-commits
Author: zturner Date: Fri Mar 17 11:32:43 2017 New Revision: 298099 URL: http://llvm.org/viewvc/llvm-project?rev=298099&view=rev Log: Fix some signed/unsigned comparison warnings. Patch by Hugh Bellamy Differential Revision: https://reviews.llvm.org/D30926 Modified: lldb/trunk/source/Core/Fo

[Lldb-commits] [PATCH] D31079: Replace std::ofstream with llvm::raw_fd_ostream

2017-03-17 Thread Pavel Labath via Phabricator via lldb-commits
labath created this revision. ofstream does not handle paths with non-ascii characters correctly on windows, so I am switching these to llvm streams to fix that. Ideally I'd like to replace the two occurences of ifstream as well, but it's not clear to me what is the right replacement, as llvm int

[Lldb-commits] [PATCH] D31073: Enable lldm-mi commands -stack-list-locals -stack-list-variables and -var-create to work only with variables in scope

2017-03-17 Thread Igor Kulaychuk via Phabricator via lldb-commits
ayuckhulk created this revision. ayuckhulk added a project: LLDB. https://reviews.llvm.org/D31073 Files: packages/Python/lldbsuite/test/tools/lldb-mi/lexical-scope/Makefile packages/Python/lldbsuite/test/tools/lldb-mi/lexical-scope/TestLexicalScope.py packages/Python/lldbsuite/test/tools/ll

[Lldb-commits] [lldb] r298069 - Fix FreeBSD build broken by r298066

2017-03-17 Thread Pavel Labath via lldb-commits
Author: labath Date: Fri Mar 17 06:33:57 2017 New Revision: 298069 URL: http://llvm.org/viewvc/llvm-project?rev=298069&view=rev Log: Fix FreeBSD build broken by r298066 Modified: lldb/trunk/source/Plugins/Process/FreeBSD/ProcessFreeBSD.cpp Modified: lldb/trunk/source/Plugins/Process/FreeBSD/

[Lldb-commits] [PATCH] D31031: Move GetAuxvData from Host to relevant process plugins

2017-03-17 Thread Pavel Labath via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL298066: Move GetAuxvData from Host to relevant process plugins (authored by labath). Changed prior to commit: https://reviews.llvm.org/D31031?vs=92000&id=92125#toc Repository: rL LLVM https://review

[Lldb-commits] [lldb] r298066 - Move GetAuxvData from Host to relevant process plugins

2017-03-17 Thread Pavel Labath via lldb-commits
Author: labath Date: Fri Mar 17 06:08:40 2017 New Revision: 298066 URL: http://llvm.org/viewvc/llvm-project?rev=298066&view=rev Log: Move GetAuxvData from Host to relevant process plugins Summary: GetAuxvData was causing dependencies from host to target and linux process modules. It also does not

[Lldb-commits] [lldb] r298063 - One more attempt to fix FreeBSD

2017-03-17 Thread Pavel Labath via lldb-commits
Author: labath Date: Fri Mar 17 05:30:42 2017 New Revision: 298063 URL: http://llvm.org/viewvc/llvm-project?rev=298063&view=rev Log: One more attempt to fix FreeBSD It seems sysctl.h is not self-contained, as I get missing symbols in the header itself now. I am going to include all files that the

[Lldb-commits] [lldb] r298061 - Speculative build fix for FreeBSD

2017-03-17 Thread Pavel Labath via lldb-commits
Author: labath Date: Fri Mar 17 05:09:56 2017 New Revision: 298061 URL: http://llvm.org/viewvc/llvm-project?rev=298061&view=rev Log: Speculative build fix for FreeBSD broken by r298058. Modified: lldb/trunk/source/Plugins/Process/FreeBSD/FreeBSDThread.cpp Modified: lldb/trunk/source/Plugins

[Lldb-commits] [PATCH] D30981: Remove HostThreadLinux/Free/NetBSD

2017-03-17 Thread Pavel Labath via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL298058: Remove HostThreadLinux/Free/NetBSD (authored by labath). Changed prior to commit: https://reviews.llvm.org/D30981?vs=91869&id=92115#toc Repository: rL LLVM https://reviews.llvm.org/D30981 F

[Lldb-commits] [lldb] r298058 - Remove HostThreadLinux/Free/NetBSD

2017-03-17 Thread Pavel Labath via lldb-commits
Author: labath Date: Fri Mar 17 04:51:23 2017 New Revision: 298058 URL: http://llvm.org/viewvc/llvm-project?rev=298058&view=rev Log: Remove HostThreadLinux/Free/NetBSD Summary: These classes existed only because of the GetName() static function, which can be moved to a more natural place anyway.