Re: [Lldb-commits] [PATCH] D12245: Implement basic DidAttach and DidLaunch for DynamicLoaderWindowsDYLD.

2015-08-21 Thread Stephane Sezer via lldb-commits
sas added a comment. Not a problem at all. Sorry for breaking the tests. I'm setting up a Windows VM now to be able to run these tests. I'll let you know if I'm stuck. Repository: rL LLVM http://reviews.llvm.org/D12245 ___ lldb-commits mailing

Re: [Lldb-commits] [PATCH] D12245: Implement basic DidAttach and DidLaunch for DynamicLoaderWindowsDYLD.

2015-08-21 Thread Zachary Turner via lldb-commits
By the way, I'm actively working on getting the test suite completely running on a buildbot, but I need to get down to a green baseline first. Still a few weeks out, but hopefully this type of thing will be caught automatically in the future. On Fri, Aug 21, 2015 at 5:00 PM Zachary Turner wrote:

Re: [Lldb-commits] [PATCH] D12245: Implement basic DidAttach and DidLaunch for DynamicLoaderWindowsDYLD.

2015-08-21 Thread Zachary Turner via lldb-commits
Hi Stephane, I'm sorry but I had to revert this change. When I tested it locally, I did it without running the full test suite, but when I did run the full test suite it showed about 15-20 new test failures. I should have caught this earlier by running the full test suite, so sorry about that. I

[Lldb-commits] [lldb] r245765 - Revert "Implement basic DidAttach and DidLaunch for DynamicLoaderWindowsDYLD."

2015-08-21 Thread Zachary Turner via lldb-commits
Author: zturner Date: Fri Aug 21 18:57:25 2015 New Revision: 245765 URL: http://llvm.org/viewvc/llvm-project?rev=245765&view=rev Log: Revert "Implement basic DidAttach and DidLaunch for DynamicLoaderWindowsDYLD." This reverts commit 7749a10ddbe22767d0e055753c674fcde7f28d39. This commit introduce

Re: [Lldb-commits] [PATCH] D12252: Reorg code to allow Windows Process Plugins to share some common code.

2015-08-21 Thread Zachary Turner via lldb-commits
zturner accepted this revision. zturner added a comment. This revision is now accepted and ready to land. Looks good. I'm guessing that at some point the RegisterContext and ExceptionRecord stuff will be moved to Common? http://reviews.llvm.org/D12252 ___

[Lldb-commits] [lldb] r245749 - XFAIL the last Windows test that calls a function in the target.

2015-08-21 Thread Zachary Turner via lldb-commits
Author: zturner Date: Fri Aug 21 17:11:31 2015 New Revision: 245749 URL: http://llvm.org/viewvc/llvm-project?rev=245749&view=rev Log: XFAIL the last Windows test that calls a function in the target. Modified: lldb/trunk/test/lang/cpp/static_methods/TestCPPStaticMethods.py Modified: lldb/trun

[Lldb-commits] [lldb] r245751 - XFAIL pthreads test on Windows.

2015-08-21 Thread Zachary Turner via lldb-commits
Author: zturner Date: Fri Aug 21 17:11:50 2015 New Revision: 245751 URL: http://llvm.org/viewvc/llvm-project?rev=245751&view=rev Log: XFAIL pthreads test on Windows. This test needs to be ported to c++ threads. Modified: lldb/trunk/test/functionalities/expr-doesnt-deadlock/TestExprDoesntBloc

[Lldb-commits] [lldb] r245750 - Fix TestPaths on Windows.

2015-08-21 Thread Zachary Turner via lldb-commits
Author: zturner Date: Fri Aug 21 17:11:40 2015 New Revision: 245750 URL: http://llvm.org/viewvc/llvm-project?rev=245750&view=rev Log: Fix TestPaths on Windows. Modified: lldb/trunk/test/functionalities/paths/TestPaths.py Modified: lldb/trunk/test/functionalities/paths/TestPaths.py URL: http

[Lldb-commits] [lldb] r245748 - Skip TestCreateAfterAttach on Windows.

