[Lldb-commits] [PATCH] D32441: Remove the home-grown android toolchain file and all references to it

2017-04-25 Thread Pavel Labath via Phabricator via lldb-commits
labath updated this revision to Diff 96514. labath added a comment. Address Tamas's comments. https://reviews.llvm.org/D32441 Files: cmake/platforms/Android.cmake www/build.html Index: www/build.html === --- www/build.html +++

[Lldb-commits] [PATCH] D32434: ObjectFileELF: Fix symbol lookup in bss section

2017-04-25 Thread Pavel Labath via Phabricator via lldb-commits
labath updated this revision to Diff 96540. labath added a comment. Use yaml2obj to avoid checking in a binary. https://reviews.llvm.org/D32434 Files: source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp unittests/ObjectFile/ELF/CMakeLists.txt unittests/ObjectFile/ELF/Inputs/sections-resolve-c

[Lldb-commits] [PATCH] D32434: ObjectFileELF: Fix symbol lookup in bss section

2017-04-25 Thread Pavel Labath via Phabricator via lldb-commits
labath updated this revision to Diff 96541. labath added a comment. Use yaml2obj to avoid checking in a binary. https://reviews.llvm.org/D32434 Files: source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp unittests/ObjectFile/ELF/CMakeLists.txt unittests/ObjectFile/ELF/Inputs/sections-resolve-c

[Lldb-commits] [PATCH] D32434: ObjectFileELF: Fix symbol lookup in bss section

