Re: [Lldb-commits] [PATCH] D17363: Add SymbolFilePDB with basic support for line tables.

2016-02-18 Thread Greg Clayton via lldb-commits
clayborg requested changes to this revision. clayborg added a comment. This revision now requires changes to proceed. So the main issue is to fix the: uint32_t SymbolFilePDB::ResolveSymbolContext(const lldb_private::FileSpec &file_spec, uint32_t line, bool check_inlines,

Re: [Lldb-commits] [PATCH] D17420: Don't use an atexit handler for cleaning up process specific temp dir

2016-02-18 Thread Greg Clayton via lldb-commits
clayborg accepted this revision. clayborg added a comment. The HostInfoBase::Initialize() and HostInfoBase::Terminate() might be good places for your PDB calls like ::CoUninitialize(); to be placed... http://reviews.llvm.org/D17420 ___ lldb-commits

Re: [Lldb-commits] [PATCH] D17363: Add SymbolFilePDB with basic support for line tables.

2016-02-18 Thread Greg Clayton via lldb-commits
clayborg added a comment. There are problems with the source file IDs you are using as they currently must be indexes into the compile unit's support files. See inline comments for more details. Comment at: source/Plugins/SymbolFile/PDB/SymbolFilePDB.cpp:146 @@ +145,3 @@ + +

Re: [Lldb-commits] [PATCH] D17363: Add SymbolFilePDB with basic support for line tables.

2016-02-19 Thread Greg Clayton via lldb-commits
clayborg added a comment. General things to know about SymbolFiles: - We use SymbolContext objects to refer to a specific symbol context: module, compile unit, function, deepest block, line entry and symbol. - A load address should produce 1 symbol context. Never more. - A file address can produ

Re: [Lldb-commits] [PATCH] D17449: Handle the case when a variable is only valid in part of the enclosing scope

2016-02-19 Thread Greg Clayton via lldb-commits
clayborg requested changes to this revision. clayborg added a comment. This revision now requires changes to proceed. DWARF already has support for this using location lists. I would rather see this done by having the DWARF parser modify the DWARF expression to be a location list based. I don't

Re: [Lldb-commits] [PATCH] D17450: Add support for handling absolute symbols in ELF

2016-02-19 Thread Greg Clayton via lldb-commits
clayborg requested changes to this revision. clayborg added a comment. This revision now requires changes to proceed. We should probably make it such that if a section has the type eSectionTypeAbsoluteAddress that we do the right thing inside the following functions: Section::GetLoadBaseAddress

Re: [Lldb-commits] [PATCH] D17363: Add SymbolFilePDB with basic support for line tables.

2016-02-19 Thread Greg Clayton via lldb-commits
clayborg requested changes to this revision. clayborg added a comment. This revision now requires changes to proceed. So your LineTable::Entry objects that you create are still invalid since you didn't implement the support files. All comments became unaligned but you did comment that: > In Com

Re: [Lldb-commits] [PATCH] D17449: Handle the case when a variable is only valid in part of the enclosing scope

2016-02-22 Thread Greg Clayton via lldb-commits
clayborg added a comment. I would rather do this by modifying the expression locations if at all possible. I would like to not having to modify each variable to contain a RangeList as this is extra data per variable. I would be fine if we just add a new enumeration to the DWARFExpression like S

Re: [Lldb-commits] [PATCH] D17501: Fix test for homogeneity in case of aggregate consisting of containerized vector types

2016-02-22 Thread Greg Clayton via lldb-commits
clayborg accepted this revision. clayborg added a comment. This revision is now accepted and ready to land. Looks fine to me. http://reviews.llvm.org/D17501 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mail

Re: [Lldb-commits] [PATCH] D17535: [LLDB][MIPS] Single step atomic sequences

2016-02-23 Thread Greg Clayton via lldb-commits
clayborg resigned from this revision. clayborg edited reviewers, added: jingham; removed: clayborg. clayborg added a comment. Looks good to me, but I think Jim Ingham should have a look in case he has anything to add since Jim is the master or stepping. Repository: rL LLVM http://reviews.llv

Re: [Lldb-commits] [PATCH] D17449: Handle the case when a variable is only valid in part of the enclosing scope

2016-02-23 Thread Greg Clayton via lldb-commits
clayborg added a comment. In http://reviews.llvm.org/D17449#359717, @tberghammer wrote: > We have 2 (+1) independent dimension here: > > 1. List of ranges where the variable is in scope > 2. List of ranges where the variable is available > 3. Format of the location list (it is more of an implemen

Re: [Lldb-commits] [PATCH] D17449: Handle the case when a variable is only valid in part of the enclosing scope

2016-02-23 Thread Greg Clayton via lldb-commits
clayborg added a comment. In http://reviews.llvm.org/D17449#359874, @tberghammer wrote: > I can live with that but I still think the scope information belongs to the > variable and not to the DWARF expression representing it's location. As far > as I see keeping the information inside the varia

[Lldb-commits] [lldb] r261768 - Removed unused functions.

2016-02-24 Thread Greg Clayton via lldb-commits
Author: gclayton Date: Wed Feb 24 14:47:13 2016 New Revision: 261768 URL: http://llvm.org/viewvc/llvm-project?rev=261768&view=rev Log: Removed unused functions. Modified: lldb/trunk/tools/debugserver/source/MacOSX/MachTask.h lldb/trunk/tools/debugserver/source/MacOSX/MachTask.mm Modifie

[Lldb-commits] [lldb] r261812 - Fix "target modules add -s " to work if the file doesn't exist locally on the current machine.

2016-02-24 Thread Greg Clayton via lldb-commits
Author: gclayton Date: Wed Feb 24 18:56:47 2016 New Revision: 261812 URL: http://llvm.org/viewvc/llvm-project?rev=261812&view=rev Log: Fix "target modules add -s " to work if the file doesn't exist locally on the current machine. Modified: lldb/trunk/source/Commands/CommandObjectTarget.cp

Re: [Lldb-commits] [PATCH] D17604: Add support for DW_OP_push_object_address in dwarf expressions

2016-02-25 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/D17604 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/li

Re: [Lldb-commits] [PATCH] D17616: Add a set of new plugins to handle Java debugging

2016-02-25 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/D17616 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/li

[Lldb-commits] [lldb] r261950 - Fix all of the unannotated switch cases to annotate the fall through or do the right thing and break.

2016-02-25 Thread Greg Clayton via lldb-commits
Author: gclayton Date: Thu Feb 25 19:20:20 2016 New Revision: 261950 URL: http://llvm.org/viewvc/llvm-project?rev=261950&view=rev Log: Fix all of the unannotated switch cases to annotate the fall through or do the right thing and break. Modified: lldb/trunk/source/Core/ArchSpec.cpp lldb

[Lldb-commits] [lldb] r262040 - The IOHandlerProcessSTDIO is the _only_ IOHandler that gets pushed and popped from functions that are run due to something that is NOT input from the user. All other IO

2016-02-26 Thread Greg Clayton via lldb-commits
Author: gclayton Date: Fri Feb 26 11:36:44 2016 New Revision: 262040 URL: http://llvm.org/viewvc/llvm-project?rev=262040&view=rev Log: The IOHandlerProcessSTDIO is the _only_ IOHandler that gets pushed and popped from functions that are run due to something that is NOT input from the user. All o

Re: [Lldb-commits] [PATCH] D17618: Improve looking up functions with equivalent mangled names.

2016-02-26 Thread Greg Clayton via lldb-commits
clayborg resigned from this revision. clayborg removed a reviewer: clayborg. clayborg added a comment. Sean should be the one to OK this. http://reviews.llvm.org/D17618 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/

[Lldb-commits] [lldb] r262053 - Make sure the Target, Process and Thread GetGlobalProperties() static methods are thread safe.

2016-02-26 Thread Greg Clayton via lldb-commits
Author: gclayton Date: Fri Feb 26 13:38:18 2016 New Revision: 262053 URL: http://llvm.org/viewvc/llvm-project?rev=262053&view=rev Log: Make sure the Target, Process and Thread GetGlobalProperties() static methods are thread safe. Modified: lldb/trunk/source/Target/Process.cpp lldb/tru

[Lldb-commits] [lldb] r262055 - Make sure to #include for the std::atomic that was recently added.

2016-02-26 Thread Greg Clayton via lldb-commits
Author: gclayton Date: Fri Feb 26 13:41:49 2016 New Revision: 262055 URL: http://llvm.org/viewvc/llvm-project?rev=262055&view=rev Log: Make sure to #include for the std::atomic that was recently added. Modified: lldb/trunk/source/Target/Process.cpp Modified: lldb/trunk/source/Target/Proce

Re: [Lldb-commits] [PATCH] D17363: Add SymbolFilePDB with basic support for line tables.

2016-02-26 Thread Greg Clayton via lldb-commits
> On Feb 26, 2016, at 2:49 PM, Zachary Turner wrote: > > > > On Thu, Feb 18, 2016 at 6:16 PM Greg Clayton wrote: > > > Just to make sure I understand, is it safe to say that: > > > > If check_inlines is false, sc_list should return with exactly 1 > > SymbolContext with m_comp_unit set to th

[Lldb-commits] [lldb] r262090 - Make LLDB safer to use with respect to the global destructor chain.

2016-02-26 Thread Greg Clayton via lldb-commits
Author: gclayton Date: Fri Feb 26 17:20:08 2016 New Revision: 262090 URL: http://llvm.org/viewvc/llvm-project?rev=262090&view=rev Log: Make LLDB safer to use with respect to the global destructor chain. Modified: lldb/trunk/source/Target/Process.cpp lldb/trunk/source/Target/Target.cpp

Re: [Lldb-commits] [PATCH] D17363: Add SymbolFilePDB with basic support for line tables.

2016-02-26 Thread Greg Clayton via lldb-commits
> On Feb 26, 2016, at 3:22 PM, Zachary Turner wrote: > > > > On Fri, Feb 26, 2016 at 3:16 PM Greg Clayton wrote: > > > On Feb 26, 2016, at 2:49 PM, Zachary Turner wrote: > > > I'm coming back around to this now. What happens if check_inlines is > > False, but the FileSpec is a header fil

Re: [Lldb-commits] [PATCH] D17363: Add SymbolFilePDB with basic support for line tables.

2016-02-29 Thread Greg Clayton via lldb-commits
> On Feb 26, 2016, at 3:33 PM, Zachary Turner wrote: > > Ok, so back to check_inlines. I realized after I hit send that the > explanation I had written out is exactly what I thought I had to do for > check_inlines == true. > > I guess a concrete example would make it clearer. If I have th

Re: [Lldb-commits] [PATCH] D17719: Track expression language from one place in ClangExpressionParser

2016-02-29 Thread Greg Clayton via lldb-commits
clayborg resigned from this revision. clayborg removed a reviewer: clayborg. clayborg added a comment. I will let Sean review this one as the expression parser is his area of expertise. http://reviews.llvm.org/D17719 ___ lldb-commits mailing list l

Re: [Lldb-commits] [PATCH] D17710: Simplify GetGlobalProperties functions of Thread/Process/Target

2016-02-29 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 to me, commit when you know this will work with MSVC versions you need. All other platforms will be good to go. http://reviews.llvm.org/D17710 __

Re: [Lldb-commits] [PATCH] D17724: Replace getopt with llvm::cl in lldb driver

2016-02-29 Thread Greg Clayton via lldb-commits
clayborg added a comment. As long as both long and short options are still supported? Can you still type any of: - --arch=x86_64 - --arch x86_64 - -arch=x86_64 - -arch x86_64 - -ax86_64 - -a x86_64 Are we able to track which options can be used with other options with the llvm solution? I didn

Re: [Lldb-commits] [PATCH] D17724: Replace getopt with llvm::cl in lldb driver

2016-02-29 Thread Greg Clayton via lldb-commits
clayborg added a comment. In http://reviews.llvm.org/D17724#364454, @zturner wrote: > long and short options are supported, but the one I'm not sure about is the > case where you use a short option with no space. Your example "-ax86_64" > might not work. It might, just that it should be teste

Re: [Lldb-commits] [PATCH] D17363: Add SymbolFilePDB with basic support for line tables.

2016-02-29 Thread Greg Clayton via lldb-commits
You shouldn't have to do any of this. There should be a 1 to 1 mapping between a Module and a SymbolVendor which has a single SymbolFile. My guess is that you should just return: kAllAbilities for SymbolFilePDB::CalculateAbilities (). Try that and let me know how this goes. These abilities are

Re: [Lldb-commits] [PATCH] D17363: Add SymbolFilePDB with basic support for line tables.

2016-03-01 Thread Greg Clayton via lldb-commits
clayborg requested changes to this revision. clayborg added a comment. This revision now requires changes to proceed. One general comment is the use of "auto". Although it makes the code shorter, it does make it quite a bit less readable. I will leave the decision to you since this is your code,

Re: [Lldb-commits] [PATCH] D17363: Add SymbolFilePDB with basic support for line tables.

2016-03-01 Thread Greg Clayton via lldb-commits
You don't add plug-in specify unique_ptr and shared_ptr definitions. You would put these in SymbolFilePDB.h only. > On Mar 1, 2016, at 10:51 AM, Jim Ingham wrote: > > There's an lldb-private-forward.h that you can use for this purpose if you > wish. > > Jim > >> On Mar 1, 2016, at 10:32 AM,

Re: [Lldb-commits] [PATCH] D17363: Add SymbolFilePDB with basic support for line tables.

2016-03-01 Thread Greg Clayton via lldb-commits
You could add a test to that grabs functions bounds, once you implement functions, and then lookup each address inside of a function and make sure each one has a file and line. This might fall down for complex examples, but we also ran into the Swift compiler saying a function went from 0x1000-0

Re: [Lldb-commits] [PATCH] D17724: Replace getopt with llvm::cl in lldb driver

2016-03-02 Thread Greg Clayton via lldb-commits
clayborg requested changes to this revision. clayborg added a comment. This revision now requires changes to proceed. So this is nice that you cleaned up this one place where we can use LLVM's option parsing stuff, but it now makes the driver inconsistent with the rest of LLDB. It also makes it

Re: [Lldb-commits] [PATCH] D17724: Replace getopt with llvm::cl in lldb driver

2016-03-02 Thread Greg Clayton via lldb-commits
clayborg added a comment. Our current consistent way of parsing options is to use getopt_long() everywhere. http://reviews.llvm.org/D17724 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb

Re: [Lldb-commits] [PATCH] D17363: Add SymbolFilePDB with basic support for line tables.

2016-03-02 Thread Greg Clayton via lldb-commits
clayborg accepted this revision. clayborg added a comment. This revision is now accepted and ready to land. You are right. I am slowly seeing that PDB was designed well to be consumed as a user would want to, not compressed to the point of obfuscation and very difficult to extract data from like

Re: [Lldb-commits] [PATCH] D17363: Add SymbolFilePDB with basic support for line tables.

2016-03-02 Thread Greg Clayton via lldb-commits
clayborg requested changes to this revision. clayborg added a comment. This revision now requires changes to proceed. As long as you don't mind your last line entry potentially being really large because it isn't terminated? (lldb) target create D:\src\llvm\tools\lldb\unittests\SymbolFile\PDB

Re: [Lldb-commits] [PATCH] D17363: Add SymbolFilePDB with basic support for line tables.

2016-03-02 Thread Greg Clayton via lldb-commits
clayborg accepted this revision. clayborg added a comment. This revision is now accepted and ready to land. I guess you already tackled the termination entry! That is exactly what I wanted to see... Sounds like line tables are done! http://reviews.llvm.org/D17363

Re: [Lldb-commits] [PATCH] D17363: Add SymbolFilePDB with basic support for line tables.

2016-03-02 Thread Greg Clayton via lldb-commits
clayborg added a comment. The empty line signifies that the previous entry was a termination entry. http://reviews.llvm.org/D17363 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Re: [Lldb-commits] [PATCH] D17363: Add SymbolFilePDB with basic support for line tables.

2016-03-02 Thread Greg Clayton via lldb-commits
This is already fixed. Update your sources and let us know if things are working. > On Mar 2, 2016, at 5:10 PM, Ying Chen wrote: > > chying added a subscriber: chying. > chying added a comment. > > Seems this patch breaks OSX build. I guess the new files were not added to > xcode project file

Re: [Lldb-commits] [PATCH] D17363: Add SymbolFilePDB with basic support for line tables.

2016-03-02 Thread Greg Clayton via lldb-commits
clayborg added a subscriber: clayborg. clayborg added a comment. This is already fixed. Update your sources and let us know if things are working. http://reviews.llvm.org/D17363 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists

Re: [Lldb-commits] [PATCH] D17724: Replace getopt with llvm::cl in lldb driver

2016-03-03 Thread Greg Clayton via lldb-commits
clayborg added a comment. Feel free to check this in a branch if you want to keep it around for when you later work on this so you don't lose the changes? http://reviews.llvm.org/D17724 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http

Re: [Lldb-commits] [PATCH] D17724: Replace getopt with llvm::cl in lldb driver

2016-03-03 Thread Greg Clayton via lldb-commits
> On Mar 3, 2016, at 12:33 PM, Jim Ingham wrote: > > >> On Mar 2, 2016, at 10:18 AM, Greg Clayton wrote: >> >> So this is nice that you cleaned up this one place where we can use LLVM's >> option parsing stuff, but it now makes the driver inconsistent with the rest >> of LLDB. It also make

Re: [Lldb-commits] [PATCH] D17897: Support floating point values in 128-bit SSE vector registers

2016-03-08 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. Repository: rL LLVM http://reviews.llvm.org/D17897 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm

Re: [Lldb-commits] [PATCH] D17970: Implement ObjectFilePECOFF::GetEntryPointAddress.

2016-03-08 Thread Greg Clayton via lldb-commits
clayborg requested changes to this revision. clayborg added a comment. This revision now requires changes to proceed. ObjectFilePECOFF::GetEntryPointAddress() is not implemented correctly. See inlined comments. Comment at: source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp:8

Re: [Lldb-commits] [PATCH] D17970: Implement ObjectFilePECOFF::GetEntryPointAddress.

2016-03-08 Thread Greg Clayton via lldb-commits
clayborg added a comment. lldb_private::Address is a section offset address class. We use section offset addresses everywhere. We also have the notion of three types of addresses: file address, load address and host address. File addresses are virtual addresses as they are found in the object f

Re: [Lldb-commits] [PATCH] D18008: [DWARFASTParserClang] Start with member offset of 0 for members of union types.

2016-03-09 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/D18008 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/li

Re: [Lldb-commits] [PATCH] D18005: Fixed ValueObject::GetExpressionPath() for paths including anonymous struct/union

2016-03-09 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: packages/Python/lldbsuite/test/functionalities/expression_path/TestExpressionPath.py:44-46 @@ +43,4 @@ +

Re: [Lldb-commits] [PATCH] D18005: Fixed ValueObject::GetExpressionPath() for paths including anonymous struct/union

2016-03-09 Thread Greg Clayton via lldb-commits
clayborg accepted this revision. clayborg added a comment. This revision is now accepted and ready to land. Looks fine to me. Repository: rL LLVM http://reviews.llvm.org/D18005 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://list

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

2016-03-10 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/D18044 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/li

Re: [Lldb-commits] [PATCH] D18050: Fixed MemoryCache L1 cache flush

2016-03-10 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. Repository: rL LLVM http://reviews.llvm.org/D18050 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm

[Lldb-commits] [PATCH] D18057: Fixed an issue where python would always use stdin, stdout and stderr

2016-03-10 Thread Greg Clayton via lldb-commits
clayborg created this revision. clayborg added a reviewer: zturner. clayborg added a subscriber: lldb-commits. After the Python 3 fixes the interactive python interpreter stopped working in Xcode. The issue was the python interpreter tried to adopt the top IOHandler file handles, but it failed d

[Lldb-commits] [lldb] r263161 - Fixed the python interpreter so that it correctly inherits the top IOHandler's files instead of always using stdin/out/err.

2016-03-10 Thread Greg Clayton via lldb-commits
Author: gclayton Date: Thu Mar 10 14:49:32 2016 New Revision: 263161 URL: http://llvm.org/viewvc/llvm-project?rev=263161&view=rev Log: Fixed the python interpreter so that it correctly inherits the top IOHandler's files instead of always using stdin/out/err. Removed lldb_private::File::Duplicate

Re: [Lldb-commits] [PATCH] D18057: Fixed an issue where python would always use stdin, stdout and stderr

2016-03-10 Thread Greg Clayton via lldb-commits
clayborg closed this revision. clayborg added a comment. Submitted with SVN revision 263161. http://reviews.llvm.org/D18057 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Re: [Lldb-commits] [PATCH] D17957: Expression evaluation for overloaded C functions

2016-03-11 Thread Greg Clayton via lldb-commits
clayborg resigned from this revision. clayborg removed a reviewer: clayborg. clayborg added a comment. I will let Sean Callanan review this one as the expression parser is his area. Repository: rL LLVM http://reviews.llvm.org/D17957 ___ lldb-comm

Re: [Lldb-commits] [PATCH] D18082: [LLDB]{MIPS] Fix TestPlatformProcessConnect.py

2016-03-11 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. Repository: rL LLVM http://reviews.llvm.org/D18082 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm

Re: [Lldb-commits] [PATCH] D18075: Fix deadlock due to thread list locking in 'bt all' with obj-c

2016-03-11 Thread Greg Clayton via lldb-commits
clayborg accepted this revision. clayborg added a comment. Looks good. http://reviews.llvm.org/D18075 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Re: [Lldb-commits] [PATCH] D17957: Expression evaluation for overloaded C functions

2016-03-14 Thread Greg Clayton via lldb-commits
clayborg accepted this revision. Comment at: packages/Python/lldbsuite/test/expression_command/call-overloaded-c-fuction/Makefile:8 @@ +7,2 @@ +clean:: + rm -rf $(wildcard *.o *.d *.dSYM) Maybe we can have a standard clean rule in the main makefiles: stand

[Lldb-commits] [lldb] r263593 - Don't crash if the TypeSP is empty.

2016-03-15 Thread Greg Clayton via lldb-commits
Author: gclayton Date: Tue Mar 15 16:58:28 2016 New Revision: 263593 URL: http://llvm.org/viewvc/llvm-project?rev=263593&view=rev Log: Don't crash if the TypeSP is empty. Modified: lldb/trunk/include/lldb/Symbol/Type.h Modified: lldb/trunk/include/lldb/Symbol/Type.h URL: http://llvm.org/vi

[Lldb-commits] [lldb] r263601 - Fix ClangASTContext::GetFunctionArgumentAtIndex() to not water down the type to the canonical type before handing the type out for the function type.

2016-03-15 Thread Greg Clayton via lldb-commits
Author: gclayton Date: Tue Mar 15 17:43:26 2016 New Revision: 263601 URL: http://llvm.org/viewvc/llvm-project?rev=263601&view=rev Log: Fix ClangASTContext::GetFunctionArgumentAtIndex() to not water down the type to the canonical type before handing the type out for the function type. Modified:

[Lldb-commits] [lldb] r263602 - Only try to load the OS plug-in after a shared library load if we don't already have one.

2016-03-15 Thread Greg Clayton via lldb-commits
Author: gclayton Date: Tue Mar 15 17:44:07 2016 New Revision: 263602 URL: http://llvm.org/viewvc/llvm-project?rev=263602&view=rev Log: Only try to load the OS plug-in after a shared library load if we don't already have one. Modified: lldb/trunk/source/Target/Process.cpp Modified: lldb/t

[Lldb-commits] [lldb] r263830 - Added a break statement that was needed. Caught by clang's unannotated case fall through warning.

2016-03-18 Thread Greg Clayton via lldb-commits
Author: gclayton Date: Fri Mar 18 15:53:35 2016 New Revision: 263830 URL: http://llvm.org/viewvc/llvm-project?rev=263830&view=rev Log: Added a break statement that was needed. Caught by clang's unannotated case fall through warning. Modified: lldb/trunk/tools/lldb-mi/MICmnLLDBDebuggerHandleE

Re: [Lldb-commits] [PATCH] D18228: Make File option flags consistent for Python API

2016-03-18 Thread Greg Clayton via lldb-commits
clayborg requested changes to this revision. clayborg added a comment. This revision now requires changes to proceed. Looks great, thanks for catching and fixing this. Can we add a test for this so we don't regress? http://reviews.llvm.org/D18228 _

[Lldb-commits] [lldb] r263824 - Fixed a bug where DW_AT_start_scope would fall through to DW_AT_artificial in SymbolFileDWARF::ParseVariableDIE(). This was caught by the clang warning that catches una

2016-03-18 Thread Greg Clayton via lldb-commits
Author: gclayton Date: Fri Mar 18 15:33:49 2016 New Revision: 263824 URL: http://llvm.org/viewvc/llvm-project?rev=263824&view=rev Log: Fixed a bug where DW_AT_start_scope would fall through to DW_AT_artificial in SymbolFileDWARF::ParseVariableDIE(). This was caught by the clang warning that catc

Re: [Lldb-commits] [PATCH] D18228: Make File option flags consistent for Python API

2016-03-18 Thread Greg Clayton via lldb-commits
clayborg requested changes to this revision. This revision now requires changes to proceed. Comment at: source/Host/common/File.cpp:48 @@ -47,3 +47,3 @@ } -else if (options & File::eOpenOptionWrite) +else { This change isn't neede

Re: [Lldb-commits] [PATCH] D18228: Make File option flags consistent for Python API

2016-03-19 Thread Greg Clayton via lldb-commits
clayborg added a comment. Just to be clear in the code we should set the write flag and not make any assumptions. So then the first diff isn't needed and only PythonDataObjects.cpp needs to change. http://reviews.llvm.org/D18228 ___ lldb-commits m

Re: [Lldb-commits] [PATCH] D18059: Add IR fixups for RenderScript ABI mismatch between ARMV7 frontend and x86 backend

2016-03-19 Thread Greg Clayton via lldb-commits
clayborg resigned from this revision. clayborg edited reviewers, added: spyffe; removed: clayborg. clayborg added a comment. Sean Callanan would have more expertise in this area. 1. List Item http://reviews.llvm.org/D18059 ___ lldb-commits mailing

[Lldb-commits] [lldb] r263826 - Fixed an case fall through that wasn't meant to happen. Caught by clang's unannotated case fall through warning.

2016-03-19 Thread Greg Clayton via lldb-commits
Author: gclayton Date: Fri Mar 18 15:36:30 2016 New Revision: 263826 URL: http://llvm.org/viewvc/llvm-project?rev=263826&view=rev Log: Fixed an case fall through that wasn't meant to happen. Caught by clang's unannotated case fall through warning. Modified: lldb/trunk/source/Plugins/SymbolFi

Re: [Lldb-commits] [PATCH] D17970: Implement ObjectFilePECOFF::GetEntryPointAddress.

2016-03-19 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/D17970 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/li

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

2016-03-21 Thread Greg Clayton via lldb-commits
clayborg added a comment. I need to speak with you about this and I do have objections. I made a ton of comments inline and as I started to understand what you were trying to do many objections changed, but I still have them. There is a ton of stuff in there and I would like to speak with you o

Re: [Lldb-commits] [PATCH] D18334: [JITLoaderGDB] Pack the jit entry struct according to the target arch.

2016-03-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 fine. One other alternative is to get the type from the program if it exists in the debug info and explore the struct using ValueObject. This would get you out of the fixed alignment

Re: [Lldb-commits] [PATCH] D18335: Fix for missing prompt on Windows

2016-03-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 fine. http://reviews.llvm.org/D18335 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/li

Re: [Lldb-commits] [PATCH] D18335: Fix for missing prompt on Windows

2016-03-21 Thread Greg Clayton via lldb-commits
clayborg added a comment. No, this fixed the problem of printing the "(lldb) " prompt first, then being asked to print async text, then not refreshing the prompt. Not to say there won't still be a race, but this particular problem is what we are fixing. http://reviews.llvm.org/D18335 __

Re: [Lldb-commits] [PATCH] D18335: Fix for missing prompt on Windows

2016-03-21 Thread Greg Clayton via lldb-commits
clayborg added a comment. It would be nice to clear the line though. What _should_ happen is the "(lldb) " prompt is cleared by clearing text to the start of where the prompt was printed, then display the async text and refresh the prompt. So this fix is a bit hacky in that it isn't trying to s

Re: [Lldb-commits] [PATCH] D18335: Fix for missing prompt on Windows

2016-03-21 Thread Greg Clayton via lldb-commits
clayborg added a comment. this could still be the same bug. So if this doesn't fix things for you on windows, then this bug isn't quite fixed. Ted, are you seeing the same thing? amccarth, can you attach some output to see what you are seeing? http://reviews.llvm.org/D18335

Re: [Lldb-commits] [PATCH] D18335: Fix for missing prompt on Windows

2016-03-21 Thread Greg Clayton via lldb-commits
clayborg added a comment. Seems like it would be nice to get the prompt clearing working... http://reviews.llvm.org/D18335 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

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

2016-03-22 Thread Greg Clayton via lldb-commits
clayborg requested changes to this revision. clayborg added a comment. This revision now requires changes to proceed. After our last conversation I must have missed that both Go and Java need to be able to provide custom DWARF parsing. Any language, and any TypeSystem, should be able to provide

Re: [Lldb-commits] [PATCH] D18379: [JITLoaderGDB] Read jit entry struct manually.

2016-03-22 Thread Greg Clayton via lldb-commits
clayborg requested changes to this revision. clayborg added a comment. This revision now requires changes to proceed. One thing to note: don't use Process::DoReadMemory(), it doesn't cache data and it will always result in a read memory packet going to GDB server if you are using lldb-server and

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

2016-03-22 Thread Greg Clayton via lldb-commits
clayborg added a comment. No. Keep GetDWARFParser() on TypeSystem and all that code as is. You shouldn't need to add GetPDBParser() to TypeSystem as you should get a type system for language from within your SymbolFilePDB (with a language like C or C++) and then make a PDBParser with a referenc

Re: [Lldb-commits] [PATCH] D18379: [JITLoaderGDB] Read jit entry struct manually.

2016-03-23 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/JITLoader/GDB/JITLoaderGDB.cpp:110-119 @@ -80,3 +109,12 @@ -} // anonymous namespace end +template +

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

