[Lldb-commits] [PATCH] D59562: [SymbolFileDWARF] Introduce DWARFContext

2019-03-19 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere accepted this revision. JDevlieghere added a comment. This revision is now accepted and ready to land. LGTM! CHANGES SINCE LAST ACTION https://reviews.llvm.org/D59562/new/ https://reviews.llvm.org/D59562 ___ lldb-commits mailing

[Lldb-commits] [PATCH] D59562: [SymbolFileDWARF] Introduce DWARFContext

2019-03-19 Thread Zachary Turner via Phabricator via lldb-commits
zturner updated this revision to Diff 191421. zturner added a comment. I went ahead and just removed the const `get` version entirely, while changing the other function name to `getOrLoad` as you suggested. I have another patch while I'll upload after this one that converts all of the rest of

[Lldb-commits] [PATCH] D59562: [SymbolFileDWARF] Introduce DWARFContext

2019-03-19 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere added inline comments. Comment at: lldb/source/Plugins/SymbolFile/DWARF/DWARFContext.h:30 + + const DWARFDataExtractor *maybeLoadArangesData(); + zturner wrote: > JDevlieghere wrote: > > Why do we need these two methods? I presume it's because one

[Lldb-commits] [PATCH] D59562: [SymbolFileDWARF] Introduce DWARFContext

2019-03-19 Thread Zachary Turner via Phabricator via lldb-commits
zturner marked an inline comment as done. zturner added inline comments. Comment at: lldb/source/Plugins/SymbolFile/DWARF/DWARFContext.h:30 + + const DWARFDataExtractor *maybeLoadArangesData(); + JDevlieghere wrote: > Why do we need these two methods? I presume

[Lldb-commits] [PATCH] D59562: [SymbolFileDWARF] Introduce DWARFContext

2019-03-19 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere added inline comments. Comment at: lldb/source/Plugins/SymbolFile/DWARF/DWARFContext.h:30 + + const DWARFDataExtractor *maybeLoadArangesData(); + Why do we need these two methods? I presume it's because one does work and the other doesn't? If I

[Lldb-commits] [PATCH] D59562: [SymbolFileDWARF] Introduce DWARFContext

2019-03-19 Thread Zachary Turner via Phabricator via lldb-commits
zturner created this revision. zturner added reviewers: JDevlieghere, aprantl, clayborg. Herald added subscribers: jdoerfert, mgorny. LLVM's DWARF parsing library has a class called `DWARFContext` which holds all of the various DWARF data sections and lots of other information. LLDB's on the

[Lldb-commits] [lldb] r356509 - Delete more dead code.

2019-03-19 Thread Zachary Turner via lldb-commits
Author: zturner Date: Tue Mar 19 13:08:56 2019 New Revision: 356509 URL: http://llvm.org/viewvc/llvm-project?rev=356509=rev Log: Delete more dead code. All of this is code that is unreferenced. Removing as much of this as possible makes it more easy to determine what functionality is missing

[Lldb-commits] [lldb] r356495 - Remove some dead DWARF enum -> string conversion functions.

2019-03-19 Thread Zachary Turner via lldb-commits
Author: zturner Date: Tue Mar 19 11:32:43 2019 New Revision: 356495 URL: http://llvm.org/viewvc/llvm-project?rev=356495=rev Log: Remove some dead DWARF enum -> string conversion functions. Modified: lldb/trunk/source/Plugins/SymbolFile/DWARF/DWARFDefines.cpp

[Lldb-commits] [PATCH] D59276: Delete dead code

2019-03-19 Thread Zachary Turner via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rLLDB356490: Delete dead code. (authored by zturner, committed by ). Herald added a project: LLDB. Changed prior to commit: https://reviews.llvm.org/D59276?vs=190350=191356#toc Repository: rLLDB LLDB

[Lldb-commits] [lldb] r356490 - Delete dead code.

2019-03-19 Thread Zachary Turner via lldb-commits
Author: zturner Date: Tue Mar 19 11:06:32 2019 New Revision: 356490 URL: http://llvm.org/viewvc/llvm-project?rev=356490=rev Log: Delete dead code. Most of these are Dump functions that are never called, but there is one instance of entire unused classes (DWARFDebugMacinfo and

[Lldb-commits] [PATCH] D59291: [Object] Add basic minidump support

2019-03-19 Thread Zachary Turner via Phabricator via lldb-commits
zturner accepted this revision. zturner added a comment. This LGTM, but let's give it a day to see if anyone else chimes in with comments. Repository: rL LLVM CHANGES SINCE LAST ACTION https://reviews.llvm.org/D59291/new/ https://reviews.llvm.org/D59291

