[Lldb-commits] [PATCH] D48596: [SymbolFile] Implement GetCompleteObjCClass for .debug_names

2018-06-27 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. How are you planning on testing this? Most of the DWARFIndex functionality is tested in terms of lldb-test, but I think this function is not reachable from there. Maybe you could write a specific dotest-test which targets this? https://reviews.llvm.org/D48596 ___

[Lldb-commits] [PATCH] D48596: [SymbolFile] Implement GetCompleteObjCClass for .debug_names

2018-06-27 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere updated this revision to Diff 153027. JDevlieghere added a comment. - Add test case for debug_names variant. https://reviews.llvm.org/D48596 Files: packages/Python/lldbsuite/test/lang/objc/forward-decl/TestForwardDecl.py source/Plugins/SymbolFile/DWARF/DebugNamesDWARFIndex.cpp

[Lldb-commits] [PATCH] D48596: [SymbolFile] Implement GetCompleteObjCClass for .debug_names

2018-06-27 Thread Pavel Labath via Phabricator via lldb-commits
labath accepted this revision. labath added a comment. looks good to me https://reviews.llvm.org/D48596 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [PATCH] D48633: UUID: Add support for arbitrary-sized module IDs

2018-06-27 Thread Pavel Labath via Phabricator via lldb-commits
labath created this revision. labath added reviewers: clayborg, lemo, sas, davide. Herald added subscribers: arichardson, emaste. Herald added a reviewer: espindola. The data structure is optimized for the case where the UUID size is <= 20 bytes (standard length emitted by the GNU linkers), but la

[Lldb-commits] [PATCH] D48641: Skip core file tests on build configurations lacking necessary components

2018-06-27 Thread Pavel Labath via Phabricator via lldb-commits
labath created this revision. labath added reviewers: clayborg, jingham. To successfully open a core file, we need to have LLVM built with support for the relevant target. Right now, if one does not have the appropriate targets configured, the tests will fail. This patch uses the GetBuildConfigur

[Lldb-commits] [PATCH] D48646: Add a test for reading lld-generated build-ids

2018-06-27 Thread Pavel Labath via Phabricator via lldb-commits
labath created this revision. labath added reviewers: aprantl, zturner. This test makes sure we are able to read the shorter build-ids which are generated by lld. To make this work, I've extended lldb-test to print the UUID of the loaded object file. I've renamed the lldb-test subcommand from "mo

Re: [Lldb-commits] [lldb] r334978 - Fixed file completion for paths that start with '~'.

2018-06-27 Thread Pavel Labath via lldb-commits
Ping. On Tue, 19 Jun 2018 at 16:04, Pavel Labath wrote: > > A test? > > It looks like it should be possible to test this in a similar way to > other CommandCompletion tests > (unittests/Interpreter/TestCompletion.cpp). > On Mon, 18 Jun 2018 at 21:16, Raphael Isemann via lldb-commits > wrote: > >

[Lldb-commits] [PATCH] D48596: [SymbolFile] Implement GetCompleteObjCClass for .debug_names

2018-06-27 Thread Greg Clayton via Phabricator via lldb-commits
clayborg accepted this revision. clayborg added a comment. This revision is now accepted and ready to land. Looks good. https://reviews.llvm.org/D48596 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/l

[Lldb-commits] [PATCH] D48633: UUID: Add support for arbitrary-sized module IDs

2018-06-27 Thread Greg Clayton via Phabricator via lldb-commits
clayborg added inline comments. Comment at: source/Interpreter/OptionValueUUID.cpp:82 + llvm::SmallVector uuid_bytes; + UUID::DecodeUUIDBytesFromString(s, uuid_bytes); for (size_t i = 0; i < num_modules; ++i) { Probably should have a return value

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

2018-06-27 Thread Kuba (Brecka) Mracek via Phabricator via lldb-commits
kubamracek added a comment. friendly ping :) https://reviews.llvm.org/D44603 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [PATCH] D48646: Add a test for reading lld-generated build-ids

