[Lldb-commits] [PATCH] D31172: Move stop info override callback code from ArchSpec into Process

2017-03-20 Thread Zachary Turner via Phabricator via lldb-commits
zturner created this revision. The only real consumer of this is the `Process` class, so it makes sense (both conceptually and from a layering standpoint) to hide this in the Process plugin. This is intended to be NFC. https://reviews.llvm.org/D31172 Files: lldb/include/lldb/Core/ArchSpec.h

Re: [Lldb-commits] [lldb] r298338 - Revert r298334 until Zachary has a chance to fix the buildbot failure

2017-03-20 Thread Zachary Turner via lldb-commits
I found it, but in the future would you mind including a link to the buildbot? On Mon, Mar 20, 2017 at 9:57 PM Jason Molenda via lldb-commits < lldb-commits@lists.llvm.org> wrote: > Author: jmolenda > Date: Mon Mar 20 23:45:10 2017 > New Revision: 298338 > > URL: http://llvm.org/viewvc/llvm-proje

[Lldb-commits] [lldb] r298340 - Resubmit r298334 after fixing OSX build errors.

2017-03-20 Thread Zachary Turner via lldb-commits
Author: zturner Date: Tue Mar 21 00:47:57 2017 New Revision: 298340 URL: http://llvm.org/viewvc/llvm-project?rev=298340&view=rev Log: Resubmit r298334 after fixing OSX build errors. Hopefully this works, I can't test since I don't have Mac hardware, however. Modified: lldb/trunk/include/lldb

[Lldb-commits] [lldb] r298338 - Revert r298334 until Zachary has a chance to fix the buildbot failure

2017-03-20 Thread Jason Molenda via lldb-commits
Author: jmolenda Date: Mon Mar 20 23:45:10 2017 New Revision: 298338 URL: http://llvm.org/viewvc/llvm-project?rev=298338&view=rev Log: Revert r298334 until Zachary has a chance to fix the buildbot failure on macosx. Modified: lldb/trunk/include/lldb/Host/FileSystem.h lldb/trunk/source/Hos

[Lldb-commits] [lldb] r298337 - Fix two places where an arm instruction emulation method

2017-03-20 Thread Jason Molenda via lldb-commits
Author: jmolenda Date: Mon Mar 20 23:34:17 2017 New Revision: 298337 URL: http://llvm.org/viewvc/llvm-project?rev=298337&view=rev Log: Fix two places where an arm instruction emulation method can dereference misaligned memory. , Modified: lldb/trunk/source/Plugins/Instruction/ARM/Emulation

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

2017-03-20 Thread Zachary Turner via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL298334: Delete various lldb FileSystem functions. (authored by zturner). Changed prior to commit: https://reviews.llvm.org/D3?vs=92236&id=92426#toc Repository: rL LLVM https://reviews.llvm.org/D

[Lldb-commits] [lldb] r298335 - Delete some dead code in HostInfo.

2017-03-20 Thread Zachary Turner via lldb-commits
Author: zturner Date: Mon Mar 20 23:01:59 2017 New Revision: 298335 URL: http://llvm.org/viewvc/llvm-project?rev=298335&view=rev Log: Delete some dead code in HostInfo. Modified: lldb/trunk/include/lldb/Host/HostInfoBase.h lldb/trunk/include/lldb/Host/freebsd/HostInfoFreeBSD.h lldb/tr

[Lldb-commits] [lldb] r298334 - Delete various lldb FileSystem functions.

2017-03-20 Thread Zachary Turner via lldb-commits
Author: zturner Date: Mon Mar 20 23:01:04 2017 New Revision: 298334 URL: http://llvm.org/viewvc/llvm-project?rev=298334&view=rev Log: Delete various lldb FileSystem functions. Use LLVM's equivalent versions instead. Differential Revision: https://reviews.llvm.org/D3 Modified: lldb/trunk

[Lldb-commits] [lldb] r298333 - Initialize m_allow_cxx, m_allow_objc. These ivars in the base class are not

2017-03-20 Thread Jason Molenda via lldb-commits
Author: jmolenda Date: Mon Mar 20 21:59:15 2017 New Revision: 298333 URL: http://llvm.org/viewvc/llvm-project?rev=298333&view=rev Log: Initialize m_allow_cxx, m_allow_objc. These ivars in the base class are not initialized in the ctor and they're only initialized to 'true' in ClangUserExpressio

[Lldb-commits] [lldb] r298331 - FindTypes should find "struct TypeName" as well as "TypeName".

2017-03-20 Thread Jim Ingham via lldb-commits
Author: jingham Date: Mon Mar 20 21:13:50 2017 New Revision: 298331 URL: http://llvm.org/viewvc/llvm-project?rev=298331&view=rev Log: FindTypes should find "struct TypeName" as well as "TypeName". This fixes a bug introduced by r291559. The Module's FindType was passing the original name not th

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

