[Lldb-commits] [PATCH] D44603: [lldb] Introduce StackFrameRecognizer

2018-10-23 Thread Kuba (Brecka) Mracek via Phabricator via lldb-commits
kubamracek updated this revision to Diff 170809. kubamracek added a comment. Adding class comments, adding IDs to recognizers. https://reviews.llvm.org/D44603 Files: include/lldb/API/SBVariablesOptions.h include/lldb/Interpreter/OptionGroupVariable.h

[Lldb-commits] [PATCH] D48226: [lldb] Remove enableThreadSanitizer from shared Xcode schemes

2018-10-23 Thread Kuba (Brecka) Mracek via Phabricator via lldb-commits
kubamracek added a reviewer: aprantl. kubamracek added a comment. Ping. https://reviews.llvm.org/D48226 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] r345106 - Support nwere versions of the Segger J-Link jtag board software.

2018-10-23 Thread Jason Molenda via lldb-commits
Author: jmolenda Date: Tue Oct 23 16:45:56 2018 New Revision: 345106 URL: http://llvm.org/viewvc/llvm-project?rev=345106=rev Log: Support nwere versions of the Segger J-Link jtag board software. Add support in ProcessGDBRemote::GetGDBServerRegisterInfo for recognizing a generic "arm" architecture

[Lldb-commits] [PATCH] D53094: [pecoff] Implement ObjectFilePECOFF::GetDependedModules()

2018-10-23 Thread Zachary Turner via Phabricator via lldb-commits
zturner added a comment. In https://reviews.llvm.org/D53094#1273556, @asmith wrote: > I think this addresses all the previous comments. Still didn't get a clear answer if the mutex being used needs to be recursive. If it doesn't, perhaps `std::mutex` can be used instead of

[Lldb-commits] [PATCH] D53094: [pecoff] Implement ObjectFilePECOFF::GetDependedModules()

2018-10-23 Thread Aaron Smith via Phabricator via lldb-commits
asmith updated this revision to Diff 170781. https://reviews.llvm.org/D53094 Files: source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.h unittests/ObjectFile/CMakeLists.txt unittests/ObjectFile/PECOFF/CMakeLists.txt

[Lldb-commits] [PATCH] D53094: [pecoff] Implement ObjectFilePECOFF::GetDependedModules()

2018-10-23 Thread Aaron Smith via Phabricator via lldb-commits
asmith added a comment. I think this addresses all the previous comments. https://reviews.llvm.org/D53094 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] r345092 - Remove unused private methods.

2018-10-23 Thread Zachary Turner via lldb-commits
Author: zturner Date: Tue Oct 23 15:15:27 2018 New Revision: 345092 URL: http://llvm.org/viewvc/llvm-project?rev=345092=rev Log: Remove unused private methods. Modified: lldb/trunk/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.h Modified:

[Lldb-commits] [lldb] r345091 - Fix some comments pointed out by Leonard Mosescu.

2018-10-23 Thread Zachary Turner via lldb-commits
Author: zturner Date: Tue Oct 23 15:15:05 2018 New Revision: 345091 URL: http://llvm.org/viewvc/llvm-project?rev=345091=rev Log: Fix some comments pointed out by Leonard Mosescu. These were originally pointed out in D53511 but I forgot to incorporate them in my patch. Modified:

[Lldb-commits] [PATCH] D53616: Don't type-erase the FunctionNameType or TypeClass enums

2018-10-23 Thread Zachary Turner via Phabricator via lldb-commits
zturner created this revision. zturner added reviewers: davide, jingham, clayborg. Herald added a subscriber: JDevlieghere. This is a followup to https://reviews.llvm.org/D53597, with 2 more enums. Assuming that patch is good, I see no reason why this wasn't isn't good as well, but I'm

[Lldb-commits] [lldb] r345086 - Remove unused variable.

2018-10-23 Thread Eric Christopher via lldb-commits
Author: echristo Date: Tue Oct 23 14:55:41 2018 New Revision: 345086 URL: http://llvm.org/viewvc/llvm-project?rev=345086=rev Log: Remove unused variable. Modified: lldb/trunk/source/Plugins/SymbolFile/NativePDB/SymbolFileNativePDB.cpp Modified:

[Lldb-commits] [PATCH] D44603: [lldb] Introduce StackFrameRecognizer

2018-10-23 Thread Jim Ingham via Phabricator via lldb-commits
jingham added a comment. This is good. The addition of the "info" command will be helpful for people trying to debug their recognizers. It's okay to add multiple -s and -n's later - though the fact that you don't allow "apply to all frames" may make us want the ability to provide more than

[Lldb-commits] [PATCH] D53597: Don't type-erase the SymbolContextItem enum

2018-10-23 Thread Jim Ingham via Phabricator via lldb-commits
jingham added a comment. That looks good to me, though you should wait for Greg to weigh in. He might notice something I missed. https://reviews.llvm.org/D53597 ___ lldb-commits mailing list lldb-commits@lists.llvm.org

[Lldb-commits] [PATCH] D44603: [lldb] Introduce StackFrameRecognizer

2018-10-23 Thread Adrian Prantl via Phabricator via lldb-commits
aprantl added inline comments. Comment at: include/lldb/Target/StackFrameRecognizer.h:25 + +class RecognizedStackFrame +: std::enable_shared_from_this { Would you mind adding doxygen comments to each of the new classes to explain what they are good for?

[Lldb-commits] [PATCH] D53597: Don't type-erase the SymbolContextItem enum

2018-10-23 Thread Zachary Turner via Phabricator via lldb-commits
zturner updated this revision to Diff 170737. zturner added a comment. Remove the reference to `llvm/ADT/BitmaskEnu.h` and define the operators ourselves. Also, removed a few casts that got left in. https://reviews.llvm.org/D53597 Files: lldb/include/lldb/Core/Address.h

[Lldb-commits] [PATCH] D53590: Refactor SetBaseClassesForType and DeleteBaseClasses to be more C++'y

2018-10-23 Thread Zachary Turner via Phabricator via lldb-commits
zturner added inline comments. Comment at: lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp:3273-3274 + is_virtual, is_base_of_class); + if (!result) +break; + zturner wrote: > If the result is a `nullptr`, then

[Lldb-commits] [PATCH] D53590: Refactor SetBaseClassesForType and DeleteBaseClasses to be more C++'y

2018-10-23 Thread Zachary Turner via Phabricator via lldb-commits
zturner added inline comments. Comment at: lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp:3273-3274 + is_virtual, is_base_of_class); + if (!result) +break; + If the result is a `nullptr`, then there is no base

[Lldb-commits] [PATCH] D53597: Don't type-erase the SymbolContextItem enum

2018-10-23 Thread Jim Ingham via Phabricator via lldb-commits
jingham added a comment. That would be great! https://reviews.llvm.org/D53597 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [PATCH] D53597: Don't type-erase the SymbolContextItem enum

2018-10-23 Thread Zachary Turner via Phabricator via lldb-commits
zturner added a comment. In https://reviews.llvm.org/D53597#1273087, @jingham wrote: > It would be great not to have to use comments to express what these values > mean. OTOH, having to put in static casts whenever you want to or values > together would be a pain, so if there's no way to do

[Lldb-commits] [PATCH] D53590: Refactor SetBaseClassesForType and DeleteBaseClasses to be more C++'y

2018-10-23 Thread Shafik Yaghmour via Phabricator via lldb-commits
shafik added a comment. +1 for modernizing code! Comment at: lldb/source/Plugins/SymbolFile/DWARF/DWARFASTParserClang.cpp:2262 + // assertion in the call to clang_type.TransferBaseClasses() + for (auto _class : bases) { clang::TypeSourceInfo

[Lldb-commits] [PATCH] D53597: Don't type-erase the SymbolContextItem enum

2018-10-23 Thread Jim Ingham via Phabricator via lldb-commits
jingham added a comment. It would be great not to have to use comments to express what these values mean. OTOH, having to put in static casts whenever you want to or values together would be a pain, so if there's no way to do it without magic, I'm a little less enthused... But on the magic:

[Lldb-commits] [PATCH] D44603: [lldb] Introduce StackFrameRecognizer

2018-10-23 Thread Kuba (Brecka) Mracek via Phabricator via lldb-commits
kubamracek updated this revision to Diff 170724. kubamracek added a comment. Updating patch, addressing most comments. Changed '-m' to '-s'. Added 'frame recognizer info' subcommand. Improved wording in documentation. I didn't add the possibility to specify multiple '-s' and '-n' args. Do you

