[Lldb-commits] [PATCH] D47991: Improve SBThread's stepping API using SBError parameter.

2018-06-12 Thread Alexander Polyakov via Phabricator via lldb-commits
apolyakov updated this revision to Diff 150913. apolyakov added a comment. Some readability improvements(more comments). I think that we should keep `StepOver` signature as void StepOver(SBError , lldb::RunMode stop_other_threads); since it seems that in SBThread methods SBError paramater is

[Lldb-commits] [lldb] r334496 - lit/SymbolFile/DWARF: Simplify test RUN lines

2018-06-12 Thread Pavel Labath via lldb-commits
Author: labath Date: Tue Jun 12 05:43:55 2018 New Revision: 334496 URL: http://llvm.org/viewvc/llvm-project?rev=334496=rev Log: lit/SymbolFile/DWARF: Simplify test RUN lines Use -mllvm compiler argument to enable DWARF v5 accelerator tables instead of piping the IR through llc. Modified:

[Lldb-commits] [PATCH] D48060: Introduce lldb-framework CMake target and centralize its logic

2018-06-12 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. I like the idea of centralizing the framework code as much as possible. However, I am not sure how the dependency management fits into this. More details in inline comments. Comment at: CMakeLists.txt:46 + if (NOT APPLE) +message(FATAL_ERROR

Re: [Lldb-commits] [PATCH] D48049: Add a new SBTarget::LoadCore() overload which surfaces errors if the load fails

2018-06-12 Thread Pavel Labath via lldb-commits
On Mon, 11 Jun 2018 at 22:00, Leonard Mosescu via lldb-commits wrote: >> >> remove space before ( > > > I'd be happy to make the change, but looking at the rest of the file it seems > that almost everything uses the opposite convention: Foo (...). > I guess that's because the .i files escaped

Re: [Lldb-commits] [PATCH] D47991: Improve SBThread's stepping API using SBError parameter.

2018-06-12 Thread Adrian Prantl via lldb-commits
> On Jun 12, 2018, at 9:08 AM, Adrian Prantl via Phabricator > wrote: > > aprantl added a comment. > > Hmm.. @lemo 's reasoning What I was going to say here: Just from looking at the API documentation, it looks like default arguments are mapped into Python by SWIG, so there doesn't seem

[Lldb-commits] [PATCH] D47991: Improve SBThread's stepping API using SBError parameter.

2018-06-12 Thread Adrian Prantl via Phabricator via lldb-commits
aprantl added a comment. Hmm.. @lemo 's reasoning Comment at: scripts/interface/SBThread.i:257 +%feature("autodoc", +"Do a instruction level single step in the currently selected thread. +") StepInstruction; a -> an Comment at:

[Lldb-commits] [PATCH] D48096: Disable warnings for the generated LLDB wrapper source

2018-06-12 Thread Raphael Isemann via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL334557: Disable warnings for the generated LLDB wrapper source (authored by teemperor, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit:

[Lldb-commits] [lldb] r334557 - Disable warnings for the generated LLDB wrapper source

2018-06-12 Thread Raphael Isemann via lldb-commits
Author: teemperor Date: Tue Jun 12 15:51:20 2018 New Revision: 334557 URL: http://llvm.org/viewvc/llvm-project?rev=334557=rev Log: Disable warnings for the generated LLDB wrapper source Summary: This source files emits all kind of compiler warnings on different platforms. As the source code in

[Lldb-commits] [PATCH] D48060: Introduce lldb-framework CMake target and centralize its logic

2018-06-12 Thread Saleem Abdulrasool via Phabricator via lldb-commits
compnerd added inline comments. Comment at: CMakeLists.txt:145 + add_dependencies(lldb-suite lldb-framework) +elseif() + if (LLDB_CAN_USE_LLDB_SERVER) Shouldn't this be `else()`? Comment at: CMakeLists.txt:176 +if (LLDB_BUILD_FRAMEWORK)

[Lldb-commits] [PATCH] D48060: Introduce lldb-framework CMake target and centralize its logic

2018-06-12 Thread Greg Clayton via Phabricator via lldb-commits
clayborg resigned from this revision. clayborg added a comment. I'll defer to the cmake experts. I hope we can produce a LLDB.framework that is identical to the Xcode produced version, or at least as close. https://reviews.llvm.org/D48060 ___

[Lldb-commits] [PATCH] D48114: Add dataformatter for NSDecimalNumber

2018-06-12 Thread Adrian Prantl via Phabricator via lldb-commits
aprantl added inline comments. Comment at: source/Plugins/Language/ObjC/Cocoa.cpp:462 + if (!strcmp(class_name, "NSDecimalNumber")) +return NSDecimalNumberSummaryProvider(valobj, stream, options); Side note: It would be slightly faster/elegant to use a

[Lldb-commits] [PATCH] D47929: Add modules support for lldb headers in include/

2018-06-12 Thread Raphael Isemann via Phabricator via lldb-commits
teemperor updated this revision to Diff 151077. teemperor added a comment. - The regex that removes the modules cache now actually removes the whole flag + path. - Fixed more typos. https://reviews.llvm.org/D47929 Files: include/lldb/module.modulemap source/Host/CMakeLists.txt

[Lldb-commits] [PATCH] D48060: Introduce lldb-framework CMake target and centralize its logic

2018-06-12 Thread Alex Langford via Phabricator via lldb-commits
xiaobai updated this revision to Diff 151067. xiaobai added a comment. Minor fixups pointed out by compnerd https://reviews.llvm.org/D48060 Files: CMakeLists.txt cmake/modules/LLDBFramework.cmake source/API/CMakeLists.txt tools/driver/CMakeLists.txt Index: tools/driver/CMakeLists.txt

[Lldb-commits] [PATCH] D48060: Introduce lldb-framework CMake target and centralize its logic

2018-06-12 Thread Alex Langford via Phabricator via lldb-commits
xiaobai added inline comments. Comment at: CMakeLists.txt:145 + add_dependencies(lldb-suite lldb-framework) +elseif() + if (LLDB_CAN_USE_LLDB_SERVER) compnerd wrote: > Shouldn't this be `else()`? Yup Comment at: CMakeLists.txt:176 +if

[Lldb-commits] [PATCH] D48114: Add dataformatter for NSDecimalNumber

2018-06-12 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere created this revision. JDevlieghere added reviewers: aprantl, jingham, jasonmolenda. This patch adds a data formatter for NSDecimalNumber. The latter is a Foundation object used for representing and performing arithmetic on base-10 numbers that bridges to Decimal. Repository:

[Lldb-commits] [PATCH] D48114: Add dataformatter for NSDecimalNumber

2018-06-12 Thread Davide Italiano via Phabricator via lldb-commits
davide accepted this revision. davide added a comment. This revision is now accepted and ready to land. I didn't check whether the representation was correct (although it looks lo). The structure of the patch looks fine to me, thanks for adding the comments :) Repository: rL LLVM

[Lldb-commits] [PATCH] D47991: Improve SBThread's stepping API using SBError parameter.

2018-06-12 Thread Jim Ingham via Phabricator via lldb-commits
jingham added a comment. I agree with Leonard, for the StepOver overload that returns errors, just make the mode parameter required. That will reduce confusion. https://reviews.llvm.org/D47991 ___ lldb-commits mailing list

[Lldb-commits] [PATCH] D47991: Improve SBThread's stepping API using SBError parameter.

2018-06-12 Thread Alexander Polyakov via Phabricator via lldb-commits
apolyakov updated this revision to Diff 150996. apolyakov added a comment. Added `StepOver` overload without optional parameters. https://reviews.llvm.org/D47991 Files: include/lldb/API/SBThread.h scripts/interface/SBThread.i source/API/SBThread.cpp Index: source/API/SBThread.cpp

[Lldb-commits] [PATCH] D47991: Improve SBThread's stepping API using SBError parameter.

2018-06-12 Thread Alexander Polyakov via Phabricator via lldb-commits
apolyakov added inline comments. Comment at: source/API/SBThread.cpp:1136 bool result = false; if (exe_ctx.HasThreadScope()) { Process::StopLocker stop_locker; @aprantl do you think that we should use early exit here? There is printing to log at the

[Lldb-commits] [PATCH] D48084: [FileSpec] Delegate common operations to llvm::sys::path

2018-06-12 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere marked an inline comment as done. JDevlieghere added inline comments. Comment at: source/Utility/FileSpec.cpp:244-246 + // Only update style if explicitly requested. + if (style) +m_style = (*style == Style::native) ? GetNativeStyle() : *style;

[Lldb-commits] [PATCH] D48084: [FileSpec] Delegate common operations to llvm::sys::path

2018-06-12 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere marked an inline comment as done. JDevlieghere added inline comments. Comment at: source/Utility/FileSpec.cpp:244-246 + // Only update style if explicitly requested. + if (style) +m_style = (*style == Style::native) ? GetNativeStyle() : *style;

[Lldb-commits] [PATCH] D47991: Improve SBThread's stepping API using SBError parameter.

2018-06-12 Thread Alexander Polyakov via Phabricator via lldb-commits
apolyakov updated this revision to Diff 151000. apolyakov added a comment. Minor update: moved `error.SetErrorString` to the top of `if` statement to increase readability. https://reviews.llvm.org/D47991 Files: include/lldb/API/SBThread.h scripts/interface/SBThread.i

[Lldb-commits] [PATCH] D47929: Add modules support for lldb headers in include/

2018-06-12 Thread Raphael Isemann via Phabricator via lldb-commits
teemperor updated this revision to Diff 151004. teemperor retitled this revision from "Add modulemap to lldb include directory" to "Add modules support for lldb headers in include/". teemperor edited the summary of this revision. teemperor added a comment. This revision is now accepted and ready

[Lldb-commits] [PATCH] D47929: Add modules support for lldb headers in include/

2018-06-12 Thread Raphael Isemann via Phabricator via lldb-commits
teemperor added inline comments. Comment at: include/lldb/module.modulemap:66 +// This big module is necessary to work around the cyclic dependencies +// between its submodules. +module lldb { teemperor wrote: > bruno wrote: > > Will this trick be enough for

[Lldb-commits] [PATCH] D48084: [FileSpec] Delegate common operations to llvm::sys::path

2018-06-12 Thread Pavel Labath via Phabricator via lldb-commits
labath accepted this revision. labath added inline comments. Comment at: source/Utility/FileSpec.cpp:244-246 + // Only update style if explicitly requested. + if (style) +m_style = (*style == Style::native) ? GetNativeStyle() : *style; JDevlieghere wrote:

[Lldb-commits] [PATCH] D48096: Disable warnings for the generated LLDB wrapper source

2018-06-12 Thread Davide Italiano via Phabricator via lldb-commits
davide accepted this revision. davide added a comment. This revision is now accepted and ready to land. Unfortunate, but this seems reasonable. lg. https://reviews.llvm.org/D48096 ___ lldb-commits mailing list lldb-commits@lists.llvm.org

[Lldb-commits] [PATCH] D48060: Introduce lldb-framework CMake target and centralize its logic

2018-06-12 Thread Alex Langford via Phabricator via lldb-commits
xiaobai updated this revision to Diff 151049. xiaobai added a comment. Minor change I forgot to make https://reviews.llvm.org/D48060 Files: CMakeLists.txt cmake/modules/LLDBFramework.cmake source/API/CMakeLists.txt tools/driver/CMakeLists.txt Index: tools/driver/CMakeLists.txt

[Lldb-commits] [PATCH] D48060: Introduce lldb-framework CMake target and centralize its logic

2018-06-12 Thread Alex Langford via Phabricator via lldb-commits
xiaobai updated this revision to Diff 151048. xiaobai added a comment. Updated based on feedback. I would like to get more feedback before I'm comfortable changing it further and/or committing this. https://reviews.llvm.org/D48060 Files: CMakeLists.txt cmake/modules/LLDBFramework.cmake

[Lldb-commits] [PATCH] D47929: Add modules support for lldb headers in include/

2018-06-12 Thread Adrian Prantl via Phabricator via lldb-commits
aprantl accepted this revision. aprantl added inline comments. Comment at: source/Host/CMakeLists.txt:7 +# Removes all module flags from the current CMAKE_CXX_FLAGS. Used for +# the Obj-C++ code in lldb which we don't want to build with modules. +# Reasons for this are that

[Lldb-commits] [PATCH] D47929: Add modules support for lldb headers in include/

2018-06-12 Thread Raphael Isemann via Phabricator via lldb-commits
teemperor updated this revision to Diff 151023. teemperor added a comment. - Obj-C -> Obj-C++ https://reviews.llvm.org/D47929 Files: include/lldb/module.modulemap source/Host/CMakeLists.txt source/Host/common/Terminal.cpp source/Host/macosx/Host.mm

[Lldb-commits] [PATCH] D47411: Mute some compiler warnings in the generated python wrapper code.

2018-06-12 Thread Raphael Isemann via Phabricator via lldb-commits
teemperor abandoned this revision. teemperor added a comment. It seems people are also in favor of completely disabling the warnings, so that patch will replace this one. https://reviews.llvm.org/D47411 ___ lldb-commits mailing list

[Lldb-commits] [PATCH] D47996: Added modulemap for lldb-mi

2018-06-12 Thread Raphael Isemann via Phabricator via lldb-commits
teemperor edited subscribers, added: lldb-commits; removed: cfe-commits. teemperor added a comment. - Fixed mailing list subscriber. https://reviews.llvm.org/D47996 ___ lldb-commits mailing list lldb-commits@lists.llvm.org

[Lldb-commits] [PATCH] D48096: Disable warnings for the generated LLDB wrapper source

2018-06-12 Thread Raphael Isemann via Phabricator via lldb-commits
teemperor created this revision. teemperor added a reviewer: aprantl. Herald added a subscriber: mgorny. This source files emits all kind of compiler warnings on different platforms. As the source code in the file is generated and we therefore can't actually fix the warnings, we might as well

[Lldb-commits] [PATCH] D47929: Add modules support for lldb headers in include/

2018-06-12 Thread Adrian Prantl via Phabricator via lldb-commits
aprantl added inline comments. Comment at: source/Host/CMakeLists.txt:7 +# Removes all module flags from the current CMAKE_CXX_FLAGS. Used for +# the Obj-C++ code in lldb which we don't want to build with modules. +# Reasons for this are that modules with Obj-C++ would require

[Lldb-commits] [PATCH] D48060: Introduce lldb-framework CMake target and centralize its logic

2018-06-12 Thread Alex Langford via Phabricator via lldb-commits
xiaobai added inline comments. Comment at: cmake/modules/LLDBFramework.cmake:45 + + add_dependencies(lldb-framework liblldb lldb-argdumper lldb-server lldb-framework-headers) + add_dependencies(finish_swig lldb-framework) labath wrote: > xiaobai wrote: > >

[Lldb-commits] [PATCH] D47991: Improve SBThread's stepping API using SBError parameter.

2018-06-12 Thread Alexander Polyakov via Phabricator via lldb-commits
apolyakov added inline comments. Comment at: source/API/SBThread.cpp:816 +error.SetErrorString("passed a frame from another thread"); +return; } I found this place and added `return`. https://reviews.llvm.org/D47991

[Lldb-commits] [PATCH] D47929: Add modules support for lldb headers in include/

2018-06-12 Thread Raphael Isemann via Phabricator via lldb-commits
teemperor updated this revision to Diff 151025. teemperor marked an inline comment as done. teemperor added a comment. - Fixed a typo. https://reviews.llvm.org/D47929 Files: include/lldb/module.modulemap source/Host/CMakeLists.txt source/Host/common/Terminal.cpp

[Lldb-commits] [PATCH] D47991: Improve SBThread's stepping API using SBError parameter.

2018-06-12 Thread Adrian Prantl via Phabricator via lldb-commits
aprantl added a comment. > I agree with Leonard, for the StepOver overload that returns errors, just > make the mode parameter required. That will reduce confusion. Works for me, too. Comment at: source/API/SBThread.cpp:1136 bool result = false; if

[Lldb-commits] [PATCH] D48060: Introduce lldb-framework CMake target and centralize its logic

2018-06-12 Thread Pavel Labath via Phabricator via lldb-commits
labath added inline comments. Comment at: cmake/modules/LLDBFramework.cmake:45 + + add_dependencies(lldb-framework liblldb lldb-argdumper lldb-server lldb-framework-headers) + add_dependencies(finish_swig lldb-framework) xiaobai wrote: > labath wrote: > >

[Lldb-commits] [lldb] r334549 - Added modulemap for lldb-mi

2018-06-12 Thread Raphael Isemann via lldb-commits
Author: teemperor Date: Tue Jun 12 14:22:52 2018 New Revision: 334549 URL: http://llvm.org/viewvc/llvm-project?rev=334549=rev Log: Added modulemap for lldb-mi Summary: This patch allows building a C++ module for the lldb-mi headers. Reviewers: bruno, aprantl Reviewed By: aprantl Subscribers:

[Lldb-commits] [PATCH] D47996: Added modulemap for lldb-mi

2018-06-12 Thread Raphael Isemann via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL334549: Added modulemap for lldb-mi (authored by teemperor, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/D47996?vs=150663=151033#toc

[Lldb-commits] [PATCH] D48084: [FileSpec] Delegate common operations to llvm::sys::path

2018-06-12 Thread Davide Italiano via Phabricator via lldb-commits
davide accepted this revision. davide added a comment. LGTM with a nit. Comment at: source/Utility/FileSpec.cpp:18-21 +#include "llvm/ADT/Triple.h" // for Triple +#include "llvm/ADT/Twine.h" // for Twine +#include "llvm/Support/ErrorOr.h" // for ErrorOr #include

[Lldb-commits] [PATCH] D48060: Introduce lldb-framework CMake target and centralize its logic

2018-06-12 Thread Alex Langford via Phabricator via lldb-commits
xiaobai added inline comments. Comment at: cmake/modules/LLDBFramework.cmake:1 +if (LLDB_BUILD_FRAMEWORK) + add_custom_target(lldb-framework) labath wrote: > Maybe use early exit here? Sounds good Comment at:

[Lldb-commits] [PATCH] D48084: [FileSpec] Delegate common operations to llvm::sys::path

2018-06-12 Thread Pavel Labath via Phabricator via lldb-commits
labath added inline comments. Comment at: source/Utility/FileSpec.cpp:244-246 + // Only update style if explicitly requested. + if (style) +m_style = (*style == Style::native) ? GetNativeStyle() : *style; I don't really have a clear opinion on whether the

[Lldb-commits] [lldb] r334500 - DWARFDebugNames: Implement last GetGlobalVariables overload

2018-06-12 Thread Pavel Labath via lldb-commits
Author: labath Date: Tue Jun 12 06:11:25 2018 New Revision: 334500 URL: http://llvm.org/viewvc/llvm-project?rev=334500=rev Log: DWARFDebugNames: Implement last GetGlobalVariables overload This function implements the search for all global variables within a given compilation unit. Modified:

[Lldb-commits] [lldb] r334518 - Refactor ExecuteAndWait to take StringRefs.

2018-06-12 Thread Zachary Turner via lldb-commits
Author: zturner Date: Tue Jun 12 10:43:52 2018 New Revision: 334518 URL: http://llvm.org/viewvc/llvm-project?rev=334518=rev Log: Refactor ExecuteAndWait to take StringRefs. This simplifies some code which had StringRefs to begin with, and makes other code more complicated which had const char*

[Lldb-commits] [PATCH] D47991: Improve SBThread's stepping API using SBError parameter.

2018-06-12 Thread Alexander Polyakov via Phabricator via lldb-commits
apolyakov updated this revision to Diff 150983. apolyakov added a comment. Added early exits. https://reviews.llvm.org/D47991 Files: include/lldb/API/SBThread.h scripts/interface/SBThread.i source/API/SBThread.cpp Index: source/API/SBThread.cpp

[Lldb-commits] [lldb] r334498 - lldb-test symbols: Add -file argument and the ability to dump global variables in a file

2018-06-12 Thread Pavel Labath via lldb-commits
Author: labath Date: Tue Jun 12 05:57:36 2018 New Revision: 334498 URL: http://llvm.org/viewvc/llvm-project?rev=334498=rev Log: lldb-test symbols: Add -file argument and the ability to dump global variables in a file The motivation for this is to be able to Dwarf index ability to look up

[Lldb-commits] [PATCH] D47929: Add modulemap to lldb include directory

2018-06-12 Thread Raphael Isemann via Phabricator via lldb-commits
teemperor planned changes to this revision. teemperor added a comment. It seems the compilation fails on OS X with this modulemap (or any modulemap). The reason seems to be that on OS X we compile Obj-C++ as part of lldb which assumes that Clang/LLVM is valid Obj-C++. However, the Obj-C parsing

[Lldb-commits] [lldb] r334501 - Fix build error introduced in r334498

2018-06-12 Thread Pavel Labath via lldb-commits
Author: labath Date: Tue Jun 12 06:26:43 2018 New Revision: 334501 URL: http://llvm.org/viewvc/llvm-project?rev=334501=rev Log: Fix build error introduced in r334498 Some gcc versions (circa 4.9) do not accept initializing Expected objects containing a reference to a function from a function.

[Lldb-commits] [PATCH] D48084: [FileSpec] Delegate common operations to llvm::sys::path

2018-06-12 Thread Jonas Devlieghere via Phabricator via lldb-commits
JDevlieghere created this revision. JDevlieghere added reviewers: labath, zturner, clayborg, davide. Herald added subscribers: arichardson, emaste. Herald added a reviewer: espindola. With the recent changes in FileSpec to use LLVM's path style, it is possible to delegate a bunch of common path

[Lldb-commits] [lldb] r334516 - DebugNamesDWARFIndex: Implement DWARFDeclContext variant of GetTypes method

2018-06-12 Thread Pavel Labath via lldb-commits
Author: labath Date: Tue Jun 12 09:50:01 2018 New Revision: 334516 URL: http://llvm.org/viewvc/llvm-project?rev=334516=rev Log: DebugNamesDWARFIndex: Implement DWARFDeclContext variant of GetTypes method This method is used to find complete definitions of a type when one parses a compile unit

[Lldb-commits] [PATCH] D48084: [FileSpec] Delegate common operations to llvm::sys::path

2018-06-12 Thread Zachary Turner via Phabricator via lldb-commits
zturner accepted this revision. zturner added a comment. This revision is now accepted and ready to land. Looks like good cleanup to me, thanks! Comment at: source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp:2593-2596 +if