2017-04-25 Thread Pavel Labath via Phabricator via lldb-commits
labath added a reviewer: beanz. labath added a subscriber: beanz. labath added a comment. Ok, wiring yaml2obj up was easier than I expected (for cmake, we'll still need to figure out what to do with the xcode build). Let me know what you make of this. Also adding @beanz, in case he has any thou

[Lldb-commits] [PATCH] D32441: Remove the home-grown android toolchain file and all references to it

2017-04-25 Thread Pavel Labath via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL301306: Remove the home-grown android toolchain file and all references to it (authored by labath). Changed prior to commit: https://reviews.llvm.org/D32441?vs=96514&id=96542#toc Repository: rL LLVM

[Lldb-commits] [PATCH] D32306: Remove lock from ConstString::GetLength

2017-04-25 Thread Pavel Labath via Phabricator via lldb-commits
labath added inline comments. Comment at: source/Utility/ConstString.cpp:49 + // pointer, we don't need the lock. const StringPoolEntryType &entry = GetStringMapEntryFromKeyData(ccstr); return entry.getKey().size(); zturner wrote: > Why do we e

[Lldb-commits] [PATCH] D32306: Remove lock from ConstString::GetLength

2017-04-25 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. In https://reviews.llvm.org/D32306#736115, @scott.smith wrote: > 10.2% reduction in # of instructions executed, 9.1% reduction in # of cycles, > as measured by 'perf stat' in single threaded mode (I disabled TaskPool in > order to get more repeatable results). That is

[Lldb-commits] [PATCH] D32421: Fix segfault resulting from empty print prompt

2017-04-25 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. Thanks for the patch Alex. After looking around the code a bit (I'm quite new to that area as well), I think a better approach would be to fix MoveCursor to handle this situation gracefully. If you look at what this code does in the "normal" case, you'll see that it del

[Lldb-commits] [PATCH] D32316: Change UniqueCStringMap to use ConstString as the key

2017-04-25 Thread Pavel Labath via Phabricator via lldb-commits
labath added inline comments. Comment at: include/lldb/Interpreter/Property.h:43 + ConstString GetName() const { return m_name; } + ConstString GetDescription() const { return m_description; } scott.smith wrote: > clayborg wrote: > > This shouldn't be const-i

[Lldb-commits] [PATCH] D32434: ObjectFileELF: Fix symbol lookup in bss section

2017-04-25 Thread Pavel Labath via Phabricator via lldb-commits
labath planned changes to this revision. labath added a comment. In https://reviews.llvm.org/D32434#737179, @zturner wrote: > If you look at the source code of yaml2obj, all this boils down to a single > call to `ELFState::writeELF`. If you just link against that, we could > avoid even shellin

[Lldb-commits] [PATCH] D32522: Test case for the issue raised in D32271

2017-04-26 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. Thank you for taking the time to add the test. I'd like to avoid modifying the test framework for the sake of this test, if that is possible. Comment at: packages/Python/lldbsuite/test/lldbtest.py:1487 'EXE': exe_name} +if not os.

[Lldb-commits] [PATCH] D32434: ObjectFileELF: Fix symbol lookup in bss section

2017-04-26 Thread Pavel Labath via Phabricator via lldb-commits
labath requested review of this revision. labath added a comment. This revision is now accepted and ready to land. In https://reviews.llvm.org/D32434#737205, @labath wrote: > In https://reviews.llvm.org/D32434#737179, @zturner wrote: > > > If you look at the source code of yaml2obj, all this boil

[Lldb-commits] [PATCH] D32568: Protect Proces::GetMemoryRegionInfo and ::GetFileLoadAddress with a lock

2017-04-27 Thread Pavel Labath via Phabricator via lldb-commits
labath requested changes to this revision. labath added a comment. This revision now requires changes to proceed. This is not necessary. NativeProcess classes are only used in lldb-server, which is completely single threaded. If you want to change that, then we should start with a discussion of

[Lldb-commits] [PATCH] D32306: Remove lock from ConstString::GetLength

2017-04-27 Thread Pavel Labath via Phabricator via lldb-commits
labath accepted this revision. labath added inline comments. Comment at: source/Utility/ConstString.cpp:49 + // pointer, we don't need the lock. const StringPoolEntryType &entry = GetStringMapEntryFromKeyData(ccstr); return entry.getKey().size(); --

[Lldb-commits] [PATCH] D32584: Fixing the build break introduced by the change in LangStandard in clang

2017-04-27 Thread Pavel Labath via Phabricator via lldb-commits
labath closed this revision. labath added a comment. I already submitted a fix of my own before seeing this. Thanks for the patch though. :) https://reviews.llvm.org/D32584 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm

[Lldb-commits] [PATCH] D32522: Test case for the issue raised in D32271

2017-04-27 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. Thank you. https://reviews.llvm.org/D32522 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/

[Lldb-commits] [PATCH] D32600: Resurrect pselect MainLoop implementation

2017-04-27 Thread Pavel Labath via Phabricator via lldb-commits
labath created this revision. Herald added a subscriber: srhines. It turns out that even though ppoll is available on all the android devices we support, it does not seem to be working properly on all of them -- MainLoop just does a busy loop with ppoll returning EINTR and not making any progress.

[Lldb-commits] [PATCH] D32568: Protect Proces::GetMemoryRegionInfo and ::GetFileLoadAddress with a lock

2017-04-27 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. In https://reviews.llvm.org/D32568#739607, @scott.smith wrote: > In https://reviews.llvm.org/D32568#739190, @labath wrote: > > > This is not necessary. NativeProcess classes are only used in lldb-server, > > which is completely single threaded. If you want to change that,

[Lldb-commits] [PATCH] D32149: Correct handling NetBSD core(5) files with threads

2017-04-27 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. In https://reviews.llvm.org/D32149#738250, @krytarowski wrote: > ping? Sorry, I wasn't responding partially because I was waiting to see how the discussion on https://reviews.llvm.org/D32434 settles, as I think it may have effect on the test strategy. I'll write more t

[Lldb-commits] [PATCH] D32600: Resurrect pselect MainLoop implementation

2017-04-28 Thread Pavel Labath via Phabricator via lldb-commits
labath added inline comments. Comment at: source/Host/common/MainLoop.cpp:82 + int queue_id; + std::vector events; + struct kevent event_list[4]; eugene wrote: > here and below struct seems to be redundant One of them holds the input events, and the other the

[Lldb-commits] [PATCH] D32568: Protect Proces::GetMemoryRegionInfo and ::GetFileLoadAddress with a lock

2017-04-28 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. Cool, glad that's sorted. I've had some ideas about introducing limited amount of paralellism to the server side, but that's probably is not interesting to you if you're not doing remote debugging. Repository: rL LLVM https://reviews.llvm.org/D32568 __

[Lldb-commits] [PATCH] D32626: Make the symbol demangling loop order independent

2017-04-28 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. If you're going to be making drastic changes here, could you please look at the possibility of making a more targeted test, rather than relying on the "run the whole debugger and set a breakpoint" type of tests to verify the finer details of the implementation. I was abl

[Lldb-commits] [PATCH] D32600: Resurrect pselect MainLoop implementation

2017-04-28 Thread Pavel Labath via Phabricator via lldb-commits
labath updated this revision to Diff 97074. labath added a comment. Address review feedback. https://reviews.llvm.org/D32600 Files: include/lldb/Host/MainLoop.h source/Host/common/MainLoop.cpp Index: source/Host/common/MainLoop.cpp ==

[Lldb-commits] [PATCH] D32600: Resurrect pselect MainLoop implementation

2017-04-28 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. I am going to check this in to unbork the android bots. I'm happy to address any additional feedback in a followup. I'm also planning to come some unit tests for this class next week. https://reviews.llvm.org/D32600 ___ lld

[Lldb-commits] [PATCH] D32600: Resurrect pselect MainLoop implementation

2017-04-28 Thread Pavel Labath via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL301636: Resurrect pselect MainLoop implementation (authored by labath). Changed prior to commit: https://reviews.llvm.org/D32600?vs=97074&id=97075#toc Repository: rL LLVM https://reviews.llvm.org/D3

[Lldb-commits] [PATCH] D32585: Implementation of remote packets for Trace data.

2017-04-28 Thread Pavel Labath via Phabricator via lldb-commits
labath added a reviewer: zturner. labath requested changes to this revision. labath added a comment. This revision now requires changes to proceed. I am adding Zachary, as he usually has good ideas about APIs. All in all, it's not a very controversal change, but I have a bunch of inline comments

[Lldb-commits] [PATCH] D32306: Remove lock from ConstString::GetLength

2017-04-28 Thread Pavel Labath via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL301642: Remove lock from ConstString::GetLength (authored by labath). Changed prior to commit: https://reviews.llvm.org/D32306?vs=96841&id=97083#toc Repository: rL LLVM https://reviews.llvm.org/D323

[Lldb-commits] [PATCH] D32306: Remove lock from ConstString::GetLength

2017-04-28 Thread Pavel Labath via Phabricator via lldb-commits
labath added inline comments. Comment at: source/Utility/ConstString.cpp:49 + // pointer, we don't need the lock. const StringPoolEntryType &entry = GetStringMapEntryFromKeyData(ccstr); return entry.getKey().size(); scott.smith wrote: > labath

[Lldb-commits] [PATCH] D32719: Don't attempt to use mpx registers on unsupported platforms

2017-05-02 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. Couldn't we just update the cpp file to do #ifndef PR_MPX_ENABLE_MANAGEMENT return -1; #endif ? https://reviews.llvm.org/D32719 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/m

[Lldb-commits] [PATCH] D32503: Remove unused code related to CPlusPlusLanguage::FindEquivalentNames

2017-05-02 Thread Pavel Labath via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL301903: Remove unused code related to CPlusPlusLanguage::FindEquivalentNames (authored by labath). Changed prior to commit: https://reviews.llvm.org/D32503?vs=96623&id=97408#toc Repository: rL LLVM

[Lldb-commits] [PATCH] D32732: "target variable" not showing all global variable if we print any global variable before execution starts

2017-05-02 Thread Pavel Labath via Phabricator via lldb-commits
labath added subscribers: jingham, labath. labath added a comment. Thanks for the patch. Could you also write a test case for the bug? It sounds like all that is necessary is to move the commands from your commit message into a test. Jim, who would be a good reviewer for this? Repository: r

[Lldb-commits] [PATCH] D32708: Check for lack of C++ context first when demangling

2017-05-02 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. I am having trouble applying this. Do you need to rebase or something? Repository: rL LLVM https://reviews.llvm.org/D32708 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/lis

[Lldb-commits] [PATCH] D32316: Change UniqueCStringMap to use ConstString as the key

2017-05-02 Thread Pavel Labath via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL301908: Change UniqueCStringMap to use ConstString as the key (authored by labath). Changed prior to commit: https://reviews.llvm.org/D32316?vs=96629&id=97417#toc Repository: rL LLVM https://reviews

[Lldb-commits] [PATCH] D32434: ObjectFileELF: Fix symbol lookup in bss section

2017-05-02 Thread Pavel Labath via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL301917: ObjectFileELF: Fix symbol lookup in bss section (authored by labath). Changed prior to commit: https://reviews.llvm.org/D32434?vs=96541&id=97435#toc Repository: rL LLVM https://reviews.llvm.

[Lldb-commits] [PATCH] D32719: Don't attempt to use mpx registers on unsupported platforms

2017-05-02 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. I don't like either of the solutions too much, but this one is at least less code. :) https://reviews.llvm.org/D32719 ___ lldb-commits mailing l

[Lldb-commits] [PATCH] D32753: MainLoop: Add unit tests

2017-05-02 Thread Pavel Labath via Phabricator via lldb-commits
labath created this revision. Herald added a subscriber: mgorny. This adds a couple of unit tests to the MainLoop class. To get the kqueue based version of the signal handling passing, I needed to modify the implementation a bit to make the queue object persistent. Otherwise, only the signals whic

[Lldb-commits] [PATCH] D32421: Fix segfault resulting from empty print prompt

2017-05-03 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. It's definitely still a bug worth fixing, we cannot rely on undefined behavior like that. Thank you very much for adding the test case. Looking at the test suite again, I think I've found a better place for the test. Could you put the test in test/testcases/expression_c

[Lldb-commits] [PATCH] D32787: Fix build error: no viable conversion from returned value of type 'int' to function return type 'sigset_t' (aka '__sigset_t')

2017-05-03 Thread Pavel Labath via Phabricator via lldb-commits
labath requested changes to this revision. labath added a subscriber: probinson. labath added a comment. This revision now requires changes to proceed. This will not compile on windows, which really is the only branch we expected to have `SIGNAL_POLLING_UNSUPPORTED` set. In this sense Pauls (cc'e

[Lldb-commits] [PATCH] D32787: Fix build error: no viable conversion from returned value of type 'int' to function return type 'sigset_t' (aka '__sigset_t')

2017-05-03 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. In https://reviews.llvm.org/D32787#744379, @xiangzhai wrote: > Hi Pavel, > > > Could one of you guys check whether you really don't have the ppoll syscall > > (for example, are able to compile a simple program using ppoll (*)) > > It has! clang is able to compile the simp

[Lldb-commits] [PATCH] D32813: ABISysV_arm64: compute return value for large vectors correctly

2017-05-03 Thread Pavel Labath via Phabricator via lldb-commits
labath created this revision. Herald added subscribers: srhines, rengolin, aemerson. Arm64 Procedure Call Standard specifies than only vectors up to 16 bytes are stored in v0 (which makes sense, as that's the size of the register). 32-byte vector types are passed as regular structs via x8 pointer.

[Lldb-commits] [PATCH] D32787: Fix build error: no viable conversion from returned value of type 'int' to function return type 'sigset_t' (aka '__sigset_t')

2017-05-03 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. In https://reviews.llvm.org/D32787#744974, @probinson wrote: > Looking at CMakeError.log, the test program does `#include ` but does > not `#define _GNU_SOURCE`. The define has to be there for your example to > compile on my Ubuntu. We do that in LLDBGenerateConfig.cm

[Lldb-commits] [PATCH] D32787: Fix build error: no viable conversion from returned value of type 'int' to function return type 'sigset_t' (aka '__sigset_t')

2017-05-03 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. In https://reviews.llvm.org/D32787#745139, @probinson wrote: > In https://reviews.llvm.org/D32787#745099, @labath wrote: > > > Could it be that you just have stale cmake cache? > > > That could easily be true. Rerunning cmake didn't fix it; short of deleting > the entire

[Lldb-commits] [PATCH] D32823: Remove an expensive lock from Timer

2017-05-04 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. Don't forget to update the usages in unit tests (and make sure the check-lldb-unit target passes). Seems reasonable, however: I am not sure who actually uses these timers. I'd be tempted to just remove the timers that are causing the contention. Comme

[Lldb-commits] [PATCH] D32421: Fix segfault resulting from empty print prompt

2017-05-04 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. Perfect, thank you. Do you have commit access? https://reviews.llvm.org/D32421 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://

[Lldb-commits] [PATCH] D32832: Make ConstString creation and access lockfree

2017-05-04 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. I have feeling you gave up on the llvm change too quickly. My interpretation of that thread was that there was general support for the hash function switch, and people only wanted some confirmation it will not regress. However, I do believe that this can be made faster t

[Lldb-commits] [PATCH] D32753: MainLoop: Add unit tests

2017-05-04 Thread Pavel Labath via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL302133: MainLoop: Add unit tests (authored by labath). Changed prior to commit: https://reviews.llvm.org/D32753?vs=97464&id=97802#toc Repository: rL LLVM https://reviews.llvm.org/D32753 Files: lld

[Lldb-commits] [PATCH] D32813: ABISysV_arm64: compute return value for large vectors correctly

2017-05-04 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. In https://reviews.llvm.org/D32813#746012, @tberghammer wrote: > I am a bit confused by the correlation between your change and commit > message. In the commit message you say that 32 byte structs I mean 32-byte vectors. I.e. variables declared as `float foo __attribut

[Lldb-commits] [PATCH] D32823: Remove an expensive lock from Timer

2017-05-05 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. Ok, then let's keep them. I don't mind changing all call sites -- having a separate category object is the cleanest solution with least magic. However see my comments about category naming and merging. Comment at: unittests/Core/TimerTest.cpp:39 s

[Lldb-commits] [PATCH] D32899: [RuntimeDyld] Fix debug section relocation (pr20457)

2017-05-05 Thread Pavel Labath via Phabricator via lldb-commits
labath created this revision. Herald added a subscriber: aprantl. Debug info sections, (or non-SHF_ALLOC sections in general) should be linked as if their load address was zero to emulate the behavior of the static linker. I've made two tests for this: One checks that we are able to properly proc

[Lldb-commits] [PATCH] D32813: ABISysV_arm64: compute return value for large vectors correctly

2017-05-05 Thread Pavel Labath via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL302220: ABISysV_arm64: compute return value for large vectors correctly (authored by labath). Changed prior to commit: https://reviews.llvm.org/D32813?vs=97676&id=97927#toc Repository: rL LLVM https

[Lldb-commits] [PATCH] D32820: Parallelize demangling

2017-05-05 Thread Pavel Labath via Phabricator via lldb-commits
labath added inline comments. Comment at: source/Symbol/Symtab.cpp:257 -// The "const char *" in "class_contexts" must come from a -// ConstString::GetCString() -std::set class_contexts; -UniqueCStringMap mangled_name_to_index; -std::vector symbol_contexts(n

[Lldb-commits] [PATCH] D32757: Add TaskMap for iterating a function over a set of integers

2017-05-05 Thread Pavel Labath via Phabricator via lldb-commits
labath accepted this revision. labath added a comment. I can do the pushing. :) Thanks for the patch. Comment at: include/lldb/Utility/TaskPool.h:89 +void TaskMapOverInt(size_t begin, size_t end, +std::function const &func); Making this a

[Lldb-commits] [PATCH] D32757: Add TaskMap for iterating a function over a set of integers

2017-05-05 Thread Pavel Labath via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL302223: Add TaskMap for iterating a function over a set of integers (authored by labath). Changed prior to commit: https://reviews.llvm.org/D32757?vs=97907&id=97931#toc Repository: rL LLVM https://r

[Lldb-commits] [PATCH] D32421: Fix segfault resulting from empty print prompt

2017-05-05 Thread Pavel Labath via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL302225: Fix segfault resulting from empty print prompt (authored by labath). Changed prior to commit: https://reviews.llvm.org/D32421?vs=97717&id=97937#toc Repository: rL LLVM https://reviews.llvm.o

[Lldb-commits] [PATCH] D32421: Fix segfault resulting from empty print prompt

2017-05-05 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. Committed as 302225. I've fixed the indentation in your test, and added a couple of decorators to match other pexpect tests. Thanks for the patch! Repository: rL LLVM https://reviews.llvm.org/D32421 ___ lldb-commits maili

[Lldb-commits] [PATCH] D32022: Fix backtrace of noreturn functions situated at the end of a module

2017-05-05 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. Jason, any thoughts on my comments above? https://reviews.llvm.org/D32022 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [PATCH] D32823: Remove an expensive lock from Timer

2017-05-05 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. lgtm, thank you. Comment at: unittests/Core/TimerTest.cpp:39 std::this_thread::sleep_for(std::chrono::milliseconds(10)); -Timer t2("CAT1", ""); +// Explicitly te

[Lldb-commits] [PATCH] D32930: New framework for lldb client-server communication tests.

2017-05-08 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. The largest issue I see here is the use of exceptions, which are banned in llvm. We'll need to get rid of those before we start discussing anything else. This means we'll need to propagate errors manually, and we should design it in a way that it is easy to ASSERT on the

[Lldb-commits] [PATCH] D32597: Initiate loading of shared libraries in parallel

2017-05-08 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. I'm out of office this week. Could you hold until I get back? Hopefully we will see some development on the llvm/lld front in the meanwhile. Repository: rL LLVM https://reviews.llvm.org/D32597 ___ lldb-commits mailing li

[Lldb-commits] [PATCH] D32930: New framework for lldb client-server communication tests.

2017-05-12 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. next batch of comments from me (I expect to have more on monday). :) In https://reviews.llvm.org/D32930#752843, @krytarowski wrote: > I can build locally with `make thread_inferior`, how to run it? run the `check-lldb-unit` target. Comment at: unitte

[Lldb-commits] [PATCH] D32930: New framework for lldb client-server communication tests.

2017-05-12 Thread Pavel Labath via Phabricator via lldb-commits
labath added inline comments. Comment at: unittests/tools/lldb-server/inferior/thread_inferior.cpp:21 + + LLVM_BUILTIN_DEBUGTRAP; + delay = false; krytarowski wrote: > labath wrote: > > krytarowski wrote: > > > jmajors wrote: > > > > krytarowski wrote: > > > >

[Lldb-commits] [PATCH] D33035: Tool for using Intel(R) Processor Trace hardware feature

2017-05-15 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. I don't really like that we are adding a public shared library for every tiny intel feature. Could we at least merge this "plugin" with the existing "intel-mpx plugin" to create one "intel support" library? Also, adding an external dependency probably deserves a discussi

[Lldb-commits] [PATCH] D33077: [TypeSystem] Fix inspection of Objective-C object types

2017-05-15 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. As this is an objective C feature, wouldn't a better place for it be in testcases/lang/objc ? Comment at: packages/Python/lldbsuite/test/functionalities/ptr_refs-objc/Makefile:10 + +include $(LEVEL)/Makefile.rules This looks like a cop

[Lldb-commits] [PATCH] D32899: [RuntimeDyld] Fix debug section relocation (pr20457)

2017-05-15 Thread Pavel Labath via Phabricator via lldb-commits
labath updated this revision to Diff 98967. labath added a comment. Herald added a subscriber: krytarowski. Add llvm-rtdyld test case https://reviews.llvm.org/D32899 Files: lib/ExecutionEngine/RuntimeDyld/RuntimeDyld.cpp test/ExecutionEngine/RuntimeDyld/X86/ELF_x86-64_debug_frame.s Index:

[Lldb-commits] [PATCH] D32899: [RuntimeDyld] Fix debug section relocation (pr20457)

2017-05-15 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. Thanks for the help, this definitely looks much better. :) Since I already have it written, would you still be interested in the ProcessAllSections MCJIT test by any chance? I noticed that you none of the MCJIT tests set ProcessAllSections=true, or use Modules with debug