2017-03-20 Thread Zachary Turner via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL298325: Delete LLDB's MD5 code. Use LLVM instead. (authored by zturner). Changed prior to commit: https://reviews.llvm.org/D31108?vs=9&id=92405#toc Repository: rL LLVM https://reviews.llvm.org/D

[Lldb-commits] [lldb] r298326 - [Support] Fill the file_status struct with link count.

2017-03-20 Thread Zachary Turner via lldb-commits
Author: zturner Date: Mon Mar 20 18:55:20 2017 New Revision: 298326 URL: http://llvm.org/viewvc/llvm-project?rev=298326&view=rev Log: [Support] Fill the file_status struct with link count. Differential Revision: https://reviews.llvm.org/D31110 Modified: lldb/trunk/source/Host/common/File.cpp

[Lldb-commits] [lldb] r298325 - Delete LLDB's MD5 code. Use LLVM instead.

2017-03-20 Thread Zachary Turner via lldb-commits
Author: zturner Date: Mon Mar 20 18:54:54 2017 New Revision: 298325 URL: http://llvm.org/viewvc/llvm-project?rev=298325&view=rev Log: Delete LLDB's MD5 code. Use LLVM instead. Differential Revision: https://reviews.llvm.org/D31108 Modified: lldb/trunk/include/lldb/Host/FileSystem.h lldb/

[Lldb-commits] [lldb] r298324 - [analyze-project-deps.py] Add the ability to list all cycles.

2017-03-20 Thread Zachary Turner via lldb-commits
Author: zturner Date: Mon Mar 20 18:54:26 2017 New Revision: 298324 URL: http://llvm.org/viewvc/llvm-project?rev=298324&view=rev Log: [analyze-project-deps.py] Add the ability to list all cycles. This analyzes the dependency graph and computes all minimal cycles. Equivalent cycles that differ on

[Lldb-commits] [lldb] r298322 - Add a function to MD5 a file's contents.

2017-03-20 Thread Zachary Turner via lldb-commits
Author: zturner Date: Mon Mar 20 18:33:18 2017 New Revision: 298322 URL: http://llvm.org/viewvc/llvm-project?rev=298322&view=rev Log: Add a function to MD5 a file's contents. In doing so, clean up the MD5 interface a little. Most existing users only care about the lower 8 bytes of an MD5, but fo

[Lldb-commits] [PATCH] D31131: [LLDB] OpenBSD support

