Re: [Lldb-commits] [PATCH] D55142: Minidump debugging using the native PDB reader

2018-12-11 Thread Adrian McCarthy via lldb-commits
It's really frustrating how the email discussion doesn't always make it to Phabricator. The Windowsy thing to do is what Zach said: Check the directory that contains the .dmp for the .pdb. It's the first place the VS debugger looks when opening a minidump. It's less sensitive to the user's envi

Re: [Lldb-commits] [PATCH] D55142: Minidump debugging using the native PDB reader

2018-12-11 Thread Adrian McCarthy via lldb-commits
I believe the PDB is searched for in the EXE directory before the symbol search path is used. At least, that's what it used to do, back when I used VS debugger for post-mortem debugging. It was the only sane way to ensure it would find the right version of the PDB if you didn't have a local symbo

Re: [Lldb-commits] [PATCH] D55142: Minidump debugging using the native PDB reader

2018-12-11 Thread Adrian McCarthy via lldb-commits
> But here, we're talking about a situation where there is no EXE, only a minidump. If there is a minidump and no EXE then neither WinDbg nor VS will search the minidump folder for the PDB. For the record, the experiments do not bear this out. VS will indeed search in the minidump folder for th

Re: [Lldb-commits] Support of MSVC function-level linking

2018-05-31 Thread Adrian McCarthy via lldb-commits
Can you post your patch to https://reviews.llvm.org/ ? On Thu, May 31, 2018 at 10:36 AM, Leonard Mosescu via lldb-commits < lldb-commits@lists.llvm.org> wrote: > If anyone's working on this I'd suggest adding a test case for the "split > code" case as well (where even a single function is split i

Re: [Lldb-commits] [lldb] r320242 - Change uses of strncpy in debugserver to strlcpy

2017-12-11 Thread Adrian McCarthy via lldb-commits
I have some concerns about this change. 1. strlcpy is not a C++ standard function, so it's not available for non-POSIX targets. As far as I can tell, this is the first use of strlcpy in LLVM. 2. In some of the changed calls, the buffer size argument still has a -1, which is redundant with what

[Lldb-commits] [lldb] r324925 - Remove dead code for handling DWARF pubnames

2018-02-12 Thread Adrian McCarthy via lldb-commits
Author: amccarth Date: Mon Feb 12 11:19:04 2018 New Revision: 324925 URL: http://llvm.org/viewvc/llvm-project?rev=324925&view=rev Log: Remove dead code for handling DWARF pubnames Summary: LLDB doesn't use this code, the code has no tests, and the code does suspicious things like hashing pointers

[Lldb-commits] [lldb] r325188 - Supply missing break in case statement.

2018-02-14 Thread Adrian McCarthy via lldb-commits
Author: amccarth Date: Wed Feb 14 15:16:36 2018 New Revision: 325188 URL: http://llvm.org/viewvc/llvm-project?rev=325188&view=rev Log: Supply missing break in case statement. Summary: All the tests pass without hitting the situation mentioned in the FIXME, so, per Aaron Smith's suggestion, this c

[Lldb-commits] [lldb] r325704 - Fix TestBreakpointInGlobalConstructor for Windows

2018-02-21 Thread Adrian McCarthy via lldb-commits
Author: amccarth Date: Wed Feb 21 10:08:23 2018 New Revision: 325704 URL: http://llvm.org/viewvc/llvm-project?rev=325704&view=rev Log: Fix TestBreakpointInGlobalConstructor for Windows Summary: This test was failing on Windows because it expected the breakpoint in the dynamic library to be resolv

[Lldb-commits] [lldb] r325835 - Fix TestSBData.py on Windows

2018-02-22 Thread Adrian McCarthy via lldb-commits
Author: amccarth Date: Thu Feb 22 14:47:14 2018 New Revision: 325835 URL: http://llvm.org/viewvc/llvm-project?rev=325835&view=rev Log: Fix TestSBData.py on Windows Ensure that the test data is an array of bytes rather than a string that gets encoded differently between Python 2 and Python 3. Dif

[Lldb-commits] [lldb] r325836 - Fix TestMoveNearest on Windows

2018-02-22 Thread Adrian McCarthy via lldb-commits
Author: amccarth Date: Thu Feb 22 14:47:47 2018 New Revision: 325836 URL: http://llvm.org/viewvc/llvm-project?rev=325836&view=rev Log: Fix TestMoveNearest on Windows The header file for the DLL tried to declare inline functions and a local function as dllexport which broke the compile and link.

[Lldb-commits] [lldb] r326095 - Fix tabs/spaces indentation problem in TestUnicodeSymbols.py

2018-02-26 Thread Adrian McCarthy via lldb-commits
Author: amccarth Date: Mon Feb 26 07:53:31 2018 New Revision: 326095 URL: http://llvm.org/viewvc/llvm-project?rev=326095&view=rev Log: Fix tabs/spaces indentation problem in TestUnicodeSymbols.py Differential Revision: https://reviews.llvm.org/D43705 Modified: lldb/trunk/packages/Python/lld

[Lldb-commits] [lldb] r326130 - Partial fix for TestConflictingSymbol.py on Windows

2018-02-26 Thread Adrian McCarthy via lldb-commits
Author: amccarth Date: Mon Feb 26 13:22:39 2018 New Revision: 326130 URL: http://llvm.org/viewvc/llvm-project?rev=326130&view=rev Log: Partial fix for TestConflictingSymbol.py on Windows Without this fix, the test ERRORs because the link of the inferior fails. This patch adds the LLDB_TEST_API ma

[Lldb-commits] [lldb] r330354 - Fix narrowing warning by appending `f` to literal constant.