2015-08-21 Thread Zachary Turner via lldb-commits
Author: zturner Date: Fri Aug 21 17:11:21 2015 New Revision: 245748 URL: http://llvm.org/viewvc/llvm-project?rev=245748&view=rev Log: Skip TestCreateAfterAttach on Windows. As with every other platform, this test occasionally hangs on Windows. Modified: lldb/trunk/test/functionalities/threa

[Lldb-commits] [lldb] r245747 - XFAIL Tests that require C++ exceptions on Windows.

2015-08-21 Thread Zachary Turner via lldb-commits
Author: zturner Date: Fri Aug 21 17:11:09 2015 New Revision: 245747 URL: http://llvm.org/viewvc/llvm-project?rev=245747&view=rev Log: XFAIL Tests that require C++ exceptions on Windows. clang-cl does not yet support C++ exceptions, so these tests will not even compile. Re-enabling these tests is

[Lldb-commits] LLVM buildmaster will be restarted tonight

2015-08-21 Thread Galina Kistanova via lldb-commits
Hello everyone, LLVM buildmaster will be restarted after 6 PM Pacific time today. Thanks Galina ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Re: [Lldb-commits] [PATCH] D12245: Implement basic DidAttach and DidLaunch for DynamicLoaderWindowsDYLD.

2015-08-21 Thread Stephane Sezer via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL245725: Implement basic DidAttach and DidLaunch for DynamicLoaderWindowsDYLD. (authored by sas). Changed prior to commit: http://reviews.llvm.org/D12245?vs=32842&id=32853#toc Repository: rL LLVM htt

[Lldb-commits] [lldb] r245725 - Implement basic DidAttach and DidLaunch for DynamicLoaderWindowsDYLD.

2015-08-21 Thread Stephane Sezer via lldb-commits
Author: sas Date: Fri Aug 21 14:28:34 2015 New Revision: 245725 URL: http://llvm.org/viewvc/llvm-project?rev=245725&view=rev Log: Implement basic DidAttach and DidLaunch for DynamicLoaderWindowsDYLD. Summary: This commit implements basic DidAttach and DidLaunch for the windows DynamicLoader plugi

Re: [Lldb-commits] [PATCH] D12245: Implement basic DidAttach and DidLaunch for DynamicLoaderWindowsDYLD.

2015-08-21 Thread Stephane Sezer via lldb-commits
sas added a comment. Thanks for the testing. I'll definitely setup a windows box. http://reviews.llvm.org/D12245 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Re: [Lldb-commits] [PATCH] D12245: Implement basic DidAttach and DidLaunch for DynamicLoaderWindowsDYLD.

2015-08-21 Thread Zachary Turner via lldb-commits
Tested on Windows, I don't see any problems, so lgtm. If you're going to be doing a non-trivial amount of work on ProcessWindows or DynamicLoaderWindows, would it be possible for you to set up a Windows box you can test from? I'm happy to help you get this set up if you need. On Fri, Aug 21, 201

Re: [Lldb-commits] [lldb] r245547 - [LLDB] Use llvm::APInt and llvm::APFloat in Scalar and RegisterValue

2015-08-21 Thread Hans Wennborg via lldb-commits
I'm not happy about this. lldb builds fine on Linux for me. What's the build problem on mips? I also don't see the relation between r245240 (which was also a large patch) and this, but I haven't looked closely and am not familiar with the code. In general it would be nice if merge requests don't

Re: [Lldb-commits] [PATCH] D12245: Implement basic DidAttach and DidLaunch for DynamicLoaderWindowsDYLD.

2015-08-21 Thread Stephane Sezer via lldb-commits
sas added a comment. @zturner, will do before submitting. http://reviews.llvm.org/D12245 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Re: [Lldb-commits] [PATCH] D12245: Implement basic DidAttach and DidLaunch for DynamicLoaderWindowsDYLD.

2015-08-21 Thread Stephane Sezer via lldb-commits
sas updated this revision to Diff 32842. sas added a comment. Style. http://reviews.llvm.org/D12245 Files: source/Plugins/DynamicLoader/Windows-DYLD/DynamicLoaderWindowsDYLD.cpp Index: source/Plugins/DynamicLoader/Windows-DYLD/DynamicLoaderWindowsDYLD.cpp

