Re: [Lldb-commits] [PATCH] D22628: Fixing layout of elf-core file related structures

2016-07-25 Thread Pavel Labath via lldb-commits
labath closed this revision. labath added a comment. Submitted in r276406. https://reviews.llvm.org/D22628 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Re: [Lldb-commits] [PATCH] D22771: Fix LLDBConfig.cmake to enable python enabled build for all 64 bit lldb targets

2016-07-26 Thread Pavel Labath via lldb-commits
labath added a comment. It seems this was added in 2014 for cross-compilation for android. Given that it's in a `if ! PYTHON` block and we don't use python anymore on android, I think it's pretty safe to remove. Thanks. Repository: rL LLVM https://reviews.llvm.org/D22771 ___

[Lldb-commits] [lldb] r276734 - Fix DataExtractor::PeekData for zero length peeks

2016-07-26 Thread Pavel Labath via lldb-commits
Author: labath Date: Tue Jul 26 03:11:57 2016 New Revision: 276734 URL: http://llvm.org/viewvc/llvm-project?rev=276734&view=rev Log: Fix DataExtractor::PeekData for zero length peeks Summary: The function was returning the null pointer for peeks of size zero, which seems like a sensible thing to

Re: [Lldb-commits] [PATCH] D22755: Fix DataExtractor::PeekData for zero length peeks

2016-07-26 Thread Pavel Labath via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL276734: Fix DataExtractor::PeekData for zero length peeks (authored by labath). Changed prior to commit: https://reviews.llvm.org/D22755?vs=65339&id=65478#toc Repository: rL LLVM https://reviews.llv

Re: [Lldb-commits] [PATCH] D22756: Fix incorrect form test in SymbolFileDWARF

2016-07-26 Thread Pavel Labath via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL276735: Fix incorrect form test in SymbolFileDWARF (authored by labath). Changed prior to commit: https://reviews.llvm.org/D22756?vs=65340&id=65479#toc Repository: rL LLVM https://reviews.llvm.org/D

[Lldb-commits] [lldb] r276735 - Fix incorrect form test in SymbolFileDWARF

2016-07-26 Thread Pavel Labath via lldb-commits
Author: labath Date: Tue Jul 26 03:16:19 2016 New Revision: 276735 URL: http://llvm.org/viewvc/llvm-project?rev=276735&view=rev Log: Fix incorrect form test in SymbolFileDWARF Summary: We were checking whether an attribute is in block form by getting the block data pointer, which was not correct

Re: [Lldb-commits] [lldb] r276795 - Check both private & public states to decide if you need to halt before killing.

2016-07-27 Thread Pavel Labath via lldb-commits
This fix is going to be flaky: Since the private state can flip back and forth between running and stopped and there's no sychronization between the private state thread and this code, you're going to get unpredictable behavior depending on the exact moment you call Destroy(). I assume the other t

Re: [Lldb-commits] [lldb] r276795 - Check both private & public states to decide if you need to halt before killing.

2016-07-27 Thread Pavel Labath via lldb-commits
On 27 July 2016 at 17:41, Jim Ingham wrote: > If you go to halt a thread whose private state is running, and by the time > you get to halting it the private state has gone from running to stopped then > the code doing the halt will declare victory, since that's what it was trying > to do. If i

Re: [Lldb-commits] [lldb] r276795 - Check both private & public states to decide if you need to halt before killing.

2016-07-28 Thread Pavel Labath via lldb-commits
On 27 July 2016 at 23:39, Jim Ingham wrote: > > Yes, I see. > > This change always checks public state running, so all the flips from run to > stopped in the private state thread will have no effect on all the modes of > running except expression evaluation. > > The change as is is better than w

Re: [Lldb-commits] [PATCH] D22863: Improve code of loading plugins that provide cmnds

2016-07-28 Thread Pavel Labath via lldb-commits
labath added a subscriber: labath. Comment at: include/lldb/API/SBCommandInterpreter.h:141-142 @@ -140,4 +140,4 @@ lldb::SBCommand -AddCommand (const char* name, lldb::SBCommandPluginInterface *impl, const char* help); +AddCommand (const char* name, lldb::SBCom

Re: [Lldb-commits] [PATCH] D22629: Rewrite gdb-remote's SendContinuePacketAndWaitForResponse

2016-07-28 Thread Pavel Labath via lldb-commits
labath updated this revision to Diff 65895. labath marked 2 inline comments as done. labath updated the summary for this revision. labath added a comment. Address review comments. https://reviews.llvm.org/D22629 Files: source/Plugins/Process/gdb-remote/CMakeLists.txt source/Plugins/Process/

Re: [Lldb-commits] [PATCH] D22629: Rewrite gdb-remote's SendContinuePacketAndWaitForResponse

2016-07-28 Thread Pavel Labath via lldb-commits
labath added a comment. In https://reviews.llvm.org/D22629#498135, @clayborg wrote: > I have some reservations about your future changes to add concurrent packets. > We should discuss this at length before you try to make any changes on the > mailing list. Agreed. I have a follow-up almost re

Re: [Lldb-commits] [PATCH] D22863: Improve code of loading plugins that provide cmnds

2016-07-28 Thread Pavel Labath via lldb-commits
labath added inline comments. Comment at: source/API/SBCommandInterpreter.cpp:156 @@ -155,3 +155,3 @@ } -lldb::SBCommandPluginInterface* m_backend; +std::shared_ptr m_backend; }; abhishek.aggarwal wrote: > clayborg wrote: > > Can't change public API,