2018-06-27 Thread Adrian Prantl via Phabricator via lldb-commits
aprantl added a comment. SGTM https://reviews.llvm.org/D48646 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [PATCH] D48658: Fix and simplify lldb.command decorator

2018-06-27 Thread Dave Lee via Phabricator via lldb-commits
kastiglione created this revision. kastiglione added reviewers: clayborg, granata.enrico. This change fixes one issue with `lldb.command`, and also reduces the implementation. The fix: a command function's docstring was not shown when running `help `. This is because the docstring attached the

[Lldb-commits] [PATCH] D48658: Fix and simplify lldb.command decorator

2018-06-27 Thread Dave Lee via Phabricator via lldb-commits
kastiglione updated this revision to Diff 153114. kastiglione added a comment. Update a comment https://reviews.llvm.org/D48658 Files: scripts/Python/python-extensions.swig Index: scripts/Python/python-extensions.swig === --- s

[Lldb-commits] [PATCH] D48658: Fix and simplify lldb.command decorator

2018-06-27 Thread Enrico Granata via Phabricator via lldb-commits
granata.enrico added a comment. Thanks for doing this work. I stopped working on lldb a couple years ago, so I removed myself as a reviewer. Greg will take good care of you I'm sure. https://reviews.llvm.org/D48658 ___ lldb-commits mailing list ll

[Lldb-commits] [PATCH] D48658: Fix and simplify lldb.command decorator

2018-06-27 Thread Dave Lee via Phabricator via lldb-commits
kastiglione added a subscriber: granata.enrico. kastiglione added a comment. Thanks @granata.enrico, sorry for the disruption, I noticed previous comments after I had submitted this. https://reviews.llvm.org/D48658 ___ lldb-commits mailing list lld

[Lldb-commits] [PATCH] D48659: Allow specifying an exit code for the 'quit' command

2018-06-27 Thread Raphael Isemann via Phabricator via lldb-commits
teemperor created this revision. teemperor added a reviewer: davide. This patch adds the possibility to specify an exit code when calling quit. We accept any int, even though it depends on the user what happens if the int is out of the range of what the operating system supports as exit codes. Fi

[Lldb-commits] [PATCH] D48659: Allow specifying an exit code for the 'quit' command

2018-06-27 Thread Jim Ingham via Phabricator via lldb-commits
jingham requested changes to this revision. jingham added a comment. This revision now requires changes to proceed. This won't at all do what users expect in cases where the driver program doesn't cooperate. For instance, when run under Xcode, the lldb process can have many debuggers running co

[Lldb-commits] [PATCH] D48463: Prevent dead locking when calling PrintAsync

2018-06-27 Thread Raphael Isemann via Phabricator via lldb-commits
teemperor updated this revision to Diff 153126. teemperor added a comment. - We now also handle the case where a guarded mutex is manually unlocked from a nested call. - Refactoring based on review comments. https://reviews.llvm.org/D48463 Files: include/lldb/Core/Debugger.h include/lldb/H

[Lldb-commits] [PATCH] D48463: Prevent dead locking when calling PrintAsync

2018-06-27 Thread Raphael Isemann via Phabricator via lldb-commits
teemperor updated this revision to Diff 153129. teemperor edited the summary of this revision. teemperor added a comment. - Fixed that we only pass a nullptr as a debugger to the real editline object (which now fixes the deadlock in the code completion patch). https://reviews.llvm.org/D48463 F

[Lldb-commits] [PATCH] D48463: Prevent dead locking when calling PrintAsync

2018-06-27 Thread Raphael Isemann via Phabricator via lldb-commits
teemperor marked 2 inline comments as done. teemperor added a comment. @labath Thanks for the explanation! Well in theory we could poke more holes in our guard from some nested function, but this only fixes the deadlock symptom. PrintAsync would still be blocking whenever the mutex is hold by so

[Lldb-commits] [PATCH] D48665: Added test case for: r334978 - Fixed file completion for paths that start with '~'