2016-03-23 Thread Greg Clayton via lldb-commits
clayborg added a comment. I In http://reviews.llvm.org/D18381#381457, @zturner wrote: > 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 i

Re: [Lldb-commits] [PATCH] D18379: [JITLoaderGDB] Read jit entry struct manually.

2016-03-23 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. Thanks for all the fixes. http://reviews.llvm.org/D18379 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.l

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

2016-03-23 Thread Greg Clayton via lldb-commits
clayborg requested changes to this revision. clayborg added a comment. This revision now requires changes to proceed. A few things in inlined comments, but this is very close. Comment at: source/Plugins/SymbolFile/DWARF/DWARFASTParser.h:36 @@ -35,3 +35,3 @@ virtual bool -

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

2016-03-23 Thread Greg Clayton via lldb-commits
clayborg added a comment. I will need to run the MacOSX test suite on this before I can give it the OK. I won't be able to do this today, but might be able to get to it tomorrow. If you can run the MacOSX test suite, let me know. http://reviews.llvm.org/D18381 __

Re: [Lldb-commits] [PATCH] D18335: Fix for missing prompt on Windows

2016-03-24 Thread Greg Clayton via lldb-commits
clayborg added a comment. Sounds good. This code is very tricky and we need to find a way to control this so that these issues never happen. When we do this, it will hopefully fix these kinds of issues for everyone. Thanks for taking the extra time to look into it and at least you have made the

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