[Lldb-commits] [PATCH] D22914: [WIP] Add concurrent packets support to gdb-remote client

2016-07-28 Thread Pavel Labath via lldb-commits
labath created this revision. labath added a reviewer: clayborg. labath added a subscriber: lldb-commits. Herald added subscribers: danalbert, tberghammer. This change adds the ability to the client to send multiple packets without waiting for the response to the first one. The individual senders

Re: [Lldb-commits] [PATCH] D22917: Add/fix support for i386 elf core files

2016-07-28 Thread Pavel Labath via lldb-commits
labath added a comment. Looks great, thanks. Please just fix the null pointer issue and we are good to go. Comment at: source/Plugins/ObjectFile/ELF/ObjectFileELF.cpp:1506 @@ -1502,2 +1505,3 @@ { llvm::StringRef path(data.GetCStr(&offset));

[Lldb-commits] [lldb] r277133 - Fixup r277011 - wrong use of infinite timeout

2016-07-29 Thread Pavel Labath via lldb-commits
Author: labath Date: Fri Jul 29 05:34:52 2016 New Revision: 277133 URL: http://llvm.org/viewvc/llvm-project?rev=277133&view=rev Log: Fixup r277011 - wrong use of infinite timeout The commit accidentally switched a timed wait on a condition variable into an infinite timeout. Change that back. And

Re: [Lldb-commits] [PATCH] D22629: Rewrite gdb-remote's SendContinuePacketAndWaitForResponse

2016-07-29 Thread Pavel Labath via lldb-commits
labath added a comment. Comment at: source/Plugins/Process/gdb-remote/GDBRemoteClientBase.cpp:269 @@ +268,3 @@ +void +GDBRemoteClientBase::OnRunPacketSent(bool first) +{ Will do. At that point this whole function becomes pretty irrelevant and i will inline it

Re: [Lldb-commits] [PATCH] D22917: Add/fix support for i386 elf core files

2016-07-29 Thread Pavel Labath via lldb-commits
labath accepted this revision. labath added a comment. This revision is now accepted and ready to land. thanks https://reviews.llvm.org/D22917 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/l

[Lldb-commits] [lldb] r277139 - Rewrite gdb-remote's SendContinuePacketAndWaitForResponse

2016-07-29 Thread Pavel Labath via lldb-commits
Author: labath Date: Fri Jul 29 08:10:02 2016 New Revision: 277139 URL: http://llvm.org/viewvc/llvm-project?rev=277139&view=rev Log: Rewrite gdb-remote's SendContinuePacketAndWaitForResponse SendContinuePacketAndWaitForResponse was huge function with very complex interactions with several other

Re: [Lldb-commits] [PATCH] D22629: Rewrite gdb-remote's SendContinuePacketAndWaitForResponse

2016-07-29 Thread Pavel Labath via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL277139: Rewrite gdb-remote's SendContinuePacketAndWaitForResponse (authored by labath). Changed prior to commit: https://reviews.llvm.org/D22629?vs=65895&id=66113#toc Repository: rL LLVM https://rev

Re: [Lldb-commits] [PATCH] D22914: [WIP] Add concurrent packets support to gdb-remote client

2016-07-29 Thread Pavel Labath via lldb-commits
labath added a comment. I am going to put my responses inilne: In https://reviews.llvm.org/D22914#499519, @clayborg wrote: > A few things that worry me: > > - There are no sequence IDs on any packets so when receiving responses, I am > not sure how you are going to match up packets with their r

[Lldb-commits] [lldb] r277154 - Revert "Rewrite gdb-remote's SendContinuePacketAndWaitForResponse"

2016-07-29 Thread Pavel Labath via lldb-commits
Author: labath Date: Fri Jul 29 10:41:52 2016 New Revision: 277154 URL: http://llvm.org/viewvc/llvm-project?rev=277154&view=rev Log: Revert "Rewrite gdb-remote's SendContinuePacketAndWaitForResponse" This reverts commit r277139, because: - broken unittest on windows (likely typo on my part) - see

Re: [Lldb-commits] [PATCH] D22950: Centralize all calls to select() into a single class so we always call select properly

2016-07-29 Thread Pavel Labath via lldb-commits
labath added a subscriber: labath. labath added a comment. Ok, there is one more big difference: MainLoop doesn't have timeouts yet. So yes, I guess these are not yet ready for merging... https://reviews.llvm.org/D22950 ___ lldb-commits mailing lis

Re: [Lldb-commits] [PATCH] D23070: [debugserver] Delete CFData.{h, cpp}, since they appear to be dead (NFCI)

2016-08-08 Thread Pavel Labath via lldb-commits
labath resigned from this revision. labath removed a reviewer: labath. labath added a comment. @clayborg should approve any changes touching the debugserver. https://reviews.llvm.org/D23070 ___ lldb-commits mailing list lldb-commits@lists.llvm.org h

[Lldb-commits] [lldb] r277997 - Remove _isatty from Android.h

2016-08-08 Thread Pavel Labath via lldb-commits
Author: labath Date: Mon Aug 8 07:26:57 2016 New Revision: 277997 URL: http://llvm.org/viewvc/llvm-project?rev=277997&view=rev Log: Remove _isatty from Android.h it is just #defined to isatty anyway, which lldb already knows how to use. Modified: lldb/trunk/include/lldb/Host/android/Android

[Lldb-commits] [lldb] r277999 - Remove SYS_tgkill from Android.h

2016-08-08 Thread Pavel Labath via lldb-commits
Author: labath Date: Mon Aug 8 07:40:11 2016 New Revision: 277999 URL: http://llvm.org/viewvc/llvm-project?rev=277999&view=rev Log: Remove SYS_tgkill from Android.h instead, use __NR_tgkill directly, which seems to be the preferred form in the codebase anyway. Modified: lldb/trunk/include/

[Lldb-commits] [lldb] r278000 - Remove Android.h

2016-08-08 Thread Pavel Labath via lldb-commits
Author: labath Date: Mon Aug 8 07:54:36 2016 New Revision: 278000 URL: http://llvm.org/viewvc/llvm-project?rev=278000&view=rev Log: Remove Android.h It only contained a reimplementation of std::to_string, which I have replaced with usages of pre-existing llvm::to_string (also, injecting members

[Lldb-commits] [lldb] r278001 - Clean up linux/Ptrace.h

2016-08-08 Thread Pavel Labath via lldb-commits
Author: labath Date: Mon Aug 8 08:13:03 2016 New Revision: 278001 URL: http://llvm.org/viewvc/llvm-project?rev=278001&view=rev Log: Clean up linux/Ptrace.h This removes references to PT_XXX macros from the file, as they were not used anyway. It also changes the macro used to check for the defin

[Lldb-commits] [lldb] r278005 - Fix uninitialized field warnings in GDBRemoteRegisterContext

2016-08-08 Thread Pavel Labath via lldb-commits
Author: labath Date: Mon Aug 8 08:38:33 2016 New Revision: 278005 URL: http://llvm.org/viewvc/llvm-project?rev=278005&view=rev Log: Fix uninitialized field warnings in GDBRemoteRegisterContext also take the opportunity to replace NULL with nullptr and add clang-format guards to prevent it from

Re: [Lldb-commits] [PATCH] D22914: [WIP] Add concurrent packets support to gdb-remote client

2016-08-08 Thread Pavel Labath via lldb-commits
labath added a comment. Any thoughts on this, Greg? https://reviews.llvm.org/D22914 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Re: [Lldb-commits] [PATCH] D17856: Fix expression evaluation with operator new

2016-08-08 Thread Pavel Labath via lldb-commits
labath added a comment. Sean, if you don't object, I am going to put this in next week. pl https://reviews.llvm.org/D17856 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Re: [Lldb-commits] [PATCH] D22369: DWARFDeclContext: Don't add '::' in front of symbol names

2016-08-08 Thread Pavel Labath via lldb-commits
labath added a comment. Greg, what do you think about this? https://reviews.llvm.org/D22369 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Re: [Lldb-commits] [PATCH] D22999: Resurrect standalone build

2016-08-09 Thread Pavel Labath via lldb-commits
labath requested changes to this revision. labath added a comment. This revision now requires changes to proceed. I agree with Tamas that this should somehow be handled in a different way. llvm already installs a bunch of cmake files. I think we should figure out a way to get the things we need

Re: [Lldb-commits] [PATCH] D20386: Correct makefile.rules to use arm/aarch64 target specific AR and OBJCOPY

2016-08-09 Thread Pavel Labath via lldb-commits
labath requested changes to this revision. labath added a comment. This revision now requires changes to proceed. This will break a several use cases we are relying on. More details inline. Comment at: packages/Python/lldbsuite/test/make/Makefile.rules:288 @@ -289,3 +287,3 @@ #

Re: [Lldb-commits] [PATCH] D22369: DWARFDeclContext: Don't add '::' in front of symbol names

2016-08-09 Thread Pavel Labath via lldb-commits
labath abandoned this revision. labath added a comment. Ok, thanks for the explanation. It'll take some time for me to parse all the information there, but this is not a priority for us now. Maybe I'll come back to this later, but I'm fine with leaving it like this for now. https://reviews.llv

Re: [Lldb-commits] [PATCH] D22914: [WIP] Add concurrent packets support to gdb-remote client

2016-08-09 Thread Pavel Labath via lldb-commits
labath added a comment. These are the results before and after applying this change (on linux): Before: (lldb) process plugin packet speed-test Testing sending 1000 packets of various sizes: qSpeedTest(send=0 , recv=0 ) in 0.057456000 sec for 17404.62 packets/sec ( 0.057456 ms

Re: [Lldb-commits] [PATCH] D23290: Added enforce-interactivity setting

2016-08-10 Thread Pavel Labath via lldb-commits
labath added a comment. I would implement this logic slightly differently: Have a ternary setting, let's call it `debugger.interactive`, whose values are `never, always, auto`, with `auto` (the current behavior) being the default. I think that makes it the behavior of the debugger more predicti

Re: [Lldb-commits] [PATCH] D20386: Correct makefile.rules to use arm/aarch64 target specific AR and OBJCOPY

2016-08-10 Thread Pavel Labath via lldb-commits
labath added inline comments. Comment at: packages/Python/lldbsuite/test/make/Makefile.rules:304 @@ +303,3 @@ + $(subst $(3),$(1),$(2)), \ + $(if $(findstring ar,$(1)), \ +$(if $(findstring gcc,$(3)), \ --

Re: [Lldb-commits] [lldb] r278197 - Undid LLVM macro usage in test suite test subject files.

2016-08-10 Thread Pavel Labath via lldb-commits
Zach, it looks like you have a `#define LLVM_PRETTY_FUNCTION LLVM_PRETTY_FUNCTION` in the non-windows path in test_common.h, which makes it a no-op. If you change the definition to __PRETTY_FUNCTION__ then it should work. pl On 10 August 2016 at 05:21, Todd Fiala via lldb-commits wrote: > That s

Re: [Lldb-commits] [PATCH] D22914: [WIP] Add concurrent packets support to gdb-remote client

2016-08-10 Thread Pavel Labath via lldb-commits
labath added a comment. In https://reviews.llvm.org/D22914#510084, @clayborg wrote: > Let me know how things look on Mac. Our lock primitives are not as fast as > linux. If all looks good on Mac speed wise, we should be good to go. These are the results on Mac. Before: Testing sending 1000

Re: [Lldb-commits] [PATCH] D22914: [WIP] Add concurrent packets support to gdb-remote client

2016-08-10 Thread Pavel Labath via lldb-commits
labath updated this revision to Diff 67507. labath added a comment. The patch I used to run the tests. Still very much WIP. https://reviews.llvm.org/D22914 Files: source/Plugins/Process/gdb-remote/GDBRemoteClientBase.cpp source/Plugins/Process/gdb-remote/GDBRemoteClientBase.h source/Plugi

[Lldb-commits] [lldb] r278222 - Make sure files include what they use (part 1/N)

2016-08-10 Thread Pavel Labath via lldb-commits
Author: labath Date: Wed Aug 10 08:30:20 2016 New Revision: 278222 URL: http://llvm.org/viewvc/llvm-project?rev=278222&view=rev Log: Make sure files include what they use (part 1/N) preparation for the big clang-format. Modified: lldb/trunk/include/lldb/Core/Flags.h lldb/trunk/include/ll

Re: [Lldb-commits] [PATCH] D23290: Added enforce-interactivity setting

2016-08-11 Thread Pavel Labath via lldb-commits
labath added a subscriber: zturner. labath added a comment. I think I have understood the situation a bit more now, so let me try to explain what is going on. In https://reviews.llvm.org/D23290#511683, @clayborg wrote: > Is this something the user is typing in your IDE that you are forwarding t

Re: [Lldb-commits] [lldb] r278304 - Fix a problem where if a uint64_t value is placed into a python dictionary and sent up to LLDB and converted to StructuredData, it would not be able to parse the fu

2016-08-11 Thread Pavel Labath via lldb-commits
On 11 August 2016 at 00:41, Zachary Turner via lldb-commits wrote: > Couple of random style comments below. You don't have to fix these, just > something to think about in the future. > > > > On Wed, Aug 10, 2016 at 4:33 PM Greg Clayton via lldb-commits > wrote: >> >> + >> +TEST_F(PythonDataObje

[Lldb-commits] [lldb] r278325 - Remove a double send of eRunPacketSent event

2016-08-11 Thread Pavel Labath via lldb-commits
Author: labath Date: Thu Aug 11 04:22:22 2016 New Revision: 278325 URL: http://llvm.org/viewvc/llvm-project?rev=278325&view=rev Log: Remove a double send of eRunPacketSent event I accidentaly added the send both to the base class and the derived class in my refactor. Fix that. Modified: ll

[Lldb-commits] [PATCH] D23406: Fix a race in Broadcaster/Listener interaction

2016-08-11 Thread Pavel Labath via lldb-commits
labath created this revision. labath added reviewers: clayborg, jingham. labath added subscribers: lldb-commits, tberghammer. The following problem was occuring: - broadcaster B had two listeners: L1 and L2 (thread T1) - (T1) B has started to broadcast an event, it has locked a shared_ptr to L1 (i

[Lldb-commits] [lldb] r278335 - Make sure files include what they use (part 2/2)

2016-08-11 Thread Pavel Labath via lldb-commits
Author: labath Date: Thu Aug 11 09:12:10 2016 New Revision: 278335 URL: http://llvm.org/viewvc/llvm-project?rev=278335&view=rev Log: Make sure files include what they use (part 2/2) This makes lldb still compile on linux after a project-wide clang-format Modified: lldb/trunk/source/Plugins/P

Re: [Lldb-commits] [PATCH] D20386: Correct makefile.rules to use arm/aarch64 target specific AR and OBJCOPY

2016-08-11 Thread Pavel Labath via lldb-commits
labath added a comment. Looks great, just give me a while to prepare the new paths on the buildbots. Should be done by tomorrow. https://reviews.llvm.org/D20386 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin

[Lldb-commits] [lldb] r278345 - Fix unit tests on windows

2016-08-11 Thread Pavel Labath via lldb-commits
Author: labath Date: Thu Aug 11 10:31:30 2016 New Revision: 278345 URL: http://llvm.org/viewvc/llvm-project?rev=278345&view=rev Log: Fix unit tests on windows Python headers need to be included before PosixApi.h Modified: lldb/trunk/unittests/ScriptInterpreter/Python/PythonDataObjectsTests.c

Re: [Lldb-commits] [PATCH] D20386: Correct makefile.rules to use arm/aarch64 target specific AR and OBJCOPY

2016-08-11 Thread Pavel Labath via lldb-commits
labath added a comment. Hm... there is one more problem here.. when we run the tests against a top-of-tree clang that we have just built, we will compute AR and OBJCOPY to be in the build directory. They will obviously not be there, and we cannot just create the symlinks there by hand because t

Re: [Lldb-commits] [PATCH] D20386: Correct makefile.rules to use arm/aarch64 target specific AR and OBJCOPY

2016-08-12 Thread Pavel Labath via lldb-commits
labath added a comment. Ok. After some though I have come up with this: - leave the tool computation logic as it is in the last version of your patch - add the ability to override the tool values via environment variables. Basically this would mean using `TOOL ?= value` instead of `TOOL = value`

[Lldb-commits] [lldb] r278490 - Make TestCallStopAndContinue clang-format-resilient

2016-08-12 Thread Pavel Labath via lldb-commits
Author: labath Date: Fri Aug 12 04:39:22 2016 New Revision: 278490 URL: http://llvm.org/viewvc/llvm-project?rev=278490&view=rev Log: Make TestCallStopAndContinue clang-format-resilient Modified: lldb/trunk/packages/Python/lldbsuite/test/expression_command/call-function/TestCallStopAndContinu

[Lldb-commits] [lldb] r278491 - XFAIL TestNamespaceDefinitions on gcc-4.8 and below

2016-08-12 Thread Pavel Labath via lldb-commits
Author: labath Date: Fri Aug 12 04:52:14 2016 New Revision: 278491 URL: http://llvm.org/viewvc/llvm-project?rev=278491&view=rev Log: XFAIL TestNamespaceDefinitions on gcc-4.8 and below Modified: lldb/trunk/packages/Python/lldbsuite/test/lang/cpp/namespace_definitions/TestNamespaceDefinitions

[Lldb-commits] [lldb] r278500 - Fix-up r278299 for windows

2016-08-12 Thread Pavel Labath via lldb-commits
Author: labath Date: Fri Aug 12 06:20:21 2016 New Revision: 278500 URL: http://llvm.org/viewvc/llvm-project?rev=278500&view=rev Log: Fix-up r278299 for windows FD_SETSIZE on windows limits the number of file descriptors, rather than their individual magnitude (the underlying implementation uses

[Lldb-commits] Fwd: [lldb] r278500 - Fix-up r278299 for windows

2016-08-12 Thread Pavel Labath via lldb-commits
Fyi. Please check if I got that right. -- Forwarded message -- From: Pavel Labath via lldb-commits Date: 12 August 2016 at 12:20 Subject: [Lldb-commits] [lldb] r278500 - Fix-up r278299 for windows To: lldb-commits@lists.llvm.org Author: labath Date: Fri Aug 12 06:20:21 2016 New

Re: [Lldb-commits] [PATCH] D23406: Fix a race in Broadcaster/Listener interaction

2016-08-12 Thread Pavel Labath via lldb-commits
labath added a comment. Jim, just to double-check. Was that an "approve" then? My feeling is that the lack of visibility into the SmallVector, means more that we should resurrect the formatter than that we should stop using it. Especially considering the whole "let's integrate closer with llvm"

[Lldb-commits] [lldb] r278662 - Fixup r278524 for non-apple targets

2016-08-15 Thread Pavel Labath via lldb-commits
Author: labath Date: Mon Aug 15 04:17:13 2016 New Revision: 278662 URL: http://llvm.org/viewvc/llvm-project?rev=278662&view=rev Log: Fixup r278524 for non-apple targets The commit started passing a nullptr port into GDBRemoteCommunication::StartDebugserverProcess. The function was mostly handlin

Re: [Lldb-commits] [PATCH] D23406: Fix a race in Broadcaster/Listener interaction

2016-08-15 Thread Pavel Labath via lldb-commits
labath added a comment. In https://reviews.llvm.org/D23406#513927, @jingham wrote: > Yes, sorry. I seem to have trouble with remembering the Action dropdown... > Thanks for figuring this out - and apologies for any hair loss we > inadvertently caused you! No worries. > I doubt it is import

Re: [Lldb-commits] [PATCH] D23406: Fix a race in Broadcaster/Listener interaction

2016-08-15 Thread Pavel Labath via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL278664: Fix a race in Broadcaster/Listener interaction (authored by labath). Changed prior to commit: https://reviews.llvm.org/D23406?vs=67686&id=68007#toc Repository: rL LLVM https://reviews.llvm.o

[Lldb-commits] [lldb] r278664 - Fix a race in Broadcaster/Listener interaction

2016-08-15 Thread Pavel Labath via lldb-commits
Author: labath Date: Mon Aug 15 04:53:08 2016 New Revision: 278664 URL: http://llvm.org/viewvc/llvm-project?rev=278664&view=rev Log: Fix a race in Broadcaster/Listener interaction Summary: The following problem was occuring: - broadcaster B had two listeners: L1 and L2 (thread T1) - (T1) B has st

Re: [Lldb-commits] [PATCH] D17856: Fix expression evaluation with operator new

2016-08-15 Thread Pavel Labath via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL278670: Fix expression evaluation with operator new (authored by labath). Changed prior to commit: https://reviews.llvm.org/D17856?vs=56252&id=68036#toc Repository: rL LLVM https://reviews.llvm.org/

[Lldb-commits] [lldb] r278670 - Fix expression evaluation with operator new

2016-08-15 Thread Pavel Labath via lldb-commits
Author: labath Date: Mon Aug 15 09:32:32 2016 New Revision: 278670 URL: http://llvm.org/viewvc/llvm-project?rev=278670&view=rev Log: Fix expression evaluation with operator new Summary: referencing a user-defined operator new was triggering an assert in clang because we were registering the func

[Lldb-commits] [lldb] r278785 - Remove GetThreadSuffixSupported from GDBRemoteCommunication **base** class

2016-08-16 Thread Pavel Labath via lldb-commits
Author: labath Date: Tue Aug 16 04:36:29 2016 New Revision: 278785 URL: http://llvm.org/viewvc/llvm-project?rev=278785&view=rev Log: Remove GetThreadSuffixSupported from GDBRemoteCommunication **base** class Despite its comment, the function is only used in the Client class, and its presence was

Re: [Lldb-commits] [PATCH] D23545: Minidump parsing

2016-08-16 Thread Pavel Labath via lldb-commits
labath added a comment. The implementation looks nice and clean. I have only some stylistic comments giving it finishing touches.. Comment at: source/Plugins/Process/minidump/CMakeLists.txt:6 @@ +5,3 @@ + MinidumpParser.cpp + #ProcessMinidump.cpp + #ThreadMinidump.cpp --

[Lldb-commits] [PATCH] D23553: Move packet construction from GDBRemoteRegisterContext go the communication class

2016-08-16 Thread Pavel Labath via lldb-commits
labath created this revision. labath added a reviewer: clayborg. labath added a subscriber: lldb-commits. When saving/restoring registers the GDBRemoteRegisterContext class was manually constructing the register save/restore packets. This creates appropriate helper functions in GDBRemoteCommunica

Re: [Lldb-commits] [PATCH] D23553: Move packet construction from GDBRemoteRegisterContext go the communication class

2016-08-16 Thread Pavel Labath via lldb-commits
labath added inline comments. Comment at: source/Plugins/Process/gdb-remote/GDBRemoteRegisterContext.cpp:601 @@ -600,3 @@ - -if (gdb_comm.SendPacketAndWaitForResponse(packet, packet_len, response, false) == GDBRemoteCommunication::PacketResult::Success) -

Re: [Lldb-commits] [PATCH] D23553: Move packet construction from GDBRemoteRegisterContext go the communication class

2016-08-16 Thread Pavel Labath via lldb-commits
labath updated this revision to Diff 68171. labath added a comment. Fix indentation https://reviews.llvm.org/D23553 Files: source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.h source/Plugins/Process/gdb-remote/

Re: [Lldb-commits] [PATCH] D22914: [WIP] Add concurrent packets support to gdb-remote client

2016-08-16 Thread Pavel Labath via lldb-commits
labath added a comment. In https://reviews.llvm.org/D22914#511294, @clayborg wrote: > OK. I can't complain if it doesn't affect performance and could allow > multiple packets to be in flight with threading, though I think solving this > issue with threading is a bit of a hack, but it should wor

[Lldb-commits] [PATCH] D23554: Remove cmake legacy code

2016-08-16 Thread Pavel Labath via lldb-commits
labath created this revision. labath added a reviewer: zturner. labath added a subscriber: lldb-commits. Cmake 2.8 support is gone and not coming back. We can remove a bit of legacy code now. https://reviews.llvm.org/D23554 Files: cmake/modules/AddLLDB.cmake cmake/modules/LLDBConfig.cmake

Re: [Lldb-commits] [PATCH] D20386: Correct makefile.rules to use arm/aarch64 target specific AR and OBJCOPY

2016-08-16 Thread Pavel Labath via lldb-commits
labath added a comment. Sounds that we're agreed then. Can you please update the patch to use `?=` as appropriate? I will update the buildbots to set these variables explicitly as needed, and then we can get this in. https://reviews.llvm.org/D20386 __

Re: [Lldb-commits] [PATCH] D23553: Move packet construction from GDBRemoteRegisterContext go the communication class

2016-08-17 Thread Pavel Labath via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL278915: Move packet construction from GDBRemoteRegisterContext go the communication… (authored by labath). Changed prior to commit: https://reviews.llvm.org/D23553?vs=68171&id=68323#toc Repository: r

[Lldb-commits] [lldb] r278915 - Move packet construction from GDBRemoteRegisterContext go the communication class

2016-08-17 Thread Pavel Labath via lldb-commits
Author: labath Date: Wed Aug 17 03:53:31 2016 New Revision: 278915 URL: http://llvm.org/viewvc/llvm-project?rev=278915&view=rev Log: Move packet construction from GDBRemoteRegisterContext go the communication class Summary: When saving/restoring registers the GDBRemoteRegisterContext class was m

[Lldb-commits] [lldb] r278916 - Remove manual packet construction from GDBRemoteRegisterContext::SetPrimordialRegister

2016-08-17 Thread Pavel Labath via lldb-commits
Author: labath Date: Wed Aug 17 04:12:21 2016 New Revision: 278916 URL: http://llvm.org/viewvc/llvm-project?rev=278916&view=rev Log: Remove manual packet construction from GDBRemoteRegisterContext::SetPrimordialRegister Modified: lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteRegister

[Lldb-commits] [lldb] r278918 - Fix unittest compilation error in r278915

2016-08-17 Thread Pavel Labath via lldb-commits
Author: labath Date: Wed Aug 17 04:17:08 2016 New Revision: 278918 URL: http://llvm.org/viewvc/llvm-project?rev=278918&view=rev Log: Fix unittest compilation error in r278915 Modified: lldb/trunk/unittests/Process/gdb-remote/GDBRemoteTestUtils.cpp lldb/trunk/unittests/Process/gdb-remote/G

[Lldb-commits] [PATCH] D23604: gdb-remote: Centralize thread specific packet handling

2016-08-17 Thread Pavel Labath via lldb-commits
labath created this revision. labath added a reviewer: clayborg. labath added a subscriber: lldb-commits. Before this, each function had a copy of the code which handled appending of the thread suffix to the packet (or using $Hg instead). I have moved that code into a single function and made ev

[Lldb-commits] [lldb] r278924 - Remove cmake legacy code

2016-08-17 Thread Pavel Labath via lldb-commits
Author: labath Date: Wed Aug 17 06:55:50 2016 New Revision: 278924 URL: http://llvm.org/viewvc/llvm-project?rev=278924&view=rev Log: Remove cmake legacy code Summary: Cmake 2.8 support is gone and not coming back. We can remove a bit of legacy code now. Reviewers: zturner Subscribers: lldb-com

Re: [Lldb-commits] [PATCH] D23554: Remove cmake legacy code

2016-08-17 Thread Pavel Labath via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL278924: Remove cmake legacy code (authored by labath). Changed prior to commit: https://reviews.llvm.org/D23554?vs=68172&id=68338#toc Repository: rL LLVM https://reviews.llvm.org/D23554 Files: lld

[Lldb-commits] [lldb] r278925 - Fix unittests on windows after r278915

2016-08-17 Thread Pavel Labath via lldb-commits
Author: labath Date: Wed Aug 17 07:00:19 2016 New Revision: 278925 URL: http://llvm.org/viewvc/llvm-project?rev=278925&view=rev Log: Fix unittests on windows after r278915 Apparently clang will happily capture a const variable in a lambda without it being specified in the capture clause. MSVC do

[Lldb-commits] [PATCH] D23608: Fix parsing of complicated C++ names

2016-08-17 Thread Pavel Labath via lldb-commits
labath created this revision. labath added a reviewer: clayborg. labath added a subscriber: lldb-commits. CPlusPlusLanguage::MethodName was not correctly parsing templated functions whose demangled name included the return type -- the space before the function name was included in the "context"

Re: [Lldb-commits] [PATCH] D20386: Correct makefile.rules to use arm/aarch64 target specific AR and OBJCOPY

2016-08-17 Thread Pavel Labath via lldb-commits
labath accepted this revision. labath added a comment. This revision is now accepted and ready to land. I have updated the buildbots to appropriately set these variables. Hopefully we will have a smooth transition. Thanks for your patience. https://reviews.llvm.org/D20386 __

[Lldb-commits] [lldb] r279039 - Fix tests for the gdb-remote memory read packets

2016-08-18 Thread Pavel Labath via lldb-commits
Author: labath Date: Thu Aug 18 03:21:42 2016 New Revision: 279039 URL: http://llvm.org/viewvc/llvm-project?rev=279039&view=rev Log: Fix tests for the gdb-remote memory read packets Part of TestGDBRemoteMemoryRead has been disabled since r259379 because it was incompatible with python3. This cha

[Lldb-commits] [lldb] r279038 - Fix parsing of complicated C++ names

2016-08-18 Thread Pavel Labath via lldb-commits
Author: labath Date: Thu Aug 18 03:21:38 2016 New Revision: 279038 URL: http://llvm.org/viewvc/llvm-project?rev=279038&view=rev Log: Fix parsing of complicated C++ names Summary: CPlusPlusLanguage::MethodName was not correctly parsing templated functions whose demangled name included the return

Re: [Lldb-commits] [PATCH] D23608: Fix parsing of complicated C++ names

2016-08-18 Thread Pavel Labath via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL279038: Fix parsing of complicated C++ names (authored by labath). Changed prior to commit: https://reviews.llvm.org/D23608?vs=68344&id=68493#toc Repository: rL LLVM https://reviews.llvm.org/D23608

[Lldb-commits] [lldb] r279040 - gdb-remote: Centralize thread specific packet handling

2016-08-18 Thread Pavel Labath via lldb-commits
Author: labath Date: Thu Aug 18 03:30:03 2016 New Revision: 279040 URL: http://llvm.org/viewvc/llvm-project?rev=279040&view=rev Log: gdb-remote: Centralize thread specific packet handling Summary: Before this, each function had a copy of the code which handled appending of the thread suffix to t

Re: [Lldb-commits] [PATCH] D23604: gdb-remote: Centralize thread specific packet handling

2016-08-18 Thread Pavel Labath via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL279040: gdb-remote: Centralize thread specific packet handling (authored by labath). Changed prior to commit: https://reviews.llvm.org/D23604?vs=68337&id=68495#toc Repository: rL LLVM https://review

[Lldb-commits] [lldb] r279057 - Move QSyncThreadState packet generation to the gdb-remote client

2016-08-18 Thread Pavel Labath via lldb-commits
Author: labath Date: Thu Aug 18 07:32:41 2016 New Revision: 279057 URL: http://llvm.org/viewvc/llvm-project?rev=279057&view=rev Log: Move QSyncThreadState packet generation to the gdb-remote client Modified: lldb/trunk/source/Plugins/Process/gdb-remote/GDBRemoteCommunicationClient.cpp ll

[Lldb-commits] [PATCH] D23659: Remove the last manually constructed packet from gdb-remote register context + small refactor

2016-08-18 Thread Pavel Labath via lldb-commits
labath created this revision. labath added a reviewer: clayborg. labath added a subscriber: lldb-commits. The tricky part here was that the exisiting implementation of WriteAllRegisters was expecting hex-encoded data (as that was what the first implementation I replaced was using, but here we ha

[Lldb-commits] [lldb] r279070 - gdb-remote: Remove manual locking from GetShlibInfoAddr

2016-08-18 Thread Pavel Labath via lldb-commits
Author: labath Date: Thu Aug 18 09:33:55 2016 New Revision: 279070 URL: http://llvm.org/viewvc/llvm-project?rev=279070&view=rev Log: gdb-remote: Remove manual locking from GetShlibInfoAddr The function can simply call the non-NoLock version of the SendPacket function and let it do the locking.

Re: [Lldb-commits] [PATCH] D23545: Minidump parsing

2016-08-19 Thread Pavel Labath via lldb-commits
labath added a comment. > > Do you have a suggestion where the parsing code to be, if not in the same > > directory? > > > The parsing code will end up being used by multiple plugins--the new one > you're building for Linux and the existing one that's Windows-specific. I was hoping that w

Re: [Lldb-commits] [lldb] r279198 - Add StructuredData plugin type; showcase with new DarwinLog feature

2016-08-19 Thread Pavel Labath via lldb-commits
You added LLDB as a subsriber. I don't know what that is, but the correct name for the list is "lldb-commits". pl On 19 August 2016 at 04:54, Todd Fiala via lldb-commits wrote: > Huh, that is totally weird. I wonder what happened there? > > On Thu, Aug 18, 2016 at 8:12 PM, Zachary Turner wrote

[Lldb-commits] [lldb] r279232 - Remove the last manually constructed packet from gdb-remote register context + small refactor

2016-08-19 Thread Pavel Labath via lldb-commits
Author: labath Date: Fri Aug 19 07:31:49 2016 New Revision: 279232 URL: http://llvm.org/viewvc/llvm-project?rev=279232&view=rev Log: Remove the last manually constructed packet from gdb-remote register context + small refactor Summary: The tricky part here was that the exisiting implementation o

Re: [Lldb-commits] [PATCH] D23659: Remove the last manually constructed packet from gdb-remote register context + small refactor

2016-08-19 Thread Pavel Labath via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL279232: Remove the last manually constructed packet from gdb-remote register context… (authored by labath). Changed prior to commit: https://reviews.llvm.org/D23659?vs=68525&id=68676#toc Repository:

Re: [Lldb-commits] [PATCH] D23545: Minidump parsing

2016-08-19 Thread Pavel Labath via lldb-commits
labath added a comment. Looks good as far as I am concerned. You might want to add a test or two that makes sure we handle invalid data reasonably. E.g., load only the first X kb of the minidump (so that the thread list is not present in the loaded block), and make sure getting a thread list fa

[Lldb-commits] [lldb] r279238 - Fix 32-bit builds after r279232

2016-08-19 Thread Pavel Labath via lldb-commits
Author: labath Date: Fri Aug 19 08:14:13 2016 New Revision: 279238 URL: http://llvm.org/viewvc/llvm-project?rev=279238&view=rev Log: Fix 32-bit builds after r279232 GetByteSize() of a DataBuffer returns a uint64_t (it probably shouldn't), which isn't implicitly convertible to size_t. Modified:

[Lldb-commits] [lldb] r279512 - Fix API usage in TestMultithreaded.test_sb_api_listener_event_process_state

2016-08-23 Thread Pavel Labath via lldb-commits
Author: labath Date: Tue Aug 23 07:10:03 2016 New Revision: 279512 URL: http://llvm.org/viewvc/llvm-project?rev=279512&view=rev Log: Fix API usage in TestMultithreaded.test_sb_api_listener_event_process_state The test was attempting to backtrace a process after every state change event (includin

[Lldb-commits] [lldb] r279513 - Fix a crash in GDBRemoteCommunicationClient::GetSupportedStructuredDataPlugins

2016-08-23 Thread Pavel Labath via lldb-commits
Author: labath Date: Tue Aug 23 07:10:09 2016 New Revision: 279513 URL: http://llvm.org/viewvc/llvm-project?rev=279513&view=rev Log: Fix a crash in GDBRemoteCommunicationClient::GetSupportedStructuredDataPlugins The function was attempting to write the reply to the log even if the reply was empt

[Lldb-commits] [PATCH] D23802: gdb-remote: Make the sequence mutex non-recursive

2016-08-23 Thread Pavel Labath via lldb-commits
labath created this revision. labath added a reviewer: clayborg. labath added a subscriber: lldb-commits. This is a preparatory commit for D22914, where I'd like to replace this mutex by an R/W lock (which is also not recursive). This required a couple of changes: - Read/WriteRegister expect the

Re: [Lldb-commits] [PATCH] D23802: gdb-remote: Make the sequence mutex non-recursive

2016-08-23 Thread Pavel Labath via lldb-commits
labath added a comment. In https://reviews.llvm.org/D23802#523244, @clayborg wrote: > The old mutex was there so that you could send a packet and get a result > without worrying about other threads getting your response. It was recursive > for the case where we needed to send two packets as one

Re: [Lldb-commits] [PATCH] D23802: gdb-remote: Make the sequence mutex non-recursive

2016-08-24 Thread Pavel Labath via lldb-commits
labath updated this revision to Diff 69088. labath added a comment. Sounds good. I like that this enables us to get rid of the NoLock suffix. Maybe eventually we could event replace the runtime assert with some sort of a static lock discipline checking framework, where you annotate functions wit

[Lldb-commits] [PATCH] D23830: Add cmake option to choose whether to use the builtin demangler

2016-08-24 Thread Pavel Labath via lldb-commits
labath created this revision. labath added reviewers: zturner, emaste, krytarowski. labath added subscribers: lldb-commits, clayborg. Herald added a subscriber: emaste. Previously the builting demangler was on for platforms that explicitly set a flag by modifying Mangled.cpp (windows, freebsd). T

<    12   13   14   15   16   17   18   19   20   21   >