2018-06-27 Thread Raphael Isemann via Phabricator via lldb-commits
teemperor created this revision. teemperor added a reviewer: labath. https://reviews.llvm.org/D48665 Files: unittests/Interpreter/TestCompletion.cpp Index: unittests/Interpreter/TestCompletion.cpp === --- unittests/Interpreter/Te

[Lldb-commits] [lldb] r335776 - [SymbolFile] Implement GetCompleteObjCClass for .debug_names

2018-06-27 Thread Jonas Devlieghere via lldb-commits
Author: jdevlieghere Date: Wed Jun 27 12:58:39 2018 New Revision: 335776 URL: http://llvm.org/viewvc/llvm-project?rev=335776&view=rev Log: [SymbolFile] Implement GetCompleteObjCClass for .debug_names When running the test suite with .debug_names a bunch of tests were failing because GetCompleteOb

[Lldb-commits] [PATCH] D48596: [SymbolFile] Implement GetCompleteObjCClass for .debug_names

2018-06-27 Thread Jonas Devlieghere via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL335776: [SymbolFile] Implement GetCompleteObjCClass for .debug_names (authored by JDevlieghere, committed by ). Changed prior to commit: https://reviews.llvm.org/D48596?vs=153027&id=153161#toc Reposito

[Lldb-commits] [PATCH] D48620: Fix a single typo in SBSymbolContext

2018-06-27 Thread Shoaib Meenai via Phabricator via lldb-commits
smeenai added a comment. This is definitely trivial enough to just go through post-commit review :) (As in, just commit it directly without going through Phabricator.) Repository: rL LLVM https://reviews.llvm.org/D48620 ___ lldb-commits mailing

[Lldb-commits] [PATCH] D48659: Allow specifying an exit code for the 'quit' command

2018-06-27 Thread Greg Clayton via Phabricator via lldb-commits
clayborg requested changes to this revision. clayborg added a comment. This change seems fine to me. It allows each debugger to have a different exit status and each debugger can grab one. Seems like this should belong in lldb_private::CommandInterpreter and lldb::SBCommandInterpreter instead of

[Lldb-commits] [PATCH] D48658: Fix and simplify lldb.command decorator

2018-06-27 Thread Greg Clayton via Phabricator via lldb-commits
clayborg added a comment. Can we add a test for this to ensure all functionality that we want? I recently made changes to the cmdtemplate.py. Maybe we can integrate some more functionality that auto registers a class somehow? https://reviews.llvm.org/D48658 _

[Lldb-commits] [PATCH] D48658: Fix and simplify lldb.command decorator

2018-06-27 Thread Dave Lee via Phabricator via lldb-commits
kastiglione added a comment. @clayborg I'll dig into how `python-extensions.swig` gets tested, and add something accordingly. I have only briefly looked at `cmdtemplate.py`. I can look into adding similar registration behavior to it. For what it's worth, I prefer functions to classes for defin

[Lldb-commits] [PATCH] D48704: [LLDB] Fix for "Bug 37950: ExecutionContext::GetByteOrder() always returns endian::InlHostByteOrder()"

2018-06-27 Thread Venkata Ramanaiah via Phabricator via lldb-commits
ramana-nvr created this revision. ramana-nvr added reviewers: davide, lldb-commits. ramana-nvr added a project: LLDB. https://reviews.llvm.org/D48704 Files: source/Target/ExecutionContext.cpp Index: source/Target/ExecutionContext.cpp ===

[Lldb-commits] [PATCH] D48704: [LLDB] Fix for "Bug 37950: ExecutionContext::GetByteOrder() always returns endian::InlHostByteOrder()"

2018-06-27 Thread Venkata Ramanaiah via Phabricator via lldb-commits
ramana-nvr updated this revision to Diff 153258. ramana-nvr added a comment. Created the patch with more context. https://reviews.llvm.org/D48704 Files: source/Target/ExecutionContext.cpp Index: source/Target/ExecutionContext.cpp =