[Lldb-commits] [PATCH] D32295: [RFC] Fix crash in expression evaluation

2017-05-15 Thread Pavel Labath via Phabricator via lldb-commits
labath abandoned this revision. labath added a comment. Fix is in https://reviews.llvm.org/D32899. https://reviews.llvm.org/D32295 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [PATCH] D32585: Implementation of remote packets for Trace data.

2017-05-15 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. In https://reviews.llvm.org/D32585#752115, @ravitheja wrote: > In https://reviews.llvm.org/D32585#740632, @labath wrote: > > > I quite like that you have added just the packet plumbing code without an > > concrete implementation. However, that is still a significant amoun

[Lldb-commits] [PATCH] D33083: [Expression parser] Look up module symbols before hunting globally

2017-05-15 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. Is this feature really darwin specific? Isn't the `__private_extern__` thingy equivalent to `__attribute__(visibility("hidden")))`, which is supported by gcc and clang alike? Comment at: packages/Python/lldbsuite/test/lang/c/conflicting-symbol/Makefile

[Lldb-commits] [PATCH] D32930: New framework for lldb client-server communication tests.

2017-05-15 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. A bunch more pedantic comments from me. Comment at: unittests/tools/lldb-server/inferior/thread_inferior.cpp:26 + for (int i = 0; i < thread_count; i++) { +threads.push_back(std::thread([&delay]{while(delay);})); + } Could you add