[Lldb-commits] [lldb] r356487 - [ScriptInterpreterPython] Remove dead code.

2019-03-19 Thread Davide Italiano via lldb-commits
Author: davide Date: Tue Mar 19 10:35:40 2019 New Revision: 356487 URL: http://llvm.org/viewvc/llvm-project?rev=356487=rev Log: [ScriptInterpreterPython] Remove dead code. Modified: lldb/trunk/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.h Modified:

[Lldb-commits] [lldb] r356486 - [StackFrameRecognizer] Remove unneeded LLDB_DISABLE_PYTHON.

2019-03-19 Thread Davide Italiano via lldb-commits
Author: davide Date: Tue Mar 19 10:35:37 2019 New Revision: 356486 URL: http://llvm.org/viewvc/llvm-project?rev=356486=rev Log: [StackFrameRecognizer] Remove unneeded LLDB_DISABLE_PYTHON. Modified: lldb/trunk/include/lldb/Target/StackFrameRecognizer.h

[Lldb-commits] [PATCH] D59427: [lldb] [Reproducer] Move SBRegistry registration into declaring files

2019-03-19 Thread Michał Górny via Phabricator via lldb-commits
mgorny added a comment. I'd also like to update the output of lldb-instr but I think that'd be better done in a separate patch. CHANGES SINCE LAST ACTION https://reviews.llvm.org/D59427/new/ https://reviews.llvm.org/D59427 ___ lldb-commits

[Lldb-commits] [PATCH] D59427: [lldb] [Reproducer] Move SBRegistry registration into declaring files

2019-03-19 Thread Michał Górny via Phabricator via lldb-commits
mgorny added a comment. Hmm but the tests fail to build for me ;-). I'm going to update this shortly. Comment at: lldb/source/API/SBAddress.cpp:313 + LLDB_REGISTER_METHOD(lldb::SBSymbolContext, SBAddress, GetSymbolContext, + (uint3_t)); +

[Lldb-commits] [PATCH] D59498: [DWARF] Remove a couple of log statements

2019-03-19 Thread Zachary Turner via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rLLDB356469: Remove a couple of log statements. (authored by zturner, committed by ). Herald added a subscriber: abidh. Herald added a project: LLDB. Changed prior to commit:

[Lldb-commits] [lldb] r356469 - Remove a couple of log statements.

2019-03-19 Thread Zachary Turner via lldb-commits
Author: zturner Date: Tue Mar 19 09:26:08 2019 New Revision: 356469 URL: http://llvm.org/viewvc/llvm-project?rev=356469=rev Log: Remove a couple of log statements. These log statements have questionable value, and hinder the effort of separating the high and low level DWARF parsing interfaces

[Lldb-commits] [PATCH] D59427: [lldb] [Reproducer] Move SBRegistry registration into declaring files

2019-03-19 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere accepted this revision. JDevlieghere added a comment. This revision is now accepted and ready to land. LGTM. This builds and passes the tests for me. Thanks! CHANGES SINCE LAST ACTION https://reviews.llvm.org/D59427/new/ https://reviews.llvm.org/D59427

[Lldb-commits] [PATCH] D59524: Improve error handling for Clang module imports

2019-03-19 Thread Phabricator via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL356462: Improve error handling for Clang module imports. (authored by adrian, committed by ). Herald added a project: LLVM. Herald added a subscriber: llvm-commits. Changed prior to commit:

[Lldb-commits] [lldb] r356462 - Improve error handling for Clang module imports.

2019-03-19 Thread Adrian Prantl via lldb-commits
Author: adrian Date: Tue Mar 19 08:38:26 2019 New Revision: 356462 URL: http://llvm.org/viewvc/llvm-project?rev=356462=rev Log: Improve error handling for Clang module imports. rdar://problem/48883558 Differential Revision: https://reviews.llvm.org/D59524 Added:

[Lldb-commits] [lldb] r356459 - Fix a "memset clearing an object of non-trivial type" warning in EmulateInstruction

2019-03-19 Thread Pavel Labath via lldb-commits
Author: labath Date: Tue Mar 19 08:05:55 2019 New Revision: 356459 URL: http://llvm.org/viewvc/llvm-project?rev=356459=rev Log: Fix a "memset clearing an object of non-trivial type" warning in EmulateInstruction This is a new warning which started appearing as of gcc-8. The Opcode class has a

[Lldb-commits] [PATCH] D59485: [ASTImporter] Allow adding a import strategy to the ASTImporter

2019-03-19 Thread Gabor Marton via Phabricator via lldb-commits
martong added a comment. > We can't reliable import templates with the ASTImporter, so actually > reconstructing the template in the debug info AST and then importing it > doesn't work. Could you please elaborate how the import of templates fails in ASTImporter? Is it because the AST you