2017-03-20 Thread Kamil Rytarowski via Phabricator via lldb-commits
krytarowski added inline comments. Comment at: source/Plugins/Process/elf-core/ProcessElfCore.cpp:588 + } +} else if (strncmp(note.n_name.c_str(), "OpenBSD", 7) == 0) { + m_os = llvm::Triple::OpenBSD; kettenis wrote: > krytarowski wrote: > > `note.n

[Lldb-commits] [PATCH] D31129: Remove remaining platform specific code from FileSpec

2017-03-20 Thread Zachary Turner via Phabricator via lldb-commits
zturner updated this revision to Diff 92373. zturner added a comment. See what you think about this. I've created a folder called `Mocks` under `Utility`, and created a new target out of it. `UtilityTests` links against it, and so does `InterpreterTests`. To do this I had to add the lldb proj

[Lldb-commits] [lldb] r298290 - Get ObjectFileMachO to handle @executable_path

2017-03-20 Thread Jim Ingham via lldb-commits
Author: jingham Date: Mon Mar 20 14:21:31 2017 New Revision: 298290 URL: http://llvm.org/viewvc/llvm-project?rev=298290&view=rev Log: Get ObjectFileMachO to handle @executable_path Only do this when we are debugging an executable, since we don't have a good way to trace from an ObjectFile back to

[Lldb-commits] [lldb] r298289 - Fix a problem with line tables & .o files that start with code with no line table entries.

2017-03-20 Thread Jim Ingham via lldb-commits
Author: jingham Date: Mon Mar 20 14:19:03 2017 New Revision: 298289 URL: http://llvm.org/viewvc/llvm-project?rev=298289&view=rev Log: Fix a problem with line tables & .o files that start with code with no line table entries. If you have code before the first line table entry when debugging with

[Lldb-commits] [PATCH] D31146: Enable AUXV and QPassSignals in gdb-remote for NetBSD

2017-03-20 Thread Kamil Rytarowski via Phabricator via lldb-commits
krytarowski created this revision. krytarowski added a project: LLDB. NetBSD is an ELF platform and it uses Elf Auxiliary Vector like Linux and other modern BSDs. While there enable QPassSignals for the NetBSD port as well. Sponsored by Repository: rL LLVM https://reviews.llvm.org/D31146

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

2017-03-20 Thread Stephane Sezer via Phabricator via lldb-commits
sas added a comment. In https://reviews.llvm.org/D31086#705159, @labath wrote: > In https://reviews.llvm.org/D31086#704518, @sas wrote: > > > 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 > > beh

[Lldb-commits] [PATCH] D31138: Add stub for PluginProcessNetBSD

2017-03-20 Thread Kamil Rytarowski via Phabricator via lldb-commits
krytarowski added a comment. I have got a few local changes that conflict with https://reviews.llvm.org/D31131, this is why I will hold on them unless @kettenis does not intend to land his patch in the coming days. Repository: rL LLVM https://reviews.llvm.org/D31138 _

[Lldb-commits] [PATCH] D31138: Add stub for PluginProcessNetBSD

2017-03-20 Thread Kamil Rytarowski via Phabricator via lldb-commits
krytarowski created this revision. krytarowski added a project: LLDB. Herald added a subscriber: mgorny. This is the base for introduction of further features to support Process Tracing on NetBSD, in local and remote setup. This code contains stubs of the needed functions. Their bodies will be a

Re: [Lldb-commits] [PATCH] D31129: Remove remaining platform specific code from FileSpec

2017-03-20 Thread Zachary Turner via lldb-commits
I thought about something like that too. Let me try to get all these other patches landed first then I'll think about what to do. On Mon, Mar 20, 2017 at 9:25 AM Pavel Labath wrote: > Aha, I see that now. What do you think about creating a test-only module > that both unit tests can depend on?

Re: [Lldb-commits] [PATCH] D31129: Remove remaining platform specific code from FileSpec

2017-03-20 Thread Pavel Labath via lldb-commits
Aha, I see that now. What do you think about creating a test-only module that both unit tests can depend on? The llvm folder-globbing means we would have to put it in a subfolder (unittests/Utility/lib ?), which makes is somewhat annoying, but I still think that's better than having the test code i

[Lldb-commits] [lldb] r298261 - Fix remote test suite directory creation

2017-03-20 Thread Pavel Labath via lldb-commits
Author: labath Date: Mon Mar 20 11:07:17 2017 New Revision: 298261 URL: http://llvm.org/viewvc/llvm-project?rev=298261&view=rev Log: Fix remote test suite directory creation r298203 make SBPlatform::MakeDirectory less recursive, which breaks the test suite creation of test directory hierarchy cre

[Lldb-commits] [PATCH] D31132: Add NetBSD case in Entry::Type::ThreadID

2017-03-20 Thread Kamil Rytarowski via Phabricator via lldb-commits
krytarowski created this revision. krytarowski added a project: LLDB. NetBSD native threads are printed as 64-bit unsigned integers. The underlying system type of a thread identity is lwpid_t of type int32_t. For consistency with Linux and FreeBSD share the 64-bit unsigned integer type. Reposi

Re: [Lldb-commits] [PATCH] D31129: Remove remaining platform specific code from FileSpec

2017-03-20 Thread Zachary Turner via lldb-commits
The reason was because two different tests from two different unittest executables need it, but we have no good way to share code across unittests like this. Open to suggestions though On Mon, Mar 20, 2017 at 4:02 AM Pavel Labath via Phabricator < revi...@reviews.llvm.org> wrote: > labath added in

[Lldb-commits] [PATCH] D31131: [LLDB] OpenBSD support

2017-03-20 Thread Kamil Rytarowski via Phabricator via lldb-commits
krytarowski added inline comments. Comment at: include/lldb/Host/HostInfo.h:55 +#elif defined(__OpenBSD__) +#include "lldb/Host/openbsd/HostInfoOpenBSD.h" +#define HOST_INFO_TYPE HostInfoOpenBSD kettenis wrote: > krytarowski wrote: > > I would sort includes here.

[Lldb-commits] [PATCH] D31131: [LLDB] OpenBSD support

2017-03-20 Thread Mark Kettenis via Phabricator via lldb-commits
kettenis marked 2 inline comments as done. kettenis added a comment. Will revise the diff based on your comments. Thanks! Comment at: include/lldb/Host/Config.h:35 + +#include "lldb/Host/openbsd/Config.h" krytarowski wrote: > krytarowski wrote: > > Missing in

[Lldb-commits] [PATCH] D31129: Remove remaining platform specific code from FileSpec

2017-03-20 Thread Pavel Labath via Phabricator via lldb-commits
labath added inline comments. Comment at: lldb/include/lldb/Utility/TildeExpressionResolver.h:62 + +class MockTildeExpressionResolver : public TildeExpressionResolver { + llvm::StringRef CurrentUser; I find it very strange to see the Mock object in a regular hea

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

2017-03-20 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. In https://reviews.llvm.org/D31086#704518, @sas wrote: > 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. Don't forget th

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

2017-03-20 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 https://reviews.llvm.org/D3 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lld

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

2017-03-20 Thread Pavel Labath via Phabricator via lldb-commits
labath accepted this revision. labath added a comment. cool https://reviews.llvm.org/D31108 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [PATCH] D31131: [LLDB] OpenBSD support

2017-03-20 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. Looks like a great start. If you want to continue and get live process debugging working as well, you should definitely sync up with kamil (i.e. don't start from ProcessFreeBSD, his process plugin should be a much better starting point). In terms of this patch, I have a