Re: [Lldb-commits] [PATCH] D18287: Don't try to redefine the signal() function on Windows

2016-03-18 Thread Zachary Turner via lldb-commits
zturner updated this revision to Diff 51090. zturner added a comment. Update with context http://reviews.llvm.org/D18287 Files: tools/driver/Driver.cpp tools/driver/Platform.cpp tools/driver/Platform.h tools/lldb-mi/CMakeLists.txt tools/lldb-mi/Platform.cpp tools/lldb-mi/Platform.h

Re: [Lldb-commits] [PATCH] D18287: Don't try to redefine the signal() function on Windows

2016-03-18 Thread Zachary Turner via lldb-commits
zturner added inline comments. Comment at: tools/driver/Driver.cpp:1314 @@ -1313,1 +1313,3 @@ +signal(SIGINT, sigint_handler); +#ifndef _MSC_VER signal (SIGPIPE, SIG_IGN); I think `_MSC_VER` is the right check, because the builtin `signal` implementation

Re: [Lldb-commits] [PATCH] D17107: [lldb] Unicode support on Win32

2016-03-18 Thread Zachary Turner via lldb-commits
zturner added a comment. The reason I mentioned `UNICODE` is because it's one of the main differences between pre-patch and post-patch. It works for me pre-patch. What command line are you passing to CMake? Are you using MSVC 2015 Update 1 or initial release? The other difference is that I'

[Lldb-commits] [PATCH] D18287: Don't try to redefine the signal() function on Windows

2016-03-18 Thread Zachary Turner via lldb-commits
zturner created this revision. zturner added reviewers: amccarth, cameron314. zturner added a subscriber: lldb-commits. Windows comes with an extremely limited implementation of `signal` which only supports a few signal values. Of importance to LLDB is the `SIGINT` value which invokes a callbac

Re: [Lldb-commits] [PATCH] D18194: Abstract the debug info parser from the ASTContext