[Lldb-commits] [PATCH] D33167: Get rid of some uses of StringConvert and reduce some indentation

2017-05-15 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. I think this is a step in the right direction. Besides reducing boilerplate, this will also help us ensure correctness, as we get a constant trickle of bug reports for commands which forgot to set the result status. The name is not ideal, but it's probably the best we ca

[Lldb-commits] [PATCH] D32823: Remove an expensive lock from Timer

2017-05-15 Thread Pavel Labath via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL303058: Remove an expensive lock from Timer (authored by labath). Changed prior to commit: https://reviews.llvm.org/D32823?vs=97973&id=98994#toc Repository: rL LLVM https://reviews.llvm.org/D32823

[Lldb-commits] [PATCH] D33083: [Expression parser] Look up module symbols before hunting globally

2017-05-16 Thread Pavel Labath via Phabricator via lldb-commits
labath added inline comments. Comment at: packages/Python/lldbsuite/test/lang/c/conflicting-symbol/One.mk:1 +LEVEL := ../../../make + Thanks for the effort. It almost works for me :), except for the part where you clear out the CFLAGS. We cannot do that, as CFLA

[Lldb-commits] [PATCH] D33241: Add Status -- llvm::Error glue

2017-05-16 Thread Pavel Labath via Phabricator via lldb-commits
labath created this revision. I tried convert a function to llvm::Error/Expected but I quickly ran into the issue of interfacing with code that still expects the Status objects. This is my proposal for conversion functions between the two. I use constructors and conversion operators on the Status