2016-03-24 Thread Greg Clayton via lldb-commits
You you building with Xcode? You should be building by checking out lldb at the top level, then typing: % xcodebuild -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 h

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

2016-03-24 Thread Greg Clayton 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 lldb-tool, 64-bit, > and hit Product

[Lldb-commits] [lldb] r264346 - Get rid of a global constructor that was causing a warning on MacOSX and make the Timer safe to use after the main threads global destructor chain is called.

2016-03-24 Thread Greg Clayton via lldb-commits
Author: gclayton Date: Thu Mar 24 16:46:47 2016 New Revision: 264346 URL: http://llvm.org/viewvc/llvm-project?rev=264346&view=rev Log: Get rid of a global constructor that was causing a warning on MacOSX and make the Timer safe to use after the main threads global destructor chain is called. Mo

[Lldb-commits] [lldb] r264347 - Get rid of two global constructors by making things static variables in the only function that uses these variables.

2016-03-24 Thread Greg Clayton via lldb-commits
Author: gclayton Date: Thu Mar 24 16:48:10 2016 New Revision: 264347 URL: http://llvm.org/viewvc/llvm-project?rev=264347&view=rev Log: Get rid of two global constructors by making things static variables in the only function that uses these variables. Modified: lldb/trunk/source/Plugins/La