[Lldb-commits] [PATCH] D59427: [WIP] [lldb] [API] Split SBRegistry into smaller files

2019-03-19 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. The direction looks good to me too. Comment at: lldb/source/API/SBAddress.cpp:313 + LLDB_REGISTER_METHOD(lldb::SBSymbolContext, SBAddress, GetSymbolContext, + (uint3_t)); + LLDB_REGISTER_METHOD(lldb::SBCompileUnit, SBAddress,

[Lldb-commits] [PATCH] D59537: Instantiate 'std' templates explicitly in the expression evaluator

2019-03-19 Thread Balázs Kéri via Phabricator via lldb-commits
balazske added inline comments. Comment at: lldb/source/Symbol/StdModuleHandler.cpp:220 +case TemplateArgument::Type: { + QualType our_type = m_importer.Import(arg.getAsType()); + imported_args.push_back(TemplateArgument(our_type)); For long-term

[Lldb-commits] [PATCH] D59539: [llvm-exegesis] Option to lobotomize dbscan (PR40880)

2019-03-19 Thread Roman Lebedev via Phabricator via lldb-commits
lebedev.ri created this revision. lebedev.ri added a reviewer: courbet. lebedev.ri added a project: LLVM. Herald added subscribers: lldb-commits, jdoerfert, abidh, tschuett. Herald added a project: LLDB. Let's suppose we have measured 4 different opcodes, and got: `0.5`, `1.0`, `1.5`, `2.0`.

[Lldb-commits] [PATCH] D59485: [ASTImporter] Allow adding a import strategy to the ASTImporter

2019-03-19 Thread Balázs Kéri via Phabricator via lldb-commits
balazske added a comment. By the way if the `Import` of the strategy uses recursive import of other things this can cause same problems as it was in `ASTImporter` before the `GetImportedOrCreateDecl` was introduced. So this should be avoided or something similar to `GetImportedOrCreateDecl`

[Lldb-commits] [PATCH] D59485: [ASTImporter] Allow adding a import strategy to the ASTImporter

2019-03-19 Thread Balázs Kéri via Phabricator via lldb-commits
balazske added a comment. Another observation: The `Import` function of the strategy now has no way to return an error. An even better version of it would be to include the possibility of import error (with `ImportError`, or other error type). Or the "PreImport" function could indicate if the

[Lldb-commits] [PATCH] D59485: [ASTImporter] Allow adding a import strategy to the ASTImporter

2019-03-19 Thread Raphael Isemann via Phabricator via lldb-commits
teemperor planned changes to this revision. teemperor added a comment. I think we could also refactor the strategy into a `PreImport` call. That way we don't break all the user-code out there and it seems less intrusive to the ASTImporter code. I'll update the patch. CHANGES SINCE LAST ACTION

[Lldb-commits] [PATCH] D59537: Instantiate 'std' templates explicitly in the expression evaluator

2019-03-19 Thread Raphael Isemann via Phabricator via lldb-commits
teemperor created this revision. teemperor added reviewers: aprantl, shafik, jingham. teemperor added a project: C++ modules in LLDB. Herald added subscribers: lldb-commits, jdoerfert, abidh, mgrang, mgorny. Herald added a reviewer: martong. Herald added a reviewer: serge-sans-paille. Herald added

[Lldb-commits] [PATCH] D59485: [ASTImporter] Allow adding a import strategy to the ASTImporter

2019-03-19 Thread Balázs Kéri via Phabricator via lldb-commits
balazske added a comment. It looks better now. One "problem" is that now there is the strategy and there is the `Imported` function. It would be possible to unify these into a strategy that contains maybe a "import" and a "post-import" callback. (But this requires big changes in the

[Lldb-commits] [PATCH] D59433: Fix UUID decoding from minidump files.

2019-03-19 Thread serge via Phabricator via lldb-commits
serge-sans-paille added inline comments. Comment at: packages/Python/lldbsuite/test/functionalities/postmortem/minidump-new/TestMiniDumpNew.py:533 +self.assertEqual(2, len(modules)) +self.verify_module(modules[0], "/tmp/a", None) +

[Lldb-commits] [PATCH] D59485: [ASTImporter] Allow adding a import strategy to the ASTImporter

2019-03-19 Thread Raphael Isemann via Phabricator via lldb-commits
teemperor updated this revision to Diff 191257. teemperor retitled this revision from "[ASTImporter] Allow adding a shim to the ASTImporter" to "[ASTImporter] Allow adding a import strategy to the ASTImporter". teemperor edited the summary of this revision. teemperor added a comment. Thanks for