[Lldb-commits] [PATCH] D32899: [RuntimeDyld] Fix debug section relocation (pr20457)

2017-05-17 Thread Pavel Labath via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL303239: [RuntimeDyld] Fix debug section relocation (pr20457) (authored by labath). Changed prior to commit: https://reviews.llvm.org/D32899?vs=98967&id=99257#toc Repository: rL LLVM https://reviews.

[Lldb-commits] [PATCH] D33241: Add Status -- llvm::Error glue

2017-05-17 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. In https://reviews.llvm.org/D33241#756921, @zturner wrote: > Mostly just that implicit conversion operators are a very subtle source of > bugs, and you can't even find where they're being used because it's > impossible to grep for it. I agree, and that's why I made the

[Lldb-commits] [PATCH] D33241: Add Status -- llvm::Error glue

2017-05-17 Thread Pavel Labath via Phabricator via lldb-commits
labath updated this revision to Diff 99283. labath added a comment. use a separate function instead of a conversion operator https://reviews.llvm.org/D33241 Files: include/lldb/Utility/Status.h source/Utility/Status.cpp unittests/Utility/StatusTest.cpp Index: unittests/Utility/StatusTest

[Lldb-commits] [PATCH] D33283: RunThreadPlan: Fix halting logic in IgnoreBreakpoints = false