[Lldb-commits] [lldb] r345069 - Add UdtRecordCompleter.cpp.

2018-10-23 Thread Jason Molenda via lldb-commits
Author: jmolenda Date: Tue Oct 23 12:03:52 2018 New Revision: 345069 URL: http://llvm.org/viewvc/llvm-project?rev=345069=rev Log: Add UdtRecordCompleter.cpp. Modified: lldb/trunk/lldb.xcodeproj/project.pbxproj Modified: lldb/trunk/lldb.xcodeproj/project.pbxproj URL:

[Lldb-commits] [PATCH] D53597: Don't type-erase the SymbolContextItem enum

2018-10-23 Thread Zachary Turner via Phabricator via lldb-commits
zturner created this revision. zturner added reviewers: clayborg, jingham, labath. Herald added subscribers: atanasyan, JDevlieghere, sdardis. When we get the `resolve_scope` parameter from the SB API, it's a `uint32_t`. We then pass it through all of LLDB this way, as a uint32. This is

[Lldb-commits] [PATCH] D53532: [FileSpec] Add VFS support

2018-10-23 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. Back when the FileSystem class was introduced, the idea was that *it* would eventually become the gateway to the real filesystem, and FileSpec would just deal with abstract path manipulation. I still think that is a good idea, particularly in light of this patch. So I

[Lldb-commits] [PATCH] D53590: Refactor SetBaseClassesForType and DeleteBaseClasses to be more C++'y

2018-10-23 Thread Zachary Turner via Phabricator via lldb-commits
zturner created this revision. zturner added reviewers: labath, davide, clayborg. Herald added a subscriber: JDevlieghere. [NFC] Refactor SetBaseClasses and DeleteBaseClasses. We currently had a 2-step process where we had to call SetBaseClassesForType and DeleteBaseClasses. Every

[Lldb-commits] [lldb] r345061 - Skip test with older versions of clang

2018-10-23 Thread Jonas Devlieghere via lldb-commits
Author: jdevlieghere Date: Tue Oct 23 10:49:51 2018 New Revision: 345061 URL: http://llvm.org/viewvc/llvm-project?rev=345061=rev Log: Skip test with older versions of clang This was failing for the bots that build with older clangs:

[Lldb-commits] [lldb] r345055 - Change two methods from const char* to StringRef [NFC].

2018-10-23 Thread Zachary Turner via lldb-commits
Author: zturner Date: Tue Oct 23 10:22:02 2018 New Revision: 345055 URL: http://llvm.org/viewvc/llvm-project?rev=345055=rev Log: Change two methods from const char* to StringRef [NFC]. Modified: lldb/trunk/include/lldb/Symbol/ClangASTContext.h

[Lldb-commits] [PATCH] D53511: [NativePDB] Support type lookup by name

2018-10-23 Thread Zachary Turner via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rLLDB345047: [NativePDB] Add basic support for tag types to the native pdb plugin. (authored by zturner, committed by ). Herald added subscribers: teemperor, abidh. Changed prior to commit:

[Lldb-commits] [lldb] r345047 - [NativePDB] Add basic support for tag types to the native pdb plugin.

2018-10-23 Thread Zachary Turner via lldb-commits
Author: zturner Date: Tue Oct 23 09:37:53 2018 New Revision: 345047 URL: http://llvm.org/viewvc/llvm-project?rev=345047=rev Log: [NativePDB] Add basic support for tag types to the native pdb plugin. This adds support to LLDB for named types (class, struct, union, and enum). This is true cross

[Lldb-commits] [PATCH] D53530: Fix (and improve) the support for C99 variable length array types

2018-10-23 Thread Greg Clayton via Phabricator via lldb-commits
clayborg requested changes to this revision. clayborg added a comment. This revision now requires changes to proceed. Parsing a type shouldn't need an execution context and we shouldn't be re-parsing a type over and over for each frame. We should be encoding the array expression somewhere that

[Lldb-commits] [PATCH] D53511: [NativePDB] Support type lookup by name