Re: [Lldb-commits] [PATCH] D12245: Implement basic DidAttach and DidLaunch for DynamicLoaderWindowsDYLD.

2015-08-21 Thread Zachary Turner via lldb-commits
zturner added a comment. Can you verify that this does not break local debugging on Windows? http://reviews.llvm.org/D12245 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Re: [Lldb-commits] [PATCH] D12245: Implement basic DidAttach and DidLaunch for DynamicLoaderWindowsDYLD.

2015-08-21 Thread Greg Clayton via lldb-commits
clayborg accepted this revision. clayborg added a comment. This revision is now accepted and ready to land. Fine for now. http://reviews.llvm.org/D12245 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/

[Lldb-commits] [PATCH] D12245: Implement basic DidAttach and DidLaunch for DynamicLoaderWindowsDYLD.

2015-08-21 Thread Stephane Sezer via lldb-commits
sas created this revision. sas added reviewers: clayborg, zturner. sas added a subscriber: lldb-commits. This commit implements basic DidAttach and DidLaunch for the windows DynamicLoader plugin which allow us to load shared libraries from the inferior. At the moment, I'm unsure how we're going t

Re: [Lldb-commits] [PATCH] D12218: Implement handling of `library:` keys in thread stop replies.

2015-08-21 Thread Stephane Sezer via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL245708: Implement handling of `library:` keys in thread stop replies. (authored by sas). Changed prior to commit: http://reviews.llvm.org/D12218?vs=32766&id=32835#toc Repository: rL LLVM http://revi

[Lldb-commits] [lldb] r245708 - Implement handling of `library:` keys in thread stop replies.

2015-08-21 Thread Stephane Sezer via lldb-commits
Author: sas Date: Fri Aug 21 11:51:56 2015 New Revision: 245708 URL: http://llvm.org/viewvc/llvm-project?rev=245708&view=rev Log: Implement handling of `library:` keys in thread stop replies. Summary: When a windows remote stops because of a DLL load/unload, the debug server sends a stop reply pa

Re: [Lldb-commits] [PATCH] D12238: Add support for DW_FORM_GNU_[addr, str]_index

2015-08-21 Thread Greg Clayton via lldb-commits
clayborg requested changes to this revision. clayborg added a comment. This revision now requires changes to proceed. Looks good, a few changes needed. We might consider changing FormValue::AsCString() to take a "SymbolFileDWARF*" instead of the data extractor for .debug_str and .debug_str_offs

Re: [Lldb-commits] [PATCH] D12239: Fix buffer overflow for fixed_form_sizes

2015-08-21 Thread Greg Clayton via lldb-commits
clayborg requested changes to this revision. clayborg added a comment. This revision now requires changes to proceed. See inlined comments. Comment at: source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.cpp:179 @@ -178,3 +178,3 @@ bool prev_die_had_children = false; -cons

Re: [Lldb-commits] [PATCH] D12233: Add absolute load address support for the DynamicLoader plugins

2015-08-21 Thread Greg Clayton via lldb-commits
clayborg accepted this revision. clayborg added a comment. This revision is now accepted and ready to land. Looks good. http://reviews.llvm.org/D12233 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/li

Re: [Lldb-commits] [lldb] r245547 - [LLDB] Use llvm::APInt and llvm::APFloat in Scalar and RegisterValue

2015-08-21 Thread Greg Clayton via lldb-commits
I agree that this change has caused many problems and is quite large to commit to a release branch with little testing. I do really want to get to a Scalar and RegisterValue that uses llvm::APInt and llvm::APFloat as soon as possible, but seeing as this patch has continually caused crashes it s

Re: [Lldb-commits] [PATCH] D12218: Implement handling of `library:` keys in thread stop replies.

2015-08-21 Thread Greg Clayton via lldb-commits
clayborg accepted this revision. clayborg added a comment. This revision is now accepted and ready to land. Looks good. http://reviews.llvm.org/D12218 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/li

Re: [Lldb-commits] [PATCH] D12237: [NativeProcessLinux] Pass around threads by reference