2018-04-19 Thread Adrian McCarthy via lldb-commits
Author: amccarth Date: Thu Apr 19 11:31:57 2018 New Revision: 330354 URL: http://llvm.org/viewvc/llvm-project?rev=330354&view=rev Log: Fix narrowing warning by appending `f` to literal constant. Modified: lldb/trunk/unittests/Core/ScalarTest.cpp Modified: lldb/trunk/unittests/Core/ScalarTest

Re: [Lldb-commits] [lldb] r300610 - Fix Windows bot failure

2017-04-18 Thread Adrian McCarthy via lldb-commits
Actually, Windows does have `struct timespec`. It's defined in `` and ``. https://msdn.microsoft.com/en-us/library/mt633792.aspx I suspect somebody had suppressed it for some reason. On Tue, Apr 18, 2017 at 2:47 PM, Chris Bieneman via lldb-commits < lldb-commits@lists.llvm.org> wrote: > Author

[Lldb-commits] [lldb] r312735 - Fix for bug 34510 - Minidump target does not resolve new symbols correctly

2017-09-07 Thread Adrian McCarthy via lldb-commits
Author: amccarth Date: Thu Sep 7 11:29:48 2017 New Revision: 312735 URL: http://llvm.org/viewvc/llvm-project?rev=312735&view=rev Log: Fix for bug 34510 - Minidump target does not resolve new symbols correctly Even though the content of the minidump does not change in a debugging session, frames

[Lldb-commits] [lldb] r313210 - Fix for bug 34532 - A few rough corners related to post-mortem debugging (core/minidump)

2017-09-13 Thread Adrian McCarthy via lldb-commits
Author: amccarth Date: Wed Sep 13 15:57:11 2017 New Revision: 313210 URL: http://llvm.org/viewvc/llvm-project?rev=313210&view=rev Log: Fix for bug 34532 - A few rough corners related to post-mortem debugging (core/minidump) The main change is to avoid setting the process state as running when de

[Lldb-commits] [lldb] r313540 - Revert "Fix for bug 34532 - A few rough corners related to post-mortem debugging (core/minidump)"

2017-09-18 Thread Adrian McCarthy via lldb-commits
Author: amccarth Date: Mon Sep 18 08:59:44 2017 New Revision: 313540 URL: http://llvm.org/viewvc/llvm-project?rev=313540&view=rev Log: Revert "Fix for bug 34532 - A few rough corners related to post-mortem debugging (core/minidump)" Broke Windows and FreeBSD (at least). This reverts commit 628c

[Lldb-commits] [lldb] r313655 - Re-land r313210 - Fix for bug 34532 - A few rough corners related to post-mortem debugging (core/minidump)

2017-09-19 Thread Adrian McCarthy via lldb-commits
Author: amccarth Date: Tue Sep 19 11:07:33 2017 New Revision: 313655 URL: http://llvm.org/viewvc/llvm-project?rev=313655&view=rev Log: Re-land r313210 - Fix for bug 34532 - A few rough corners related to post-mortem debugging (core/minidump) The main change is to avoid setting the process state

[Lldb-commits] [lldb] r313785 - Fix the SIGINT handlers

2017-09-20 Thread Adrian McCarthy via lldb-commits
Author: amccarth Date: Wed Sep 20 11:09:39 2017 New Revision: 313785 URL: http://llvm.org/viewvc/llvm-project?rev=313785&view=rev Log: Fix the SIGINT handlers 1. Fix a data race (g_interrupt_sent flag usage was not thread safe, signals can be handled on arbitrary threads) 2. exit() is not signal

[Lldb-commits] [lldb] r313904 - [LLDB] Implement interactive command interruption

2017-09-21 Thread Adrian McCarthy via lldb-commits
Author: amccarth Date: Thu Sep 21 12:36:52 2017 New Revision: 313904 URL: http://llvm.org/viewvc/llvm-project?rev=313904&view=rev Log: [LLDB] Implement interactive command interruption The core of this change is the new CommandInterpreter::m_command_state, which models the state transitions for i

[Lldb-commits] [lldb] r355121 - Improve process launch comments for Windows

2019-02-28 Thread Adrian McCarthy via lldb-commits
Author: amccarth Date: Thu Feb 28 11:14:02 2019 New Revision: 355121 URL: http://llvm.org/viewvc/llvm-project?rev=355121&view=rev Log: Improve process launch comments for Windows The existing comment about over-allocating the command line was incorrect. The contents of the command line may be ch

[Lldb-commits] [lldb] r355943 - Correcting some comments in PdbIndex.cpp [NFC]

2019-03-12 Thread Adrian McCarthy via lldb-commits
Author: amccarth Date: Tue Mar 12 10:40:51 2019 New Revision: 355943 URL: http://llvm.org/viewvc/llvm-project?rev=355943&view=rev Log: Correcting some comments in PdbIndex.cpp [NFC] ICF can cause multiple symbols to start at the same virtual address. I plan to handle this shortly, but I wanted to

[Lldb-commits] [lldb] r357626 - Fix and simplify PrepareCommandsForSourcing

2019-04-03 Thread Adrian McCarthy via lldb-commits
Author: amccarth Date: Wed Apr 3 12:49:14 2019 New Revision: 357626 URL: http://llvm.org/viewvc/llvm-project?rev=357626&view=rev Log: Fix and simplify PrepareCommandsForSourcing Spotted some problems in the Driver's PrepareCommandsForSourcing while helping a colleague track another problem. 1.

[Lldb-commits] [PATCH] D26081: Improve ".." handling in FileSpec normalization