2016-03-19 Thread Zachary Turner via lldb-commits
zturner updated this revision to Diff 50840. zturner added a comment. Re-opening this after an update. I had to move `CanCompleteType`, `CompleteType`, and `LayoutRecordType` implementations into another class (which I've called `ClangTypeImportHelper`, because PDB needed to use the exact same

Re: [Lldb-commits] [lldb] r263520 - Add some test coverage for the changes in alias help

2016-03-19 Thread Zachary Turner via lldb-commits
n Mar 18, 2016, at 2:45 PM, Zachary Turner wrote: > > Hi Enrico, > > These tests are failing on Windows. They're new tests so not really a > regression, but do you have any idea what might be wrong? Basically, when > the test runs, the help po is displaying the full outp

Re: [Lldb-commits] [PATCH] D17107: [lldb] Unicode support on Win32

2016-03-19 Thread Zachary Turner via lldb-commits
Oh yea I think the reason I didn't look at it again is because I was waiting for the update where you removed the codepage stuff from the driver. On Thu, Mar 17, 2016 at 11:39 AM Zachary Turner wrote: > I can look at it today. Sorry again for the delay, rebase 1 more time and > I&

[Lldb-commits] [lldb] r263844 - Fix a build issue where the python module could become stale.

2016-03-19 Thread Zachary Turner via lldb-commits
Author: zturner Date: Fri Mar 18 17:33:59 2016 New Revision: 263844 URL: http://llvm.org/viewvc/llvm-project?rev=263844&view=rev Log: Fix a build issue where the python module could become stale. We are using hardlinks instead of symlinks, and we attempted to have some logic where we don't re-cre

Re: [Lldb-commits] [PATCH] D17107: [lldb] Unicode support on Win32

2016-03-19 Thread Zachary Turner via lldb-commits
zturner added a comment. Oh yea I think the reason I didn't look at it again is because I was waiting for the update where you removed the codepage stuff from the driver. http://reviews.llvm.org/D17107 ___ lldb-commits mailing list lldb-commits@list

Re: [Lldb-commits] [PATCH] D17107: [lldb] Unicode support on Win32

2016-03-19 Thread Zachary Turner via lldb-commits
zturner added a comment. I'm not sure what your source tree layout looks like, but this isn't applying for me. All your paths have "trunk" in front of them, which is a little unusual in the directory structure is supposed to be something like this: llvm tools lldb source A

Re: [Lldb-commits] [PATCH] D17107: [lldb] Unicode support on Win32

2016-03-19 Thread Zachary Turner via lldb-commits
I'm using the amd64_x86 toolchain. They're supposed to be identical so that's unlikely to be the problem, but it's the only difference i can see. Let me know what happens on your clean rebuild On Fri, Mar 18, 2016 at 7:56 AM Cameron wrote: > cameron314 added a comment. > > Since it works without

Re: [Lldb-commits] [PATCH] D18044: Fix a couple of cornercases in FileSpec + tests

2016-03-19 Thread Zachary Turner via lldb-commits
Yea, because of the fact that we must support both syntaxes on both platforms, LLVM library is out. The whole motivation for introducing the path syntax is so that windows paths behave as if on Windows even if on linux On Wed, Mar 16, 2016 at 6:19 AM Pavel Labath wrote: > labath added inline com

Re: [Lldb-commits] [PATCH] D17107: [lldb] Unicode support on Win32

2016-03-19 Thread Zachary Turner via lldb-commits
I can look at it today. Sorry again for the delay, rebase 1 more time and I'll check it out today On Thu, Mar 17, 2016 at 11:34 AM Cameron wrote: > cameron314 added a comment. > > @zturner: Let me know when you're ready for this patch and I'll rebase it > again, since there's been quite a few m

Re: [Lldb-commits] [PATCH] D17107: [lldb] Unicode support on Win32

2016-03-19 Thread Zachary Turner via lldb-commits
zturner added a comment. I'm using the amd64_x86 toolchain. They're supposed to be identical so that's unlikely to be the problem, but it's the only difference i can see. Let me know what happens on your clean rebuild http://reviews.llvm.org/D17107

Re: [Lldb-commits] [PATCH] D17107: [lldb] Unicode support on Win32

2016-03-19 Thread Zachary Turner via lldb-commits
zturner added a comment. I'm getting this when linking: [826/826] Linking CXX executable bin\lldb.exe FAILED: cmd.exe /C "cd . && "C:\Program Files (x86)\CMake\bin\cmake.exe" -E vs_link_exe --intdir=tools\lldb\tools\driver\CMakeFiles\lldb.dir --manifests -- C:\PROGRA~2\MICROS~3.0\VC\bin\AM

Re: [Lldb-commits] [lldb] r263520 - Add some test coverage for the changes in alias help

2016-03-19 Thread Zachary Turner via lldb-commits
Hi Enrico, These tests are failing on Windows. They're new tests so not really a regression, but do you have any idea what might be wrong? Basically, when the test runs, the help po is displaying the full output of "help expression". But strangely, if I go into lldb and run "help po" there, it'

Re: [Lldb-commits] [PATCH] D17107: [lldb] Unicode support on Win32

2016-03-19 Thread Zachary Turner via lldb-commits
zturner added a comment. I can look at it today. Sorry again for the delay, rebase 1 more time and I'll check it out today http://reviews.llvm.org/D17107 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailma

[Lldb-commits] [lldb] r263858 - Delete the custom implementation of signal() on Windows.

2016-03-19 Thread Zachary Turner via lldb-commits
Author: zturner Date: Fri Mar 18 18:47:48 2016 New Revision: 263858 URL: http://llvm.org/viewvc/llvm-project?rev=263858&view=rev Log: Delete the custom implementation of signal() on Windows. The Windows SDK provides a version of signal() that is much more limited compared to other platforms. It

Re: [Lldb-commits] [PATCH] D17635: Continue after process exit

2016-03-19 Thread Zachary Turner via lldb-commits
zturner added a comment. Petr, is this one ok to go in? http://reviews.llvm.org/D17635 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Re: [Lldb-commits] [PATCH] D18287: Don't try to redefine the signal() function on Windows

2016-03-19 Thread Zachary Turner via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL263858: Delete the custom implementation of signal() on Windows. (authored by zturner). Changed prior to commit: http://reviews.llvm.org/D18287?vs=51090&id=51093#toc Repository: rL LLVM http://revie

Re: [Lldb-commits] [PATCH] D17635: Continue after process exit

2016-03-19 Thread Zachary Turner via lldb-commits
zturner added a comment. I can remove that comment for you, no worries. http://reviews.llvm.org/D17635 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Re: [Lldb-commits] [PATCH] D17106: Fix SocketTest on Windows

2016-03-20 Thread Zachary Turner via lldb-commits
Yea that works On Wed, Mar 16, 2016 at 6:33 AM Pavel Labath wrote: > labath added a comment. > > So I ran the tests on windows (http://reviews.llvm.org/W7 Enterprise) now > and I did indeed get the long "0:0:...:1" version here instead of "::1". > Maybe we should just accept both versions as corr

Re: [Lldb-commits] [PATCH] D17107: [lldb] Unicode support on Win32

2016-03-21 Thread Zachary Turner via lldb-commits
zturner added a comment. Patch doesn't appear to be clang-formatted. All patches need to be run through clang-format before submitting. I think this is my last set of comments. If there's any you disagree with let me know. If you agree with everything, I can probably just make the changes on

Re: [Lldb-commits] [PATCH] D17107: [lldb] Unicode support on Win32

2016-03-21 Thread Zachary Turner via lldb-commits
zturner added a comment. And btw, the multiply defined symbol error is gone now that the custom `signal` function is removed http://reviews.llvm.org/D17107 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mail

Re: [Lldb-commits] [PATCH] D18194: Abstract the debug info parser from the ASTContext

2016-03-21 Thread Zachary Turner via lldb-commits
zturner added a comment. ping, any objections here Greg? http://reviews.llvm.org/D18194 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Re: [Lldb-commits] [PATCH] D17107: [lldb] Unicode support on Win32

2016-03-22 Thread Zachary Turner via lldb-commits
zturner accepted this revision. zturner added a comment. This revision is now accepted and ready to land. I think this is ready to go in. You probably noticed that this took a long time to work out all the issues with. In the future if there's any way you could break things up into smaller pat

[Lldb-commits] [lldb] r264074 - Unicode support on Win32.

2016-03-22 Thread Zachary Turner via lldb-commits
Author: zturner Date: Tue Mar 22 12:58:09 2016 New Revision: 264074 URL: http://llvm.org/viewvc/llvm-project?rev=264074&view=rev Log: Unicode support on Win32. Win32 API calls that are Unicode aware require wide character strings, but LLDB uses UTF8 everywhere. This patch does conversions wherev

Re: [Lldb-commits] [PATCH] D18194: Abstract the debug info parser from the ASTContext

2016-03-22 Thread Zachary Turner via lldb-commits
zturner abandoned this revision. zturner added a comment. Abandoning this revision and will re-open a new revision. http://reviews.llvm.org/D18194 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listin

[Lldb-commits] [PATCH] D18381: Decouple ClangASTContext from DWARF

2016-03-22 Thread Zachary Turner via lldb-commits
zturner created this revision. zturner added a reviewer: clayborg. zturner added a subscriber: lldb-commits. This patch attempts to remove the coupling between `ClangASTContext` and DWARF debug information. Previously, `TypeSystem` exposed a method called `GetDWARFParser`, which means that any

Re: [Lldb-commits] [PATCH] D18381: Decouple ClangASTContext from DWARF

2016-03-22 Thread Zachary Turner via lldb-commits
Should we go back to my original patch then? It left the parser accessible from TypeSystem, but made it a DebugInfoParser instead of a DWARFParser. The whole idea is to remove knowledge of a specific debug info format from the generic TypeSystem, so it still seems wrong to add DWARF specific stuff

Re: [Lldb-commits] [PATCH] D18381: Decouple ClangASTContext from DWARF

2016-03-23 Thread Zachary Turner via lldb-commits
zturner added a comment. I guess my point was just that it seems a little weird to treat DWARF specially. It's just another debug info format (albeit one that most compilers support), so by baking into the supposedly generic interface the requirement that "every type system must be able to sup

Re: [Lldb-commits] [PATCH] D18381: Decouple ClangASTContext from DWARF

2016-03-23 Thread Zachary Turner via lldb-commits
zturner updated this revision to Diff 51476. zturner added a comment. This patch has gotten both bigger and smaller. Smaller in the sense that after taking into consideration the most recent comments, there was really only one piece left of my patch. It is the piece that abstracted out `CanCom

Re: [Lldb-commits] [PATCH] D18381: Decouple ClangASTContext from DWARF

2016-03-23 Thread Zachary Turner via lldb-commits
zturner added inline comments. Comment at: source/Plugins/SymbolFile/DWARF/SymbolFileDWARF.cpp:1614-1622 @@ -1611,9 +1613,11 @@ TypeSystem *type_system = compiler_type.GetTypeSystem(); -if (type_system) -{ -DWARFASTParser *dwarf_ast = type_system->GetDWARFPars

Re: [Lldb-commits] [PATCH] D18381: Decouple ClangASTContext from DWARF

2016-03-23 Thread Zachary Turner via lldb-commits
zturner updated this revision to Diff 51480. zturner added a comment. Fixes issue with `CanCompleteType` being unimplemented. This update deletes `CanCompleteType` and `CompleteType` from `DWARFASTParser` base class, and users of that function now call `GetClangASTImporter().CanImport()` and `

Re: [Lldb-commits] [PATCH] D18381: Decouple ClangASTContext from DWARF

2016-03-23 Thread Zachary Turner via lldb-commits
zturner added a comment. It's been a while since I've used my Mac. I'll fire it up and see if I can get it going, but no promises. I'll update tomorrow http://reviews.llvm.org/D18381 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http:

Re: [Lldb-commits] [PATCH] D18381: Decouple ClangASTContext from DWARF

2016-03-24 Thread Zachary Turner via lldb-commits
#x27;t know if something has changed. In any case, let me know if there's something I should be doing. On Wed, Mar 23, 2016 at 4:12 PM Zachary Turner wrote: > zturner added a comment. > > It's been a while since I've used my Mac. I'll fire it up and see

Re: [Lldb-commits] [PATCH] D18459: Fix FILE * leak in Python API

2016-03-24 Thread Zachary Turner via lldb-commits
zturner requested changes to this revision. zturner added a comment. This revision now requires changes to proceed. This patch won't work. `PyFile_AsFile` doesn't exist on Python 3. Anything that you need done to make this work has to be wrapped up in `PythonFile` class as it was before, becau

Re: [Lldb-commits] [PATCH] D18381: Decouple ClangASTContext from DWARF

2016-03-24 Thread Zachary Turner via lldb-commits
-configuration Debug > > > > On Mar 24, 2016, at 12:31 PM, Zachary Turner wrote: > > > > Having trouble building on OSX. > > > > ERROR:root:Unable to find swig executable: 'module' object has no > attribute 'OSError' > > > > Co

Re: [Lldb-commits] [PATCH] D18381: Decouple ClangASTContext from DWARF

2016-03-24 Thread Zachary Turner via lldb-commits
zturner updated this revision to Diff 51605. zturner added a comment. Update patch. http://reviews.llvm.org/D18381 Files: include/lldb/Symbol/ClangASTContext.h include/lldb/Symbol/ClangASTImporter.h include/lldb/Symbol/ClangUtil.h include/lldb/Symbol/TypeSystem.h source/Plugins/Expres

Re: [Lldb-commits] [PATCH] D18381: Decouple ClangASTContext from DWARF

2016-03-24 Thread Zachary Turner via lldb-commits
I usually select "desktop" as the target. Is this patch up to date? If so, > I can apply and compile it and let you know what the results are. > > > On Mar 24, 2016, at 2:21 PM, Zachary Turner wrote: > > > > Yes I was doing it from inside the IDE though. I selected l

Re: [Lldb-commits] [PATCH] D18381: Decouple ClangASTContext from DWARF

2016-03-24 Thread Zachary Turner via lldb-commits
Is it one time until I reboot, or until the end of the test suite? On Thu, Mar 24, 2016 at 2:51 PM Enrico Granata wrote: > On Mar 24, 2016, at 2:44 PM, Zachary Turner via lldb-commits < > lldb-commits@lists.llvm.org> wrote: > > It's updated now. I'm still getting

Re: [Lldb-commits] [PATCH] D18459: Fix FILE * leak in Python API

2016-03-24 Thread Zachary Turner via lldb-commits
zturner added a comment. if (!StreamIsValid()) { if (DescriptorIsValid()) { const char *mode = GetStreamOpenModeFromOptions (m_options); if (mode) { if (!m_should_close_fd) { // We must duplicate the file d

Re: [Lldb-commits] [PATCH] D18381: Decouple ClangASTContext from DWARF

2016-03-24 Thread Zachary Turner via lldb-commits
e: > On Mar 24, 2016, at 2:53 PM, Zachary Turner wrote: > > Is it one time until I reboot, or until the end of the test suite? > > > The former. > > On Thu, Mar 24, 2016 at 2:51 PM Enrico Granata wrote: > >> On Mar 24, 2016, at 2:44 PM, Zachary Turner via lldb

Re: [Lldb-commits] [PATCH] D18459: Fix FILE * leak in Python API

2016-03-24 Thread Zachary Turner via lldb-commits
zturner added inline comments. Comment at: scripts/Python/python-typemaps.swig:532 @@ -531,3 +524,1 @@ - file.Clear(); -} } fjricci wrote: > The problem is that here, we save the `FILE*` (`$1`) and let the `File` > (`file`) go out of scope. So the `F

Re: [Lldb-commits] [PATCH] D18459: Fix FILE * leak in Python API

2016-03-24 Thread Zachary Turner via lldb-commits
zturner added inline comments. Comment at: scripts/Python/python-typemaps.swig:532 @@ -531,3 +524,1 @@ - file.Clear(); -} } zturner wrote: > fjricci wrote: > > The problem is that here, we save the `FILE*` (`$1`) and let the `File` > > (`file`) go ou

Re: [Lldb-commits] [PATCH] D18381: Decouple ClangASTContext from DWARF

2016-03-24 Thread Zachary Turner via lldb-commits
$(lldb)/build/Debug/lldb > $(lldb)/build/Debug/LLDB.framework > > where $(lldb) is your LLDB root folder... > > > > > > > On Mar 24, 2016, at 3:19 PM, Zachary Turner wrote: > > > > Figured as much. Thanks for the tip. > > > > Back to the issue of the test su

Re: [Lldb-commits] [PATCH] D18459: Fix FILE * leak in Python API

2016-03-24 Thread Zachary Turner via lldb-commits
Could there be an overload of SBCommandReturnObject constructor that takes an fd instead of a FILE*, and pass through to the private method which does its own duping? Then this typemap could be changed to convert to int instead of to FILE* Also I'm OOO until tomorrow now, so I can't look at the co

Re: [Lldb-commits] [lldb] r264379 - Use Clang's FixItHints to correct expressions with "trivial" mistakes (e.g. "." for "->".)

2016-03-24 Thread Zachary Turner via lldb-commits
This seems like an odd thing to do by default. Is there going to be a setting to turn this off? Seems to me like off should be default An enumerated setting would be even nicer, where one option is "report" that just doesn't apply any FixIts, but prints a message saying "did you mean Foo->bar()?"

Re: [Lldb-commits] [lldb] r264379 - Use Clang's FixItHints to correct expressions with "trivial" mistakes (e.g. "." for "->".)

2016-03-24 Thread Zachary Turner via lldb-commits
are > dereferencing down a few levels (e.g. "p > myvar->subelem.valcontainer->value"). > > Because lldb uses clang, we have to follow the rules of the language (for > the most part) - this is likely the only way we could accomplish something > similar in lldb. >

Re: [Lldb-commits] [PATCH] D18459: Fix FILE * leak in Python API

2016-03-25 Thread Zachary Turner via lldb-commits
As long as it only changes the private API and not the public it's probably fine, if you think that will work feel free to give it a try and upload a new patch On Fri, Mar 25, 2016 at 9:12 AM Francis Ricci wrote: > fjricci added a comment. > > Would we want this overloaded method taking an int (f

Re: [Lldb-commits] [PATCH] D18481: Add argument to expectedFailureAll decorator to xfail for environment variables, and xfail tests for hard float abi and -mthumb on android arm

2016-03-25 Thread Zachary Turner via lldb-commits
zturner added reviewers: labath, tberghammer. zturner added a comment. This seems very strange to me. What if someone specifies those flags on the command line in the makefile instead of via some environment variables? It also seems like a very specialized argument that we might use once or twi

Re: [Lldb-commits] [PATCH] D18481: Add argument to expectedFailureAll decorator to xfail for environment variables, and xfail tests for hard float abi and -mthumb on android arm

2016-03-25 Thread Zachary Turner via lldb-commits
zturner added a comment. Couldn't we have a way to say in the Makefile "never use these flags", then the test suite could check the environment and remove them if they are present. This woudl allow the test to run. architecture, compiler, etc are things we don't really have control over. If a

Re: [Lldb-commits] [PATCH] D18481: Add argument to expectedFailureAll decorator to xfail for environment variables, and xfail tests for hard float abi and -mthumb on android arm

2016-03-25 Thread Zachary Turner via lldb-commits
zturner added a comment. I'll still wait and see what Pavel and/or Tamas say, but if we are going to go this route, I would rather the argument be called `cflags` and now `env_flags`. Xfailing a test based on an arbitrary environment variable just seems like something we shouldn't be doing. I

Re: [Lldb-commits] [lldb] r264474 - Add a 'language cplusplus demangle' command. This can be useful to provide a low-friction reproduction for issues with the LLDB demangling of C++ symbols

2016-03-25 Thread Zachary Turner via lldb-commits
Any particular reason this has the word Itanium baked into the name of the class and description? MSVC doesn't use the Itanium ABI, but but AFAICT from looking at this code, it should work for MSVC's abi as well. Sicne this command isn't actually Itanium ABI specific, I don't think it should make

Re: [Lldb-commits] [lldb] r264474 - Add a 'language cplusplus demangle' command. This can be useful to provide a low-friction reproduction for issues with the LLDB demangling of C++ symbols

2016-03-25 Thread Zachary Turner via lldb-commits
like 1 per module. On Fri, Mar 25, 2016 at 4:49 PM Enrico Granata wrote: > On Mar 25, 2016, at 4:39 PM, Zachary Turner wrote: > > Any particular reason this has the word Itanium baked into the name of the > class > > > The name of the C++ language runtime is ItaniumABI >

Re: [Lldb-commits] [PATCH] D18381: Decouple ClangASTContext from DWARF

2016-03-25 Thread Zachary Turner via lldb-commits
Did you get a chance to test this today? On Fri, Mar 25, 2016 at 9:32 AM Greg Clayton wrote: > Will do. > > On Mar 24, 2016, at 3:30 PM, Zachary Turner wrote: > > > > Is there any way you could try it out for me? It still doesn't build > successfully from the IDE

Re: [Lldb-commits] [PATCH] D18381: Decouple ClangASTContext from DWARF

2016-03-25 Thread Zachary Turner via lldb-commits
zturner updated this revision to Diff 51705. zturner added a comment. Rebased against ToT http://reviews.llvm.org/D18381 Files: include/lldb/Symbol/ClangASTContext.h include/lldb/Symbol/ClangASTImporter.h include/lldb/Symbol/ClangUtil.h include/lldb/Symbol/TypeSystem.h source/Plugins/

Re: [Lldb-commits] [PATCH] D18381: Decouple ClangASTContext from DWARF

2016-03-28 Thread Zachary Turner via lldb-commits
zturner added a comment. Hi Greg, are you going to have a chance to try this out today? http://reviews.llvm.org/D18381 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Re: [Lldb-commits] [PATCH] D18519: Allow building LLDB on Windows with MinGW 64/4.9.2 and later

2016-03-28 Thread Zachary Turner via lldb-commits
zturner requested changes to this revision. zturner added a comment. This revision now requires changes to proceed. Mostly small comments, but a lot of them. Mostly around style issues such as indentation, putting platform specific `#defines` in the right header file, and some nuances around `_

Re: [Lldb-commits] [PATCH] D18520: Initialize ProcessWindowsLive when building LLDB with MinGW

2016-03-28 Thread Zachary Turner via lldb-commits
zturner added inline comments. Comment at: source/API/SystemInitializerFull.cpp:90 @@ -89,3 +89,3 @@ -#if defined(_MSC_VER) +#if defined(_MSC_VER) || defined(__MINGW32__) #include "lldb/Host/windows/windows.h" Just use `LLVM_ON_WIN32` for both of these places,

Re: [Lldb-commits] [PATCH] D18519: Allow building LLDB on Windows with MinGW 64/4.9.2 and later

2016-03-28 Thread Zachary Turner via lldb-commits
zturner added a comment. Everywhere I said `LLVM_ON_WINDOWS` earlier, it's actually called `LLVM_ON_WIN32`. http://reviews.llvm.org/D18519 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb

Re: [Lldb-commits] [PATCH] D18520: Initialize ProcessWindowsLive when building LLDB with MinGW

2016-03-28 Thread Zachary Turner via lldb-commits
zturner added inline comments. Comment at: source/API/SystemInitializerFull.cpp:90 @@ -89,3 +89,3 @@ -#if defined(_MSC_VER) +#if defined(_MSC_VER) || defined(__MINGW32__) #include "lldb/Host/windows/windows.h" eran.ifrah wrote: > zturner wrote: > > Just use `LL

[Lldb-commits] [lldb] r264685 - Move some functions from DWARFASTParserClang to ClangASTImporter.

2016-03-28 Thread Zachary Turner via lldb-commits
Author: zturner Date: Mon Mar 28 17:53:41 2016 New Revision: 264685 URL: http://llvm.org/viewvc/llvm-project?rev=264685&view=rev Log: Move some functions from DWARFASTParserClang to ClangASTImporter. This allows these functions to be re-used by a forthcoming PDBASTParser. The functions in questi

Re: [Lldb-commits] [PATCH] D18381: Decouple ClangASTContext from DWARF

2016-03-28 Thread Zachary Turner via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL264685: Move some functions from DWARFASTParserClang to ClangASTImporter. (authored by zturner). Changed prior to commit: http://reviews.llvm.org/D18381?vs=51705&id=51848#toc Repository: rL LLVM htt

[Lldb-commits] [PATCH] D18530: Move some functions from ClangASTContext to ClangUtil

2016-03-28 Thread Zachary Turner via lldb-commits
zturner created this revision. zturner added reviewers: spyffe, clayborg. zturner added a subscriber: lldb-commits. This is pretty mechanical, so you don't really have to look at this in too much detail. I'm mostly posting it here to make sure people are ok with the high level idea. Basically

Re: [Lldb-commits] [PATCH] D18519: Allow building LLDB on Windows with MinGW 64/4.9.2 and later

2016-03-28 Thread Zachary Turner via lldb-commits
It's night here, so I will have a detailed look tomorrow. But in the meantime, some of the issues don't appear to be addressed. For example the issue about why logging is disabled, the disabled code in ProcessWinMiniDump.cpp, and a few other things. If you view the diff in Phabricator, you can r

Re: [Lldb-commits] [PATCH] D18519: Allow building LLDB on Windows with MinGW 64/4.9.2 and later

2016-03-28 Thread Zachary Turner via lldb-commits
zturner added a subscriber: zturner. zturner added a comment. It's night here, so I will have a detailed look tomorrow. But in the meantime, some of the issues don't appear to be addressed. For example the issue about why logging is disabled, the disabled code in ProcessWinMiniDump.cpp, and a fe

Re: [Lldb-commits] [PATCH] D18530: Move some functions from ClangASTContext to ClangUtil

2016-03-30 Thread Zachary Turner via lldb-commits
know if I can continue this effort without review, it would save all of us some time and obviously I can use my judgement if I think the change is non-trivial. On Mon, Mar 28, 2016 at 4:32 PM Zachary Turner wrote: > zturner created this revision. > zturner added reviewers: spyffe, clayborg.

Re: [Lldb-commits] [PATCH] D18530: Move some functions from ClangASTContext to ClangUtil

2016-03-30 Thread Zachary Turner via lldb-commits
zturner added a comment. One or two of the functions, you are right. They do `clang::ASTContext` related things. That was actually an oversight on my part. I meant to move only functions that specifically did NOT do `clang::ASTContext` things. Like `RemoveFastQualifiers`, or converting enum

Re: [Lldb-commits] [PATCH] D18530: Move some functions from ClangASTContext to ClangUtil

2016-03-30 Thread Zachary Turner via lldb-commits
zturner added a reviewer: rsmith. zturner added a comment. But wouldn't doing that manual merge once then make things easier for the future? For example, if you merge back to a branch that doesn't have `ClangUtil.cpp`, and then you just add `ClangUtil.cpp` to that branch, the problem is solved

Re: [Lldb-commits] [PATCH] D18530: Move some functions from ClangASTContext to ClangUtil

2016-03-30 Thread Zachary Turner via lldb-commits
zturner added a comment. In http://reviews.llvm.org/D18530#387328, @tberghammer wrote: > I don't maintain any downstream branch to worry about merges but my personal > opinion is moving large amount of code around can cause some issue in the > future even for upstream. The 2 main issue I can th

Re: [Lldb-commits] [PATCH] D18530: Move some functions from ClangASTContext to ClangUtil

2016-03-30 Thread Zachary Turner via lldb-commits
zturner added a comment. So, in thinking about this some more, my end goal does not necessarily involve the creation of a new file. The primary goal is group related functions together into a more bite-sized interface in order to make it easier to understand the code. How about keeping everyt

Re: [Lldb-commits] [PATCH] D18530: Move some functions from ClangASTContext to ClangUtil

2016-03-30 Thread Zachary Turner via lldb-commits
zturner added a comment. In http://reviews.llvm.org/D18530#387382, @clayborg wrote: > In http://reviews.llvm.org/D18530#387377, @zturner wrote: > > > So, in thinking about this some more, my end goal does not necessarily > > involve the creation of a new file. The primary goal is group related

Re: [Lldb-commits] [PATCH] D18530: Move some functions from ClangASTContext to ClangUtil

2016-03-30 Thread Zachary Turner via lldb-commits
zturner added a comment. The last time we talked about this, you said something along the lines of "Changes to LLVM and LLDB at the same time are a problem, but any refactor that happens entirely within LLDB is fine" http://reviews.llvm.org/D18530 ___

Re: [Lldb-commits] [PATCH] D18530: Move some functions from ClangASTContext to ClangUtil

2016-03-30 Thread Zachary Turner via lldb-commits
zturner added a comment. I will move most of this back to `ClangASTContext`, but I want to state again that I would like to reach a point where downstream merge issues are not even a topic that comes up in code reviews. I see many huge refactors coming through from people that do not go up for

Re: [Lldb-commits] [PATCH] D18646: Fix DWO breakage in r264909

2016-03-31 Thread Zachary Turner via lldb-commits
I think it depends on how bad the thing that happens is. If you are out of memory, sure you can assert. If a syscall fails that is supposed to never fail, you can assert. But if one piece of debug info appears corrupt, I don't think it's worth bringing down the whole process, which could be an e

Re: [Lldb-commits] [PATCH] D18646: Fix DWO breakage in r264909

2016-03-31 Thread Zachary Turner via lldb-commits
nd if you absolutely can't recover, it's >> worth the time to think about whether you could recover if you architected >> the code a little differently. >> >> But in the case of debug information, you should always be able to fall >> back to "no debug in

Re: [Lldb-commits] [PATCH] D18697: Fix a bug in linux core file handling

2016-04-01 Thread Zachary Turner via lldb-commits
What if you are simultaneously debugging 2 processes with the same pid? Does this fail? On Fri, Apr 1, 2016 at 9:06 AM Pavel Labath wrote: > labath created this revision. > labath added reviewers: clayborg, zturner. > labath added a subscriber: lldb-commits. > > There was a bug in linux core file

Re: [Lldb-commits] [PATCH] D18464: Implement `target modules dump headers`

2016-04-01 Thread Zachary Turner via lldb-commits
zturner added a subscriber: zturner. zturner added a comment. FWIW I believe we do actually want many of the PE headers, although I have to say I don't like the format of the output.It seems like we could break this up into smaller chunks like section headers, pe headers, binary headers, deb

Re: [Lldb-commits] [PATCH] D18689: Make FileSpec handling platform-independent

2016-04-01 Thread Zachary Turner via lldb-commits
zturner added a comment. Ugh. The only better way I can think of to do this would be to go into LLVM and rip out all the preprocessor defines, and compile `_windows` and `_posix` versions of every function unconditionally, and then only use the preprocessor defines to do something like: #if

Re: [Lldb-commits] [PATCH] D18519: Allow building LLDB on Windows with MinGW 64/4.9.2 and later

2016-04-01 Thread Zachary Turner via lldb-commits
zturner added a comment. A few minor points left. Most are just CMake indentation issues, so should be easy to fix. A few code changes though. Comment at: CMakeLists.txt:3-5 @@ -2,1 +2,5 @@ +if(MINGW_DEBUG) +# force debugging info into lldb sources +message("-- Buil

[Lldb-commits] [lldb] r265200 - Add some unit tests for ClangASTContext.

2016-04-01 Thread Zachary Turner via lldb-commits
Author: zturner Date: Fri Apr 1 18:20:35 2016 New Revision: 265200 URL: http://llvm.org/viewvc/llvm-project?rev=265200&view=rev Log: Add some unit tests for ClangASTContext. In doing so, two bugs were uncovered (and fixed). The first bug is that ClangASTContext::RemoveFastQualifiers() was broke

Re: [Lldb-commits] [lldb] r265461 - XFail TestImport.py on Windows because Python 3 import rules don't work that way.

2016-04-05 Thread Zachary Turner via lldb-commits
I think we need some more information before we xfail this. It would help to drill down to either the python import statement or the PyImport_ImportModule C api call that actually does the import. If you can get that, i can help come up with a fix. Just need to step through the execution of the co

Re: [Lldb-commits] [lldb] r265461 - XFail TestImport.py on Windows because Python 3 import rules don't work that way.

2016-04-05 Thread Zachary Turner via lldb-commits
h relative and > absolute module paths changed from Python 2 to 3. > > I'll revert the xfail if you want. But this has been broken for quite a > while (as has another test, which I'm looking into now). > > On Tue, Apr 5, 2016 at 2:29 PM, Zachary Turner wrote: > >&g

Re: [Lldb-commits] [lldb] r265461 - XFail TestImport.py on Windows because Python 3 import rules don't work that way.

2016-04-05 Thread Zachary Turner via lldb-commits
Without the modification to sys.path On Tue, Apr 5, 2016 at 3:39 PM Zachary Turner wrote: > Can you try to change "import foo2" to "from .foo import foo2" > On Tue, Apr 5, 2016 at 2:52 PM Adrian McCarthy > wrote: > >> I've drilled down in

Re: [Lldb-commits] [lldb] r265461 - XFail TestImport.py on Windows because Python 3 import rules don't work that way.

2016-04-05 Thread Zachary Turner via lldb-commits
t does the right thing. I'll keep investigating. > > On Tue, Apr 5, 2016 at 3:40 PM, Zachary Turner wrote: > >> Without the modification to sys.path >> >> On Tue, Apr 5, 2016 at 3:39 PM Zachary Turner wrote: >> >>> Can you try to change "impo

Re: [Lldb-commits] [lldb] r265461 - XFail TestImport.py on Windows because Python 3 import rules don't work that way.

2016-04-05 Thread Zachary Turner via lldb-commits
e. Otherwise everybody will have to put this goo > at the top of every .py file they write for formatters & breakpoint > commands and the like. > > Jim > > > > On Apr 5, 2016, at 5:30 PM, Zachary Turner via lldb-commits < > lldb-commits@lists.llvm.org> wrot

Re: [Lldb-commits] [lldb] r265461 - XFail TestImport.py on Windows because Python 3 import rules don't work that way.

2016-04-06 Thread Zachary Turner via lldb-commits
file path. > > And does the `from __future__ import absolute_import` really belong in the > script your importing? Or does it belong in the temp script that's written > to do the import? I would have thought the latter from everything I read > yesterday. > > On Tue, Apr 5

Re: [Lldb-commits] [lldb] r265461 - XFail TestImport.py on Windows because Python 3 import rules don't work that way.

2016-04-06 Thread Zachary Turner via lldb-commits
/test/use_lldb_suite.py On Wed, Apr 6, 2016 at 8:19 AM Zachary Turner wrote: > Well, it would belong anywhere that does an import, so in theory it > belongs in every script. In the general case, for example if you are like > this: > > foo > |-- bar > | baz > |-- b

[Lldb-commits] [PATCH] D18848: Add PDBASTParser and parse type information from PDB

2016-04-06 Thread Zachary Turner via lldb-commits
zturner created this revision. zturner added a reviewer: clayborg. zturner added a subscriber: lldb-commits. This code is still untested aside from that it compiles. I mostly want to put an early work-in-progress up here to make sure I'm on the right path and am not doing anything fundamentally

Re: [Lldb-commits] [PATCH] D18848: Add PDBASTParser and parse type information from PDB

2016-04-07 Thread Zachary Turner via lldb-commits
zturner added inline comments. Comment at: source/Plugins/SymbolFile/PDB/PDBASTParser.cpp:154-156 @@ +153,5 @@ + +CompilerType clang_type = +m_ast.CreateRecordType(tu_decl_ctx, access, udt->getName().c_str(), TranslateUdtKind(udt_kind), +

Re: [Lldb-commits] [PATCH] D18848: Add PDBASTParser and parse type information from PDB

2016-04-07 Thread Zachary Turner via lldb-commits
zturner added a comment. In http://reviews.llvm.org/D18848#394756, @clayborg wrote: > > One oddity of PDB is that the debug info does not maintain enough > > information to accurately reconstruct the DeclContext hierarchy. If you > > have this: > > > > > > namespace Foo > > > { > > >

Re: [Lldb-commits] [PATCH] D18880: -thread-info in lldbmi does not conform to protocol. Should end with current thread id

2016-04-07 Thread Zachary Turner via lldb-commits
zturner added a subscriber: zturner. zturner added a comment. Hi Jackson, Two suggestions: 1. Please clang-format the patch. Let me know if you need help getting this working. 2. use C++11 threads instead of pthreads. This makes the tests portable to Windows. Even if the test still fails on

Re: [Lldb-commits] [PATCH] D18880: -thread-info in lldbmi does not conform to protocol. Should end with current thread id

2016-04-07 Thread Zachary Turner via lldb-commits
zturner added a comment. We have an lldb style file in llvm/tools/lldb, it should be picked up automatically if you run it from the lldb directory. I'm not sure though if it's based on the folder you're in when you run clang-format or by searching up the tree from the target file until it finds a

Re: [Lldb-commits] [PATCH] D18880: -thread-info in lldbmi does not conform to protocol. Should end with current thread id

2016-04-07 Thread Zachary Turner via lldb-commits
We have an lldb style file in llvm/tools/lldb, it should be picked up automatically if you run it from the lldb directory. I'm not sure though if it's based on the folder you're in when you run clang-format or by searching up the tree from the target file until it finds a rule file On Thu, Apr 7, 2

Re: [Lldb-commits] [PATCH] D18880: -thread-info in lldbmi does not conform to protocol. Should end with current thread id

2016-04-08 Thread Zachary Turner via lldb-commits
zturner accepted this revision. zturner added a reviewer: zturner. zturner added a comment. This revision is now accepted and ready to land. Looks fine to me. TBH I haven't seen any of the lldb-mi owners around in months, so I'm not sure if they're still active http://reviews.llvm.org/D18880

Re: [Lldb-commits] [PATCH] D18848: Add PDBASTParser and parse type information from PDB

2016-04-08 Thread Zachary Turner via lldb-commits
zturner added a comment. Greg, what should happen when you look up a builtin type like "char" or "float"? Is there supposed to be a unique `TypeSP` for this somewhere, with a unique uid? http://reviews.llvm.org/D18848 ___ lldb-commits mailing lis

Re: [Lldb-commits] [PATCH] D18848: Add PDBASTParser and parse type information from PDB

2016-04-08 Thread Zachary Turner via lldb-commits
zturner added a comment. I mean for example if someone calls `FindTypes(..., "char", ...); Should a `TypeSP` go into the map? http://reviews.llvm.org/D18848 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mai

Re: [Lldb-commits] [PATCH] D18912: sleep and retry on failure to delete temp file in tests

2016-04-08 Thread Zachary Turner via lldb-commits
zturner added a comment. How about add a function to `lldbsuite\support\fs.py`? def remove_file(file, num_retries, sleep_duration): Then just call this everywhere you need to. Could even nuke this whole `RemoveTempFile` method. http://reviews.llvm.org/D18912

Re: [Lldb-commits] [PATCH] D18912: sleep and retry on failure to delete temp file in tests

2016-04-08 Thread Zachary Turner via lldb-commits
zturner added inline comments. Comment at: packages/Python/lldbsuite/test/lldbtest.py:1994 @@ +1993,3 @@ +# failure and retry. +def remove_file(file, num_retries = 1, sleep_duration = 0.5): +while True: I think the default for `num_retries` should be 0. Usual

<    15   16   17   18   19   20   21   22   23   24   >