2017-05-17 Thread Pavel Labath via Phabricator via lldb-commits
labath created this revision. The function had logic to handle the case when the expression terminated while we were trying to halt the process, but it failed to take into account the possibility that the expression stopped because it hit a breakpoint. This was caused by the fact that the handling

[Lldb-commits] [PATCH] D33283: RunThreadPlan: Fix halting logic in IgnoreBreakpoints = false

2017-05-17 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. I'm not sure I understand what you're saying. Did you mean to say that I should add the "thread plan didn't successfully complete." (line 5281) block to the "Halt" branch as well ? (possibly by including it into the factored out function) https://reviews.llvm.org/D3328

[Lldb-commits] [PATCH] D32585: Implementation of remote packets for Trace data.

2017-05-18 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. llvm policy is to commit tests alongside the code under test. I also think it's easier to review as you have the code and the test on the same screen. What's the reason that prevents you from doing that? https://reviews.llvm.org/D32585 ___

[Lldb-commits] [PATCH] D32585: Implementation of remote packets for Trace data.

2017-05-18 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. In https://reviews.llvm.org/D32585#758391, @ravitheja wrote: > Well nothings preventing me from doing so, I have the changes for that were > suggested to me for this revision. I thought I would first upload them, so > that people can look at the parallel while I upload t