[Lldb-commits] [lldb] r264348 - Get rid of a global constructor and also make this code safe to use after the global destructor chain has been run on the main thread.

2016-03-24 Thread Greg Clayton via lldb-commits
Author: gclayton Date: Thu Mar 24 16:49:22 2016 New Revision: 264348 URL: http://llvm.org/viewvc/llvm-project?rev=264348&view=rev Log: Get rid of a global constructor and also make this code safe to use after the global destructor chain has been run on the main thread. Modified: lldb/trunk/

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

2016-03-24 Thread Greg Clayton via lldb-commits
clayborg added a comment. What does some sample output of this look like? I can't remember what module->Dump(...) does. http://reviews.llvm.org/D18464 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/l

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

2016-03-24 Thread Greg Clayton via lldb-commits
You might need to set your workspace settings for the lldb.xcworkspace as follows: File -> Workspace Settings... Derived Data: Workspace-relative Location and use the value "build" for it Then click the "Advanced..." button and select "Legacy". The test suite automatically looks in the lldb

[Lldb-commits] [lldb] r264361 - Ignore global constructor warning in clang.

2016-03-24 Thread Greg Clayton via lldb-commits
Author: gclayton Date: Thu Mar 24 18:50:03 2016 New Revision: 264361 URL: http://llvm.org/viewvc/llvm-project?rev=264361&view=rev Log: Ignore global constructor warning in clang. Modified: lldb/trunk/source/Plugins/ExpressionParser/Clang/ClangExpressionParser.cpp Modified: lldb/trunk/source

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