2015-08-21 Thread Tamas Berghammer via lldb-commits
tberghammer accepted this revision. tberghammer added a comment. This revision is now accepted and ready to land. Looks good (I assume when you dropped const from the argument it was intentional) http://reviews.llvm.org/D12237 ___ lldb-commits mail

Re: [Lldb-commits] [PATCH] D12238: Add support for DW_FORM_GNU_[addr, str]_index

2015-08-21 Thread Pavel Labath via lldb-commits
labath added a comment. Looks reasonable at a first glance, but I'll leave the review to someone else. http://reviews.llvm.org/D12238 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commi

Re: [Lldb-commits] [PATCH] D12239: Fix buffer overflow for fixed_form_sizes

2015-08-21 Thread Pavel Labath via lldb-commits
labath added inline comments. Comment at: source/Plugins/SymbolFile/DWARF/DWARFFormValue.cpp:24 @@ -25,1 +23,3 @@ +static DWARFFormValue::FixedFormSizes +g_form_sizes_addr4 { 0, // 0x00 unused Will these be linker-initialized? As I understand it, we are tryin

[Lldb-commits] [PATCH] D12239: Fix buffer overflow for fixed_form_sizes

2015-08-21 Thread Tamas Berghammer via lldb-commits
tberghammer created this revision. tberghammer added reviewers: labath, clayborg. tberghammer added a subscriber: lldb-commits. Fix buffer overflow for fixed_form_sizes The array is indexed by the value in the DW_FORM filed what can be bigger then the size of the array. This CL add bound checking

Re: [Lldb-commits] [PATCH] D12238: Add support for DW_FORM_GNU_[addr, str]_index

2015-08-21 Thread Tamas Berghammer via lldb-commits
tberghammer added inline comments. Comment at: source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.h:56 @@ -55,2 +55,3 @@ dw_addr_t GetBaseAddress() const { return m_base_addr; } +dw_addr_t GetAddrBase() const { return 0; } // TODO: Read out DW_AT_addr_base from the par

[Lldb-commits] [PATCH] D12238: Add support for DW_FORM_GNU_[addr, str]_index

2015-08-21 Thread Tamas Berghammer via lldb-commits
tberghammer created this revision. tberghammer added reviewers: clayborg, labath. tberghammer added a subscriber: lldb-commits. Add support for DW_FORM_GNU_[addr,str]_index These are 2 new value currently in experimental status used when split debug info is enabled. Note: This CL is part of a l

[Lldb-commits] [PATCH] D12237: [NativeProcessLinux] Pass around threads by reference

2015-08-21 Thread Pavel Labath via lldb-commits
labath created this revision. labath added a reviewer: tberghammer. labath added a subscriber: lldb-commits. Most NPL private functions took (shared) pointers to threads as arguments. This meant that the callee could not be sure if the pointer was valid and so most functions were peppered with n

[Lldb-commits] [lldb] r245696 - Fix BuildAddressRangeTable function when no debug arranges present

2015-08-21 Thread Tamas Berghammer via lldb-commits
Author: tberghammer Date: Fri Aug 21 07:14:50 2015 New Revision: 245696 URL: http://llvm.org/viewvc/llvm-project?rev=245696&view=rev Log: Fix BuildAddressRangeTable function when no debug arranges present Modified: lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFCompileUnit.cpp Modified: lld

[Lldb-commits] [lldb] r245695 - Fix type of dw_form_t in dwarf.h

2015-08-21 Thread Tamas Berghammer via lldb-commits
Author: tberghammer Date: Fri Aug 21 07:14:47 2015 New Revision: 245695 URL: http://llvm.org/viewvc/llvm-project?rev=245695&view=rev Log: Fix type of dw_form_t in dwarf.h Modified: lldb/trunk/include/lldb/Core/dwarf.h Modified: lldb/trunk/include/lldb/Core/dwarf.h URL: http://llvm.org/viewv

Re: [Lldb-commits] [PATCH] D11947: Improve instruction emulation based stack unwinding

2015-08-21 Thread Tamas Berghammer via lldb-commits
tberghammer added a comment. Fixed by http://reviews.llvm.org/rL245546 Repository: rL LLVM http://reviews.llvm.org/D11947 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [PATCH] D12233: Add absolute load address support for the DynamicLoader plugins

2015-08-21 Thread Tamas Berghammer via lldb-commits
tberghammer created this revision. tberghammer added reviewers: sas, clayborg. tberghammer added a subscriber: lldb-commits. Add absolute load address support for the DynamicLoader plugins The POSIX linker generally reports the load bias for the loaded libraries but in some case it is useful to h

[Lldb-commits] [lldb] r245691 - Increase timeout in TestExpressionInSyscall

2015-08-21 Thread Pavel Labath via lldb-commits
Author: labath Date: Fri Aug 21 05:52:02 2015 New Revision: 245691 URL: http://llvm.org/viewvc/llvm-project?rev=245691&view=rev Log: Increase timeout in TestExpressionInSyscall test times out on the windows->android buildbot (probably due to android emulator being slow) Modified: lldb/trun

[Lldb-commits] [lldb] r245690 - Fix assertion failure caused by r245546

2015-08-21 Thread Tamas Berghammer via lldb-commits
Author: tberghammer Date: Fri Aug 21 05:49:09 2015 New Revision: 245690 URL: http://llvm.org/viewvc/llvm-project?rev=245690&view=rev Log: Fix assertion failure caused by r245546 Change the way EmulateInstruction::eContextPopRegisterOffStack handled in UnwindAssemblyInstEmulation::WriteRegister to

[Lldb-commits] [lldb] r245687 - Add repro test case for bug #24530

2015-08-21 Thread Pavel Labath via lldb-commits
Author: labath Date: Fri Aug 21 05:38:31 2015 New Revision: 245687 URL: http://llvm.org/viewvc/llvm-project?rev=245687&view=rev Log: Add repro test case for bug #24530 Modified: lldb/trunk/test/functionalities/signal/raise/TestRaise.py Modified: lldb/trunk/test/functionalities/signal/raise/T

Re: [Lldb-commits] [PATCH] D12218: Implement handling of `library:` keys in thread stop replies.

2015-08-21 Thread Tamas Berghammer via lldb-commits
tberghammer resigned from this revision. tberghammer removed a reviewer: tberghammer. tberghammer added a comment. I leave this review to the others as I have no idea about how library loading works on Windows. (On Linux/Android we use a breakpoint on a special symbol exposed by the linker) ht

Re: [Lldb-commits] [PATCH] D12187: [NativeProcessLinux] Reduce the number of casts

2015-08-21 Thread Tamas Berghammer via lldb-commits
tberghammer added a comment. Thanks for the info about the plans. If you plan to move to this direction then it make sense to leave these functions with reference arguments. Side note: Why we use a shared_ptr for NTL? I would expect a unique_ptr would be sufficient in NPL (or possibly a store b

Re: [Lldb-commits] [PATCH] D12187: [NativeProcessLinux] Reduce the number of casts

2015-08-21 Thread Pavel Labath via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL245681: [NativeProcessLinux] Reduce the number of casts (authored by labath). Changed prior to commit: http://reviews.llvm.org/D12187?vs=32673&id=32805#toc Repository: rL LLVM http://reviews.llvm.or

[Lldb-commits] [lldb] r245681 - [NativeProcessLinux] Reduce the number of casts

2015-08-21 Thread Pavel Labath via lldb-commits
Author: labath Date: Fri Aug 21 04:13:53 2015 New Revision: 245681 URL: http://llvm.org/viewvc/llvm-project?rev=245681&view=rev Log: [NativeProcessLinux] Reduce the number of casts Summary: NPL used to be peppered with casts of the NativeThreadProtocol objects into NativeThreadLinux. I move thes

Re: [Lldb-commits] [PATCH] D12187: [NativeProcessLinux] Reduce the number of casts

2015-08-21 Thread Pavel Labath via lldb-commits
labath marked an inline comment as done. labath added a comment. Passing around pointers (shared or otherwise) encourages people to litter the code with null pointer checks. For the next cleanup, I would like to move these checks to a single place and then convert more of these functions to take