[Lldb-commits] [PATCH] D32930: New framework for lldb client-server communication tests.

2017-05-18 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. I think we're getting close, but I see a couple more issues here. Comment at: unittests/tools/lldb-server/tests/MessageObjects.cpp:24 + if (elements["pid"].getAsInteger(16, process_info->pid)) +return make_parsing_error("ProcessInfo: pid"); + if (e

[Lldb-commits] [PATCH] D33241: Add Status -- llvm::Error glue

2017-05-18 Thread Pavel Labath via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL303348: Add Status -- llvm::Error glue (authored by labath). Changed prior to commit: https://reviews.llvm.org/D33241?vs=99283&id=99429#toc Repository: rL LLVM https://reviews.llvm.org/D33241 Files:

[Lldb-commits] [PATCH] D33283: RunThreadPlan: Fix halting logic in IgnoreBreakpoints = false

2017-05-18 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. Ok, I've missed the distinction between plan completing (aka being "done") and completing **sucessfully**. Things make a bit more sense after that. With that in mind, let me try to explain how I understand it the code now, and then you can tell me if it's correct :) For

[Lldb-commits] [PATCH] D33283: RunThreadPlan: Fix halting logic in IgnoreBreakpoints = false

2017-05-18 Thread Pavel Labath via Phabricator via lldb-commits
labath updated this revision to Diff 99435. labath added a comment. New version https://reviews.llvm.org/D33283 Files: packages/Python/lldbsuite/test/expression_command/unwind_expression/TestUnwindExpression.py source/Target/Process.cpp Index: source/Target/Process.cpp ===

[Lldb-commits] [PATCH] D32930: New framework for lldb client-server communication tests.

2017-05-19 Thread Pavel Labath via Phabricator via lldb-commits
labath added inline comments. Comment at: unittests/tools/lldb-server/tests/MessageObjects.h:10 + +#include +#include jmajors wrote: > labath wrote: > > This still looks wrong. Did you run clang-format on the full patch (`git > > clang-format origin/master` sh

[Lldb-commits] [PATCH] D32930: New framework for lldb client-server communication tests.

2017-05-22 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. Ok, so the comments below are basically a collection of nits. The only two major issues that still need addressing are: - getting rid of the sleep in the startup code - deciding on the naming of members Comment at: unittests/tools/lldb-server/tests/Mes

[Lldb-commits] [PATCH] D32585: Implementation of remote packets for Trace data.

2017-05-22 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. Thank you for taking the time to write the test. Just a couple of more comments on things I noticed when going through this again: Comment at: source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp:3172 + if (custom_params) +json_packe