2016-03-25 Thread Greg Clayton via lldb-commits
clayborg requested changes to this revision. clayborg added a comment. Seems like we need to just add the following to the API: void SetImmediateOutputFile (FILE *fh, bool transfer_ownership); void SetImmediateErrorFile (FILE *fh, bool transfer_ownership); This should solve our proble

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

2016-03-25 Thread Greg Clayton via lldb-commits
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 with those steps. > > The patch should apply cleanly at tip. Later this week I can try to nuke my > whole lldb directory and s

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

2016-03-25 Thread Greg Clayton via lldb-commits
clayborg added a comment. We don't necessarily need to expose this new API to swig. We get to pick and choose what we expose to Python in the SBCommandReturnObject.i file. So leave the .i file as is and use %rename to specify "transfer_ownership = true". Will that work? http://reviews.llvm.or

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

2016-03-25 Thread Greg Clayton via lldb-commits
clayborg requested changes to this revision. clayborg added a comment. This revision now requires changes to proceed. I would prefer to do this with overloading if possible. See inlined comments. Comment at: include/lldb/API/SBCommandReturnObject.h:87-91 @@ -86,7 +86,7 @@

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

2016-03-25 Thread Greg Clayton via lldb-commits
clayborg accepted this revision. clayborg added a comment. Looks good. Thanks for taking the time to get this working right. http://reviews.llvm.org/D18459 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailm

[Lldb-commits] [lldb] r264753 - Don't try to call getTypeSize() on a class if it isn't complete as clang will assert and kill the process.

2016-03-29 Thread Greg Clayton via lldb-commits
Author: gclayton Date: Tue Mar 29 12:36:38 2016 New Revision: 264753 URL: http://llvm.org/viewvc/llvm-project?rev=264753&view=rev Log: Don't try to call getTypeSize() on a class if it isn't complete as clang will assert and kill the process. Modified: lldb/trunk/source/Symbol/ClangASTContext

[Lldb-commits] [lldb] r264762 - When creating typedefs, don't call Type::GetName() since that might recursively call "lldb_private::Type::ResolveClangType(lldb_private::Type::ResolveStateTag)" and cau

2016-03-29 Thread Greg Clayton via lldb-commits
Author: gclayton Date: Tue Mar 29 13:22:07 2016 New Revision: 264762 URL: http://llvm.org/viewvc/llvm-project?rev=264762&view=rev Log: When creating typedefs, don't call Type::GetName() since that might recursively call "lldb_private::Type::ResolveClangType(lldb_private::Type::ResolveStateTag)"

<    3   4   5   6   7   8   9   10   11   12   >