2018-10-23 Thread Aleksandr Urakov via Phabricator via lldb-commits
aleksandr.urakov accepted this revision. aleksandr.urakov added a comment. Looks good to me, thank you! https://reviews.llvm.org/D53511 ___ lldb-commits mailing list lldb-commits@lists.llvm.org

Re: [Lldb-commits] [lldb] r344982 - [ValueObject] Stop assuming types are non-zero sized.

2018-10-23 Thread Davide Italiano via lldb-commits
This is a little different. It's not an empty structural type, it's a children with zero size, that has an implicit representation (swift uses tagged bits to represent cases in an enumeration, hence IRGen says the size of the type is zero). I don't think there's any equivalent of this in C++, but

[Lldb-commits] [PATCH] D53140: [LLDB] - Add support for DW_RLE_base_address and DW_RLE_offset_pair entries (.debug_rnglists)

2018-10-23 Thread George Rimar via Phabricator via lldb-commits
grimar added a comment. Ping. https://reviews.llvm.org/D53140 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [PATCH] D53506: [ClangASTContext] Extract VTable pointers from C++ objects

2018-10-23 Thread Aleksandr Urakov via Phabricator via lldb-commits
aleksandr.urakov added a reviewer: zturner. aleksandr.urakov added a comment. In https://reviews.llvm.org/D53506#1270933, @zturner wrote: > So, the point is, just because we don't have access to the info via DIA > doesn't mean we won't have access to the info once the native pdb plugin is >

[Lldb-commits] [PATCH] D53368: [Symbol] Search symbols with name and type in a symbol file

2018-10-23 Thread Aleksandr Urakov via Phabricator via lldb-commits
aleksandr.urakov added a comment. Ok, I'll reimplement this, thanks! Repository: rLLDB LLDB https://reviews.llvm.org/D53368 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [PATCH] D53361: [API] Extend the `SBThreadPlan` interface

2018-10-23 Thread Aleksandr Urakov via Phabricator via lldb-commits
aleksandr.urakov added a comment. Ok, I'll do it, thanks! Repository: rLLDB LLDB https://reviews.llvm.org/D53361 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [PATCH] D53436: [LLDB] - Implement the support for the .debug_loclists section.

2018-10-23 Thread George Rimar via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rLLDB345016: [LLDB] - Implement the support for the .debug_loclists section. (authored by grimar, committed by ). Herald added a subscriber: abidh. Repository: rLLDB LLDB https://reviews.llvm.org/D53436

Re: [Lldb-commits] [lldb] r344982 - [ValueObject] Stop assuming types are non-zero sized.

2018-10-23 Thread Raphael Isemann via lldb-commits
You maybe able to add a test for that in C++: Clang types can have 0 size, the padding from 0 to 1 happens in the CodeGen IIRC. See also this bug: https://bugs.llvm.org/show_bug.cgi?id=31612 - Raphael Am Di., 23. Okt. 2018 um 02:33 Uhr schrieb Davide Italiano via lldb-commits : > > Author: davide

[Lldb-commits] [PATCH] D53375: [PDB] Improve performance of the PDB DIA plugin

2018-10-23 Thread Aleksandr Urakov via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL345013: [PDB] Improve performance of the PDB DIA plugin (authored by aleksandr.urakov, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit:

[Lldb-commits] [lldb] r345013 - [PDB] Improve performance of the PDB DIA plugin

2018-10-23 Thread Aleksandr Urakov via lldb-commits
Author: aleksandr.urakov Date: Tue Oct 23 01:29:17 2018 New Revision: 345013 URL: http://llvm.org/viewvc/llvm-project?rev=345013=rev Log: [PDB] Improve performance of the PDB DIA plugin Summary: This patch improves performance of `SymbolFilePDB` on huge executables in two ways: - cache names of

[Lldb-commits] [PATCH] D53375: [PDB] Improve performance of the PDB DIA plugin

2018-10-23 Thread Aleksandr Urakov via Phabricator via lldb-commits
aleksandr.urakov added a comment. In https://reviews.llvm.org/D53375#1271336, @Hui wrote: > I think parsing types e.g. SymbolFilePDB::ParseTypes also has speed bumps. > Will be good to have them cached too. We are already caching them, see `m_types` field. Repository: rLLDB LLDB