2016-10-28 Thread Adrian McCarthy via lldb-commits
amccarth added inline comments. Comment at: source/Host/common/FileSpec.cpp:550 + (m_filename.GetStringRef() != ".." && m_filename.GetStringRef() != ".")) +return *this; Do we have to worry about an unnecessary single dot in the directory, like `/foo/

[Lldb-commits] [PATCH] D25832: Minidump plugin: Adding x86_32 register context converter

2016-10-28 Thread Adrian McCarthy via lldb-commits
amccarth accepted this revision. amccarth added a reviewer: amccarth. amccarth added inline comments. Comment at: unittests/Process/minidump/MinidumpParserTest.cpp:340 std::map reg_values; + reg_values[lldb_rax_x86_64] = 0x; It seems a shame

[Lldb-commits] [PATCH] D25905: Minidump plugin: Adding ProcessMinidump, ThreadMinidump and register the plugin in SystemInitializerFull

2016-10-28 Thread Adrian McCarthy via lldb-commits
amccarth accepted this revision. amccarth added a reviewer: amccarth. amccarth added a comment. This revision is now accepted and ready to land. I like that this keeps the WoW64 detection and support. That's a very Windows-specific thing, and I was concerned that doing generic minidump parsing

[Lldb-commits] [PATCH] D26393: Disable windows-only minidump plugin

2016-11-08 Thread Adrian McCarthy via lldb-commits
amccarth added a comment. I started testing the new plugin on Windows yesterday, and it doesn't work (all the tests fail). I'm planning to debug today, and, once I get it working, I'd be happy to switch it over. https://reviews.llvm.org/D26393 __

[Lldb-commits] [PATCH] D26393: Disable windows-only minidump plugin

2016-11-08 Thread Adrian McCarthy via lldb-commits
amccarth added a comment. In https://reviews.llvm.org/D26393#589421, @labath wrote: > In https://reviews.llvm.org/D26393#589363, @amccarth wrote: > > > I started testing the new plugin on Windows yesterday, and it doesn't work > > (all the tests fail). I'm planning to debug today, and, once I g

[Lldb-commits] [PATCH] D26393: Disable windows-only minidump plugin

2016-11-08 Thread Adrian McCarthy via lldb-commits
amccarth accepted this revision. amccarth added a comment. This revision is now accepted and ready to land. Problem was at my end. This patch works fine for me now. I'm planning to do some more minidump work, so I'd be happy to take over with eliminating the old Windows-specific implementation.

[Lldb-commits] [lldb] r286476 - Un-XFail test on Windows. Has been in "unexpected success" mode for a while.

2016-11-10 Thread Adrian McCarthy via lldb-commits
Author: amccarth Date: Thu Nov 10 11:21:22 2016 New Revision: 286476 URL: http://llvm.org/viewvc/llvm-project?rev=286476&view=rev Log: Un-XFail test on Windows. Has been in "unexpected success" mode for a while. Modified: lldb/trunk/packages/Python/lldbsuite/test/lang/c/enum_types/TestEnumTy

[Lldb-commits] [PATCH] D26643: Fix TestMiniDumpNew.py test for Python 2/3 issue

2016-11-14 Thread Adrian McCarthy via lldb-commits
amccarth created this revision. amccarth added a reviewer: zturner. amccarth added a subscriber: lldb-commits. On Windows, where we use Python 3 for testing, we have to be more explicit about converting between binary and string representations. I believe this should still work for Python 2, bu

[Lldb-commits] [lldb] r286909 - Fix TestMiniDumpNew.py test for Python 2/3 issue

2016-11-14 Thread Adrian McCarthy via lldb-commits
Author: amccarth Date: Mon Nov 14 17:53:45 2016 New Revision: 286909 URL: http://llvm.org/viewvc/llvm-project?rev=286909&view=rev Log: Fix TestMiniDumpNew.py test for Python 2/3 issue On Windows, where we use Python 3 for testing, we have to be more explicit about converting between binary and s

[Lldb-commits] [PATCH] D26643: Fix TestMiniDumpNew.py test for Python 2/3 issue

2016-11-14 Thread Adrian McCarthy via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL286909: Fix TestMiniDumpNew.py test for Python 2/3 issue (authored by amccarth). Changed prior to commit: https://reviews.llvm.org/D26643?vs=77900&id=77907#toc Repository: rL LLVM https://reviews.ll

[Lldb-commits] [PATCH] D26697: Remove Windows-specific minidump plugin

2016-11-15 Thread Adrian McCarthy via lldb-commits
amccarth created this revision. amccarth added reviewers: labath, zturner. amccarth added a subscriber: lldb-commits. Herald added subscribers: modocache, mgorny. With the cross-platform minidump plugin working, the Windows-specific one is no longer needed. This eliminates the unnecessary code.

[Lldb-commits] [PATCH] D26697: Remove Windows-specific minidump plugin

2016-11-16 Thread Adrian McCarthy via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL287113: Remove Windows-specific minidump plugin (authored by amccarth). Changed prior to commit: https://reviews.llvm.org/D26697?vs=78065&id=78194#toc Repository: rL LLVM https://reviews.llvm.org/D2

[Lldb-commits] [lldb] r287113 - Remove Windows-specific minidump plugin

2016-11-16 Thread Adrian McCarthy via lldb-commits
Author: amccarth Date: Wed Nov 16 10:04:14 2016 New Revision: 287113 URL: http://llvm.org/viewvc/llvm-project?rev=287113&view=rev Log: Remove Windows-specific minidump plugin With the cross-platform minidump plugin working, the Windows-specific one is no longer needed. This eliminates the unnece

[Lldb-commits] [lldb] r293336 - NFC: Improve comments in SymbolFilePDB.cpp

2017-01-27 Thread Adrian McCarthy via lldb-commits
Author: amccarth Date: Fri Jan 27 15:42:28 2017 New Revision: 293336 URL: http://llvm.org/viewvc/llvm-project?rev=293336&view=rev Log: NFC: Improve comments in SymbolFilePDB.cpp Mostly this just fixes bad wrapping caused by the reformat, with tiny changes sprinkled here and there. Modified:

[Lldb-commits] [lldb] r248909 - Removed an unused member variable. Affects Windows only.

2015-09-30 Thread Adrian McCarthy via lldb-commits
Author: amccarth Date: Wed Sep 30 09:57:21 2015 New Revision: 248909 URL: http://llvm.org/viewvc/llvm-project?rev=248909&view=rev Log: Removed an unused member variable. Affects Windows only. Modified: lldb/trunk/source/Plugins/Process/Windows/Live/TargetThreadWindows.h Modified: lldb/trunk

[Lldb-commits] [PATCH] D13312: Fix Windows build due to missing path.

2015-09-30 Thread Adrian McCarthy via lldb-commits
amccarth created this revision. amccarth added reviewers: zturner, spyffe. amccarth added a subscriber: lldb-commits. This fixes the Windows build break introduced by r248934. I'm not sure why it didn't break other platforms. http://reviews.llvm.org/D13312 Files: include/lldb/Symbol/ClangAST

Re: [Lldb-commits] [PATCH] D13312: Fix Windows build due to missing path.

2015-09-30 Thread Adrian McCarthy via lldb-commits
amccarth abandoned this revision. amccarth added a comment. Same fix was already committed to fix the Linux build. http://reviews.llvm.org/D13312 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinf

[Lldb-commits] [PATCH] D13555: Cap test threads on Windows to avoid open file limit

2015-10-08 Thread Adrian McCarthy via lldb-commits
amccarth created this revision. amccarth added a reviewer: tfiala. amccarth added a subscriber: lldb-commits. Python uses stdio from the C runtime for file descriptors and pipes. On Windows, by default, the CRT has a limit of 512 open file descriptors. https://msdn.microsoft.com/en-us/library/

Re: [Lldb-commits] [PATCH] D13555: Cap test threads on Windows to avoid open file limit

2015-10-08 Thread Adrian McCarthy via lldb-commits
amccarth added a comment. Hold off. I just got a failure even at only 32 subprocesses. http://reviews.llvm.org/D13555 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Re: [Lldb-commits] [PATCH] D13574: [LLDB] Fix Clang-tidy misc-use-override warnings in some files in include/lldb/Core; other minor fixes.

2015-10-09 Thread Adrian McCarthy via lldb-commits
amccarth added a subscriber: amccarth. amccarth added a comment. There was an lldb-dev thread from February 9, where it seemed to be agreed that lldb code should be more like llvm code, in particular with the spaces between the function names and the opening parens. I've been omitting the spaces

Re: [Lldb-commits] [PATCH] D13574: [LLDB] Fix Clang-tidy misc-use-override warnings in some files in include/lldb/Core; other minor fixes.

2015-10-09 Thread Adrian McCarthy via lldb-commits
There was an lldb-dev thread from February 9, where it seemed to be agreed that lldb code should be more like llvm code, in particular with the spaces between the function names and the opening parens. I've been omitting the spaces in new code since then. On Fri, Oct 9, 2015 at 10:14 AM, Greg Cla

Re: [Lldb-commits] [PATCH] D13555: Cap test threads on Windows to avoid open file limit

2015-10-09 Thread Adrian McCarthy via lldb-commits
amccarth updated this revision to Diff 36993. amccarth added a comment. Using the multiprocessing-pool mode seems more reliable than capping num_threads. I'm doing it only when the number of threads is high because of the loss of Ctrl+C support. http://reviews.llvm.org/D13555 Files: test/d

[Lldb-commits] [lldb] r250044 - Switch threading mode for tests on Windows when there are lots of cores.

2015-10-12 Thread Adrian McCarthy via lldb-commits
Author: amccarth Date: Mon Oct 12 09:46:57 2015 New Revision: 250044 URL: http://llvm.org/viewvc/llvm-project?rev=250044&view=rev Log: Switch threading mode for tests on Windows when there are lots of cores. This prevents a "too many files" error. Differential Revision: http://reviews.llvm.org/D1

Re: [Lldb-commits] [PATCH] D13555: Cap test threads on Windows to avoid open file limit

2015-10-12 Thread Adrian McCarthy via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL250044: Switch threading mode for tests on Windows when there are lots of cores. (authored by amccarth). Changed prior to commit: http://reviews.llvm.org/D13555?vs=36993&id=37111#toc Repository: rL L

[Lldb-commits] [PATCH] D13679: Fix TestTargetAPI.py test for users who use Swig 3.0.5 or greater.

2015-10-12 Thread Adrian McCarthy via lldb-commits
amccarth created this revision. amccarth added a reviewer: zturner. amccarth added a subscriber: lldb-commits. How Swig handles varargs functions changed between 3.0.2 and 3.0.5, which causes one of our tests to fail. This fix adds a Swig directive to the SBError::SetErrorSTringWithFormat metho

Re: [Lldb-commits] [PATCH] D13679: Fix TestTargetAPI.py test for users who use Swig 3.0.5 or greater.

2015-10-12 Thread Adrian McCarthy via lldb-commits
With Swig 3.0.2, non-string arguments work. I'm not sure why. Even the Swig 1.x documentation says that what we're doing shouldn't work. On Mon, Oct 12, 2015 at 3:49 PM, Zachary Turner wrote: > zturner added a comment. > > Prior to this patch, what was the behavior of using > SetErrorStringWit

Re: [Lldb-commits] [PATCH] D13679: Fix TestTargetAPI.py test for users who use Swig 3.0.5 or greater.

2015-10-12 Thread Adrian McCarthy via lldb-commits
amccarth added a subscriber: amccarth. amccarth added a comment. With Swig 3.0.2, non-string arguments work. I'm not sure why. Even the Swig 1.x documentation says that what we're doing shouldn't work. http://reviews.llvm.org/D13679 ___ lldb-commi

Re: [Lldb-commits] [PATCH] D13679: Fix TestTargetAPI.py test for users who use Swig 3.0.5 or greater.

2015-10-12 Thread Adrian McCarthy via lldb-commits
amccarth added a comment. Adding Greg Clayton for advice on how to proceed. Swig documentation talked about the peril of varargs methods: http://www.swig.org/Doc3.0/Varargs.html#Varargs The fact that it appears to work with 3.0.2 seems to be a bug in 3.0.2. My proposal is in this patch. An a

[Lldb-commits] [lldb] r250188 - Fix TestTargetAPI.py test for users who use Swig 3.0.5 or greater.

2015-10-13 Thread Adrian McCarthy via lldb-commits
Author: amccarth Date: Tue Oct 13 12:54:15 2015 New Revision: 250188 URL: http://llvm.org/viewvc/llvm-project?rev=250188&view=rev Log: Fix TestTargetAPI.py test for users who use Swig 3.0.5 or greater. DifferentialRevision: http://reviews.llvm.org/D13679 Modified: lldb/trunk/scripts/interfac

[Lldb-commits] [lldb] r250189 - Xfail a watchpoint test on Windows, until Windows implements watchpoints.

2015-10-13 Thread Adrian McCarthy via lldb-commits
Author: amccarth Date: Tue Oct 13 12:55:58 2015 New Revision: 250189 URL: http://llvm.org/viewvc/llvm-project?rev=250189&view=rev Log: Xfail a watchpoint test on Windows, until Windows implements watchpoints. Modified: lldb/trunk/test/functionalities/watchpoint/watchpoint_on_vectors/TestValu

[Lldb-commits] [PATCH] D13788: Factor the execution of a test method into its own function to ensure proper cleanup

2015-10-15 Thread Adrian McCarthy via lldb-commits
amccarth created this revision. amccarth added a reviewer: tfiala. amccarth added a subscriber: lldb-commits. This solves problems in tearDown of individual test cases, which were especially noticeable on Windows. When a test throws an exception, the exception retains references to the function

[Lldb-commits] [lldb] r250467 - Factor the execution of the test method into a separate function to ensure that any exceptions that are thrown go out of scope and no longer hold references to SB objec

2015-10-15 Thread Adrian McCarthy via lldb-commits
Author: amccarth Date: Thu Oct 15 17:39:55 2015 New Revision: 250467 URL: http://llvm.org/viewvc/llvm-project?rev=250467&view=rev Log: Factor the execution of the test method into a separate function to ensure that any exceptions that are thrown go out of scope and no longer hold references to S

Re: [Lldb-commits] [PATCH] D13788: Factor the execution of a test method into its own function to ensure proper cleanup

2015-10-15 Thread Adrian McCarthy via lldb-commits
amccarth added a comment. Nice catch on the comment. Repository: rL LLVM http://reviews.llvm.org/D13788 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Re: [Lldb-commits] [PATCH] D13788: Factor the execution of a test method into its own function to ensure proper cleanup

2015-10-15 Thread Adrian McCarthy via lldb-commits
This revision was automatically updated to reflect the committed changes. amccarth marked an inline comment as done. Closed by commit rL250467: Factor the execution of the test method into a separate function to ensure… (authored by amccarth). Changed prior to commit: http://reviews.llvm.org/D1

[Lldb-commits] [lldb] r250576 - Skip hanging watchpoint test on Windows (rather than just xfailing).

2015-10-16 Thread Adrian McCarthy via lldb-commits
Author: amccarth Date: Fri Oct 16 18:19:22 2015 New Revision: 250576 URL: http://llvm.org/viewvc/llvm-project?rev=250576&view=rev Log: Skip hanging watchpoint test on Windows (rather than just xfailing). Modified: lldb/trunk/test/python_api/watchpoint/condition/TestWatchpointConditionAPI.py

[Lldb-commits] [PATCH] D13923: Skip TestMultithread.py on Windows because it times out (and they'd fail anyway)

2015-10-20 Thread Adrian McCarthy via lldb-commits
amccarth created this revision. amccarth added a reviewer: zturner. amccarth added a subscriber: lldb-commits. I'm not sure why this was timing out when running on my machine, since it took only 45 second for the tests to fail and the timeout seem to be set to 240 seconds. Simply skipping these

[Lldb-commits] [lldb] r250899 - Skip TestMultithreaded on Windows.

2015-10-21 Thread Adrian McCarthy via lldb-commits
Author: amccarth Date: Wed Oct 21 09:42:10 2015 New Revision: 250899 URL: http://llvm.org/viewvc/llvm-project?rev=250899&view=rev Log: Skip TestMultithreaded on Windows. Differential Revision: http://reviews.llvm.org/D13923 Modified: lldb/trunk/test/api/multithreaded/TestMultithreaded.py Mo

Re: [Lldb-commits] [PATCH] D13923: Skip TestMultithread.py on Windows because it times out (and they'd fail anyway)

2015-10-21 Thread Adrian McCarthy via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL250899: Skip TestMultithreaded on Windows. (authored by amccarth). Changed prior to commit: http://reviews.llvm.org/D13923?vs=37953&id=38012#toc Repository: rL LLVM http://reviews.llvm.org/D13923 F

[Lldb-commits] [lldb] r251354 - Revert "Clang module compilation options need to be per-platform."

2015-10-26 Thread Adrian McCarthy via lldb-commits
Author: amccarth Date: Mon Oct 26 16:38:41 2015 New Revision: 251354 URL: http://llvm.org/viewvc/llvm-project?rev=251354&view=rev Log: Revert "Clang module compilation options need to be per-platform." This reverts commit r251340. Breaks the Windows build because Windows doesn't have getuid. Th

Re: [Lldb-commits] [lldb] r251340 - Clang module compilation options need to be per-platform.

2015-10-26 Thread Adrian McCarthy via lldb-commits
FYI: This broke the Windows build (which doesn't have getuid), and the fix wasn't immediately obvious, so I reverted the change. Adrian. On Mon, Oct 26, 2015 at 1:33 PM, Sean Callanan via lldb-commits < lldb-commits@lists.llvm.org> wrote: > Author: spyffe > Date: Mon Oct 26 15:33:24 2015 > New

Re: [Lldb-commits] [PATCH] D14136: Refactor Windows process plugin to enable sharing of code between live and post-mortem debugging

2015-10-28 Thread Adrian McCarthy via lldb-commits
amccarth added inline comments. Comment at: source/Plugins/Process/Windows/Common/ProcessWindowsForward.h:20 @@ +19,1 @@ +#endif \ No newline at end of file zturner wrote: > Put a newline here Actually, this file is obsolete, so I'm deleting it instead. It was i

[Lldb-commits] [lldb] r251549 - Add check for __main__ in dotest.py to ensure problems with multiprocessing on some Windows machines.

2015-10-28 Thread Adrian McCarthy via lldb-commits
Author: amccarth Date: Wed Oct 28 14:59:18 2015 New Revision: 251549 URL: http://llvm.org/viewvc/llvm-project?rev=251549&view=rev Log: Add check for __main__ in dotest.py to ensure problems with multiprocessing on some Windows machines. Modified: lldb/trunk/test/dotest.py Modified: lldb/tru

[Lldb-commits] [PATCH] D14163: Address another race condition running tests on Windows

2015-10-28 Thread Adrian McCarthy via lldb-commits
amccarth created this revision. amccarth added a reviewer: zturner. amccarth added a subscriber: lldb-commits. Another case where sleep-and-retry avoids file access errors on Windows. http://reviews.llvm.org/D14163 Files: packages/Python/lldbsuite/test/lldbtest.py Index: packages/Python/lldbs

Re: [Lldb-commits] [PATCH] D14163: Address another race condition running tests on Windows

2015-10-28 Thread Adrian McCarthy via lldb-commits
amccarth added inline comments. Comment at: packages/Python/lldbsuite/test/lldbtest.py:1823-1830 @@ -1822,3 +1822,10 @@ -os.rename(src, dst) +try: +os.rename(src, dst) +except: +

[Lldb-commits] [lldb] r252100 - Fix x64 build on Windows, which was broken by my refactor from last week.

2015-11-04 Thread Adrian McCarthy via lldb-commits
Author: amccarth Date: Wed Nov 4 17:47:55 2015 New Revision: 252100 URL: http://llvm.org/viewvc/llvm-project?rev=252100&view=rev Log: Fix x64 build on Windows, which was broken by my refactor from last week. No build bots build x64 on Windows yet, but this was spotted by another developer who e

Re: [Lldb-commits] [PATCH] D14163: Address another race condition running tests on Windows

2015-11-06 Thread Adrian McCarthy via lldb-commits
amccarth added a comment. I'm not seeing this problem now that many of the other changes are in. I'm going to hold off until I see it again. http://reviews.llvm.org/D14163 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm

[Lldb-commits] [PATCH] D14591: Implement register context for mini dump debugging

2015-11-11 Thread Adrian McCarthy via lldb-commits
amccarth created this revision. amccarth added a reviewer: zturner. amccarth added a subscriber: lldb-commits. The old RegisterContextWinMiniDump stub is replaced with x86 and x64 implementations that derive from the common windows register contexts. ProcessWindowsMiniDump grabs the WinAPI CONTE

Re: [Lldb-commits] [PATCH] D14591: Implement register context for mini dump debugging

2015-11-12 Thread Adrian McCarthy via lldb-commits
amccarth marked 3 inline comments as done. Comment at: packages/Python/lldbsuite/test/functionalities/postmortem/minidump/TestMiniDump.py:40 @@ +39,3 @@ +thread = self.process.GetThreadAtIndex(0) +# The crash is in main, so there should be one frame on the stack.

[Lldb-commits] [lldb] r252950 - Implement RegisterContext for Mini Dumps.

2015-11-12 Thread Adrian McCarthy via lldb-commits
Author: amccarth Date: Thu Nov 12 15:16:15 2015 New Revision: 252950 URL: http://llvm.org/viewvc/llvm-project?rev=252950&view=rev Log: Implement RegisterContext for Mini Dumps. Differential Revision: http://reviews.llvm.org/D14591 Added: lldb/trunk/source/Plugins/Process/Windows/MiniDump/x64

Re: [Lldb-commits] [PATCH] D14591: Implement register context for mini dump debugging

2015-11-12 Thread Adrian McCarthy via lldb-commits
This revision was automatically updated to reflect the committed changes. amccarth marked an inline comment as done. Closed by commit rL252950: Implement RegisterContext for Mini Dumps. (authored by amccarth). Changed prior to commit: http://reviews.llvm.org/D14591?vs=39978&id=40082#toc Reposi

[Lldb-commits] [PATCH] D14793: Enable saving of mini dumps with lldb process save-core.

2015-11-18 Thread Adrian McCarthy via lldb-commits
amccarth created this revision. amccarth added a reviewer: zturner. amccarth added a subscriber: lldb-commits. Enable the saving of a mini dump (on Windows) using the existing lldb save-core command. Also plumbs a new method into SBProcess, and adds a very basic test to make sure it produces a

[Lldb-commits] [lldb] r253623 - Make skipIf support the not_in function.

2015-11-19 Thread Adrian McCarthy via lldb-commits
Author: amccarth Date: Thu Nov 19 18:11:38 2015 New Revision: 253623 URL: http://llvm.org/viewvc/llvm-project?rev=253623&view=rev Log: Make skipIf support the not_in function. Modified: lldb/trunk/packages/Python/lldbsuite/test/lldbtest.py Modified: lldb/trunk/packages/Python/lldbsuite/test/

Re: [Lldb-commits] [PATCH] D14793: Enable saving of mini dumps with lldb process save-core.

2015-11-19 Thread Adrian McCarthy via lldb-commits
amccarth marked 5 inline comments as done. Comment at: include/lldb/API/SBProcess.h:344-346 @@ -343,1 +343,5 @@ +// Save the state of the process in a core file (or mini dump on Windows). +lldb::SBError +SaveCore(const char *file_name); + clayborg wr

Re: [Lldb-commits] [PATCH] D14793: Enable saving of mini dumps with lldb process save-core.

2015-11-19 Thread Adrian McCarthy via lldb-commits
amccarth updated this revision to Diff 40716. amccarth marked an inline comment as done. amccarth added a comment. Addresses some of the comments. http://reviews.llvm.org/D14793 Files: include/lldb/API/SBProcess.h include/lldb/API/SBTarget.h packages/Python/lldbsuite/test/functionalities/

Re: [Lldb-commits] [PATCH] D14793: Enable saving of mini dumps with lldb process save-core.

2015-11-19 Thread Adrian McCarthy via lldb-commits
amccarth marked an inline comment as done. Comment at: source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp:159 @@ +158,3 @@ +{ +return SaveMiniDump(process_sp, outfile, error); +} clayborg wrote: > I would rather just have the code from SaveMiniDump inlined

Re: [Lldb-commits] [lldb] r253623 - Make skipIf support the not_in function.

2015-11-20 Thread Adrian McCarthy via lldb-commits
he test TestVectorTypesFormatting, which is annotated with >> @skipIf(compiler='gcc'), run when using GCC: >> >> http://lab.llvm.org:8011/builders/lldb-x86_64-ubuntu-14.04-cmake/builds/8661/steps/test5/logs/stdio >> >> On Thu, Nov 19, 2015 at 4:11 PM, Adrian

[Lldb-commits] [lldb] r253683 - Make skipIf support the not_in function (second attempt).

2015-11-20 Thread Adrian McCarthy via lldb-commits
Author: amccarth Date: Fri Nov 20 12:14:24 2015 New Revision: 253683 URL: http://llvm.org/viewvc/llvm-project?rev=253683&view=rev Log: Make skipIf support the not_in function (second attempt). Modified: lldb/trunk/packages/Python/lldbsuite/test/lldbtest.py Modified: lldb/trunk/packages/Pytho

[Lldb-commits] [lldb] r253684 - FOO

2015-11-20 Thread Adrian McCarthy via lldb-commits
Author: amccarth Date: Fri Nov 20 12:15:14 2015 New Revision: 253684 URL: http://llvm.org/viewvc/llvm-project?rev=253684&view=rev Log: FOO Added: lldb/trunk/packages/Python/lldbsuite/test/functionalities/process_save_core/ lldb/trunk/packages/Python/lldbsuite/test/functionalities/process

[Lldb-commits] [lldb] r253685 - Revert "FOO"

2015-11-20 Thread Adrian McCarthy via lldb-commits
Author: amccarth Date: Fri Nov 20 12:18:21 2015 New Revision: 253685 URL: http://llvm.org/viewvc/llvm-project?rev=253685&view=rev Log: Revert "FOO" Accidentally commited before I was done. This reverts commit 2ec2da4ee52780582d5e9c88b2e982a688fbdbe1. Removed: lldb/trunk/packages/Python/lld

Re: [Lldb-commits] [lldb] r253704 - Revert "Make skipIf support the not_in function (second attempt)."

2015-11-20 Thread Adrian McCarthy via lldb-commits
Siva did include a link in a separate thread: http://lab.llvm.org:8011/builders/lldb-x86_64-ubuntu-14.04-cmake/builds/8688 Sorry about breaking this twice. I guess I'm going to have to get a Linux box. On Fri, Nov 20, 2015 at 1:14 PM, Zachary Turner via lldb-commits < lldb-commits@lists.llvm.or

Re: [Lldb-commits] [PATCH] D14793: Enable saving of mini dumps with lldb process save-core.

2015-11-20 Thread Adrian McCarthy via lldb-commits
amccarth marked an inline comment as not done. amccarth added a comment. The new files are renamed per clayborg's suggestion. Comment at: packages/Python/lldbsuite/test/functionalities/process_save_core/TestProcessSaveCore.py:21 @@ +20,3 @@ +exe = os.path.join(os.getcwd

Re: [Lldb-commits] [PATCH] D14793: Enable saving of mini dumps with lldb process save-core.

2015-11-20 Thread Adrian McCarthy via lldb-commits
amccarth updated this revision to Diff 40835. amccarth added a comment. Renames the files per the suggestion and switches back to the @skipIfWindows decorator on the tests (for now). http://reviews.llvm.org/D14793 Files: include/lldb/API/SBProcess.h include/lldb/API/SBTarget.h packages/P

[Lldb-commits] [lldb] r253734 - Enable saving of mini dumps with lldb process save-core.

2015-11-20 Thread Adrian McCarthy via lldb-commits
Author: amccarth Date: Fri Nov 20 17:09:11 2015 New Revision: 253734 URL: http://llvm.org/viewvc/llvm-project?rev=253734&view=rev Log: Enable saving of mini dumps with lldb process save-core. Also adds SB API to save a core and tests that use it. Differential Revision: http://reviews.llvm.org/D1

Re: [Lldb-commits] [PATCH] D14793: Enable saving of mini dumps with lldb process save-core.

2015-11-20 Thread Adrian McCarthy via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL253734: Enable saving of mini dumps with lldb process save-core. (authored by amccarth). Changed prior to commit: http://reviews.llvm.org/D14793?vs=40835&id=40837#toc Repository: rL LLVM http://revi

Re: [Lldb-commits] [PATCH] D14793: Enable saving of mini dumps with lldb process save-core.

2015-11-20 Thread Adrian McCarthy via lldb-commits
Greg: Since this adds a new file and I don't have a Mac, can you update the Xcode project? On Fri, Nov 20, 2015 at 3:11 PM, Adrian McCarthy wrote: > This revision was automatically updated to reflect the committed changes. > Closed by commit rL253734: Enable saving of mini dumps with lldb proce

Re: [Lldb-commits] [PATCH] D14989: Fix race during process interruption

2015-11-25 Thread Adrian McCarthy via lldb-commits
amccarth added a subscriber: amccarth. amccarth added a comment. Nice detective work. Comment at: include/lldb/Target/Process.h:1372 @@ +1371,3 @@ +/// @param[in] use_run_lock +/// Whether the release the run lock after the stop. +/// Did you mea

Re: [Lldb-commits] [lldb] r254294 - [RS] Support RenderScript struct allocations

2015-11-30 Thread Adrian McCarthy via lldb-commits
This revision seems to have created a hang on startup on Windows. LLDB now hangs during global static initialization on this line: const ConstString RenderScriptRuntime::Element::FallbackStructName("struct"); Perhaps its an initialization order problem? Adrian. On Mon, Nov 30, 2015 at 2:29 AM,

[Lldb-commits] [PATCH] D15092: Fix hang in global static initialization

2015-11-30 Thread Adrian McCarthy via lldb-commits
amccarth created this revision. amccarth added reviewers: EwanCrawford, zturner. amccarth added a subscriber: lldb-commits. A previous patch introduced a global static ConstString instance. On Windows, this results in a hang because constructing the string pool appears to depend on other global

Re: [Lldb-commits] [PATCH] D15092: Fix hang in global static initialization

2015-11-30 Thread Adrian McCarthy via lldb-commits
amccarth added inline comments. Comment at: source/Plugins/LanguageRuntime/RenderScript/RenderScriptRuntime/RenderScriptRuntime.cpp:185 @@ -184,3 +184,3 @@ -static const ConstString FallbackStructName; // Print this as the type name of a struct Element

[Lldb-commits] [lldb] r254338 - Fix hang in global static initialization

2015-11-30 Thread Adrian McCarthy via lldb-commits
Author: amccarth Date: Mon Nov 30 16:18:43 2015 New Revision: 254338 URL: http://llvm.org/viewvc/llvm-project?rev=254338&view=rev Log: Fix hang in global static initialization Differential Revision: http://reviews.llvm.org/D15092 Modified: lldb/trunk/source/Plugins/LanguageRuntime/RenderScr

Re: [Lldb-commits] [PATCH] D15092: Fix hang in global static initialization

2015-11-30 Thread Adrian McCarthy via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL254338: Fix hang in global static initialization (authored by amccarth). Changed prior to commit: http://reviews.llvm.org/D15092?vs=41433&id=41435#toc Repository: rL LLVM http://reviews.llvm.org/D15

[Lldb-commits] [PATCH] D15218: Implement GetMemoryRegionInfo for mini dumps.

2015-12-03 Thread Adrian McCarthy via lldb-commits
amccarth created this revision. amccarth added a reviewer: zturner. amccarth added a subscriber: lldb-commits. Also tweaked process save-core to include the memory info list so that we can see the regions in the list. There are no commands or SBInterfaces yet that make it possible to test this

Re: [Lldb-commits] [PATCH] D15218: Implement GetMemoryRegionInfo for mini dumps.

2015-12-03 Thread Adrian McCarthy via lldb-commits
amccarth updated this revision to Diff 41828. amccarth added a comment. Ran clang-format and removed initialization of a local variable that was no longer used. Note that clang-format re-ordered the include because the change added one include. http://reviews.llvm.org/D15218 Files: source/

Re: [Lldb-commits] [PATCH] D15218: Implement GetMemoryRegionInfo for mini dumps.

2015-12-04 Thread Adrian McCarthy via lldb-commits
amccarth marked 2 inline comments as done. amccarth added a comment. Addressed comments. http://reviews.llvm.org/D15218 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Re: [Lldb-commits] [PATCH] D15218: Implement GetMemoryRegionInfo for mini dumps.

2015-12-04 Thread Adrian McCarthy via lldb-commits
amccarth updated this revision to Diff 41884. amccarth added a comment. Address comments. Factored the decoding of the page protection bits to share that logic between the live and mini dump debugging. http://reviews.llvm.org/D15218 Files: source/Plugins/ObjectFile/PECOFF/WindowsMiniDump.cp

Re: [Lldb-commits] [PATCH] D15218: Implement GetMemoryRegionInfo for mini dumps.

2015-12-04 Thread Adrian McCarthy via lldb-commits
amccarth updated this revision to Diff 41898. amccarth added a comment. After discussion with Zach, we concluded that his original logic for IsPageReadable was better. http://reviews.llvm.org/D15218 Files: source/Plugins/ObjectFile/PECOFF/WindowsMiniDump.cpp source/Plugins/Process/Windows/

[Lldb-commits] [lldb] r254780 - Implement GetMemoryRegionInfo for mini dumps.

2015-12-04 Thread Adrian McCarthy via lldb-commits
Author: amccarth Date: Fri Dec 4 16:22:15 2015 New Revision: 254780 URL: http://llvm.org/viewvc/llvm-project?rev=254780&view=rev Log: Implement GetMemoryRegionInfo for mini dumps. Differential Revision: http://reviews.llvm.org/D15218 Modified: lldb/trunk/source/Plugins/ObjectFile/PECOFF/Win

  1   2   3   4   >