[Lldb-commits] [PATCH] D33409: Add support for new (3.0.11+) swigs

2017-05-22 Thread Pavel Labath via Phabricator via lldb-commits
labath created this revision. A change in swig 3.0.9 has caused it to generate modules incompatible with us using them as __init__.py (bug #769). Swig 3.0.11 adds a setting to help fix this problem, so use that. Support for older versions of swig remains unaffected. https://reviews.llvm.org/D334

[Lldb-commits] [PATCH] D32522: Test case for the issue raised in D32271

2017-05-22 Thread Pavel Labath via Phabricator via lldb-commits
labath added inline comments. Comment at: packages/Python/lldbsuite/test/functionalities/process_attach/TestProcessAttach.py:47 +exe = os.path.join('.','newdir','proc_attach') +self.addTearDownHook(lambda: shutil.rmtree(os.path.join(os.getcwd( + -

[Lldb-commits] [PATCH] D33347: Fix incorrect Status -> Error rename in IOHandler

2017-05-22 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. Committed as r303553. Thanks for the patch. https://reviews.llvm.org/D33347 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://list

[Lldb-commits] [PATCH] D33426: Introduce new command: thread backtrace unique

2017-05-23 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. Sounds like an awesome feature. Could you please add a test for it as well? https://reviews.llvm.org/D33426 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commit

[Lldb-commits] [PATCH] D32585: Implementation of remote packets for Trace data.

2017-05-23 Thread Pavel Labath via Phabricator via lldb-commits
labath added inline comments. Comment at: unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp:400 + + HandlePacket(server, "jTraceStart:{\"buffersize\" : 8192,\"jparams\" : {\"psb\" : 1,\"tracetech\" : \"intel-pt\"},\"metabuffersize\" : 8192,\"threadid\" : 35,\"

[Lldb-commits] [PATCH] D32585: Implementation of remote packets for Trace data.

2017-05-23 Thread Pavel Labath via Phabricator via lldb-commits
labath added inline comments. Comment at: unittests/Process/gdb-remote/GDBRemoteCommunicationClientTest.cpp:400 + + HandlePacket(server, "jTraceStart:{\"buffersize\" : 8192,\"jparams\" : {\"psb\" : 1,\"tracetech\" : \"intel-pt\"},\"metabuffersize\" : 8192,\"threadid\" : 35,\"

[Lldb-commits] [PATCH] D33409: Add support for new (3.0.11+) swigs

2017-05-23 Thread Pavel Labath via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL303627: Add support for new (3.0.11+) swigs (authored by labath). Changed prior to commit: https://reviews.llvm.org/D33409?vs=99755&id=99878#toc Repository: rL LLVM https://reviews.llvm.org/D33409

[Lldb-commits] [PATCH] D33283: RunThreadPlan: Fix halting logic in IgnoreBreakpoints = false

2017-05-24 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. thank you https://reviews.llvm.org/D33283 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [PATCH] D32149: Correct handling NetBSD core(5) files with threads

2017-05-24 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. What was your decision on the core files? I was under the impression you were gonna add the zip files as well. If so, then they should go in at the same time. Repository: rL LLVM https://reviews.llvm.org/D32149 ___ lldb-c

[Lldb-commits] [PATCH] D33426: Introduce new command: thread backtrace unique

2017-05-24 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. Thanks for writing the test. We just need to make sure it runs in a stable manner. Comment at: packages/Python/lldbsuite/test/functionalities/thread/num_threads/TestNumThreads.py:91 +# thread3 function. All of these threads should show as one s

[Lldb-commits] [PATCH] D32585: Implementation of remote packets for Trace data.

2017-05-24 Thread Pavel Labath via Phabricator via lldb-commits
labath accepted this revision. labath added a comment. Looks good as far as I am concerned (please wait for greg's ok though) https://reviews.llvm.org/D32585 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mai

[Lldb-commits] [PATCH] D33283: RunThreadPlan: Fix halting logic in IgnoreBreakpoints = false

2017-05-24 Thread Pavel Labath via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL303732: RunThreadPlan: Fix halting logic in IgnoreBreakpoints = false (authored by labath). Changed prior to commit: https://reviews.llvm.org/D33283?vs=99435&id=100058#toc Repository: rL LLVM https:

[Lldb-commits] [PATCH] D32366: Set "success" status correctly

2017-05-24 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. that sounds like an excellent idea, as it will check all executed commands, and not the ones we've remembered checking. It should probably be an `lldbassert` though. (And we'd need to check that the existing tests still pass after that.) Repository: rL LLVM https://r

<    7   8   9   10   11   12   13   14   15   16   >