[Lldb-commits] [lldb] r335102 - BreakpointIDList: Use llvm::ArrayRef instead of pointer+length pair

2018-06-20 Thread Pavel Labath via lldb-commits
Author: labath Date: Wed Jun 20 01:12:50 2018 New Revision: 335102 URL: http://llvm.org/viewvc/llvm-project?rev=335102&view=rev Log: BreakpointIDList: Use llvm::ArrayRef instead of pointer+length pair NFC Modified: lldb/trunk/include/lldb/Breakpoint/BreakpointIDList.h lldb/trunk/source/B

[Lldb-commits] [lldb] r335104 - Remove dependency from Host to python

2018-06-20 Thread Pavel Labath via lldb-commits
Author: labath Date: Wed Jun 20 01:35:45 2018 New Revision: 335104 URL: http://llvm.org/viewvc/llvm-project?rev=335104&view=rev Log: Remove dependency from Host to python Summary: The only reason python was used in the Host module was to compute the python path. I resolve this the same way as D47

[Lldb-commits] [PATCH] D48215: Remove dependency from Host to python

2018-06-20 Thread Pavel Labath via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL335104: Remove dependency from Host to python (authored by labath, committed by ). Herald added a subscriber: llvm-commits. Repository: rL LLVM https://reviews.llvm.org/D48215 Files: lldb/trunk/incl

[Lldb-commits] [PATCH] D48351: Move dumping code out of RegisterValue class

2018-06-20 Thread Pavel Labath via Phabricator via lldb-commits
labath created this revision. labath added reviewers: zturner, jingham, clayborg. Herald added a subscriber: mgorny. The dump function was the only part of this class which depended on high-level functionality. This was due to the DumpDataExtractor function, which uses info from a running target t

[Lldb-commits] [lldb] r335106 - Fix windows build broken by r335104

2018-06-20 Thread Pavel Labath via lldb-commits
Author: labath Date: Wed Jun 20 02:00:30 2018 New Revision: 335106 URL: http://llvm.org/viewvc/llvm-project?rev=335106&view=rev Log: Fix windows build broken by r335104 lldb-python.h needs to be included first to work around some incompatibilities between windows and python headers. Modified:

[Lldb-commits] [lldb] r335112 - Fix compilation with mingw-w64 (pr37873)

2018-06-20 Thread Pavel Labath via lldb-commits
Author: labath Date: Wed Jun 20 02:53:30 2018 New Revision: 335112 URL: http://llvm.org/viewvc/llvm-project?rev=335112&view=rev Log: Fix compilation with mingw-w64 (pr37873) Modified: lldb/trunk/include/lldb/lldb-defines.h Modified: lldb/trunk/include/lldb/lldb-defines.h URL: http://llvm.or

[Lldb-commits] [lldb] r335114 - IRInterpreter: fix sign extension of small types (pr37840)

2018-06-20 Thread Pavel Labath via lldb-commits
Author: labath Date: Wed Jun 20 03:45:29 2018 New Revision: 335114 URL: http://llvm.org/viewvc/llvm-project?rev=335114&view=rev Log: IRInterpreter: fix sign extension of small types (pr37840) Sign-extension of small types (e.g. short) was not handled correctly. The reason for that was that when w

[Lldb-commits] [PATCH] D48295: [WIP] Implement new ReturnMIStatus method of CMICmdBase class.

2018-06-20 Thread Alexander Polyakov via Phabricator via lldb-commits
apolyakov updated this revision to Diff 152069. apolyakov added a comment. Changed method's name from `ReturnMIStatus` to `HandleSBError`. Also added one more use case(see -exec-step's Execute function). The only thing that worries me is that if we want to specify handler for error case, we sho

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

2018-06-20 Thread Alexander Polyakov via Phabricator via lldb-commits
apolyakov added a comment. Just reminder that it still needs a review. Thanks in advance. https://reviews.llvm.org/D47991 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [lldb] r335132 - Make sure TestNumThreads works with libc++

2018-06-20 Thread Pavel Labath via lldb-commits
Author: labath Date: Wed Jun 20 07:54:34 2018 New Revision: 335132 URL: http://llvm.org/viewvc/llvm-project?rev=335132&view=rev Log: Make sure TestNumThreads works with libc++ The problem was that with libc++ the std::unique_lock declaration was completely inlined, so there was no line table entr

[Lldb-commits] [PATCH] D48295: [WIP] Implement new ReturnMIStatus method of CMICmdBase class.

2018-06-20 Thread Adrian Prantl via Phabricator via lldb-commits
aprantl added a comment. In https://reviews.llvm.org/D48295#1137595, @apolyakov wrote: > Changed method's name from `ReturnMIStatus` to `HandleSBError`. Also added > one more use case(see -exec-step's Execute function). > > The only thing that worries me is that if we want to specify handler for

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

2018-06-20 Thread Adrian Prantl via Phabricator via lldb-commits
aprantl added a comment. This patch is adding new overloads to SBAPI calls that don't return an SBError, such as: // Old: void StepOutOfFrame(SBFrame &frame); // New: void StepOutOfFrame(SBFrame &frame, SBError &error); I wonder if it would be easier to use and more consistent with the

[Lldb-commits] [lldb] r335149 - Make test sources compatible with android+libcxx+modules

2018-06-20 Thread Pavel Labath via lldb-commits
Author: labath Date: Wed Jun 20 10:32:48 2018 New Revision: 335149 URL: http://llvm.org/viewvc/llvm-project?rev=335149&view=rev Log: Make test sources compatible with android+libcxx+modules In a modules build, android is very picky about which symbols are visible after including libc++ headers (e

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

2018-06-20 Thread Jim Ingham via lldb-commits
The SB API's tend to take SBError as an in/out parameter for the cases where the function in question naturally returns some other value, and return an SBError when there's no other logical return value. So in these cases it would be more in line with the general practice to return an SBError.

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

2018-06-20 Thread Jim Ingham via Phabricator via lldb-commits
jingham added a comment. The SB API's tend to take SBError as an in/out parameter for the cases where the function in question naturally returns some other value, and return an SBError when there's no other logical return value. So in these cases it would be more in line with the general practi

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

2018-06-20 Thread Alexander Polyakov via Phabricator via lldb-commits
apolyakov added a comment. I think we just can make old versions of API methods returning SBError in all cases. This way we'll deal with SBError and won't break down API calls. For example: // old void StepOver() { ... } // new SBError StepOver() { ... return sb_error;

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

2018-06-20 Thread Adrian Prantl via Phabricator via lldb-commits
aprantl accepted this revision. aprantl added a comment. Okay.. then let's go with this version. https://reviews.llvm.org/D47991 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

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

2018-06-20 Thread Jim Ingham via Phabricator via lldb-commits
jingham added a comment. Won't this break client code that was calling StepOver? We are pretty serious about maintaining binary compatibility with the SB API's. Jim https://reviews.llvm.org/D47991 ___ lldb-commits mailing list lldb-commits@lists.

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

2018-06-20 Thread Jim Ingham via lldb-commits
Won't this break client code that was calling StepOver? We are pretty serious about maintaining binary compatibility with the SB API's. Jim > On Jun 20, 2018, at 11:19 AM, Alexander Polyakov via Phabricator > wrote: > > apolyakov added a comment. > > I think we just can make old versions o

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

2018-06-20 Thread Adrian Prantl via Phabricator via lldb-commits
aprantl added a comment. In https://reviews.llvm.org/D47991#1138029, @jingham wrote: > Won't this break client code that was calling StepOver? We are pretty > serious about maintaining binary compatibility with the SB API's. Yeah, we can't replace existing function calls: The C++ name manglin

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

2018-06-20 Thread Alexander Polyakov via Phabricator via lldb-commits
apolyakov added a comment. If some client uses `StepOver` like `sbThread.StepOver()`, then making `StepOver` return SBError won't break anything since in this case returned SBError value will just be ignored. Am I missing something? https://reviews.llvm.org/D47991 __

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

2018-06-20 Thread Jim Ingham via lldb-commits
The client won't be expecting a struct return, and will have generated code to take a void return. If SBError happens to be returned in registers, nothing bad will happen, but if it's returned on the stack, that would corrupt the caller's stack. Relying on the particular kind of struct return

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

2018-06-20 Thread Jim Ingham via Phabricator via lldb-commits
jingham added a comment. The client won't be expecting a struct return, and will have generated code to take a void return. If SBError happens to be returned in registers, nothing bad will happen, but if it's returned on the stack, that would corrupt the caller's stack. Relying on the particu

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

2018-06-20 Thread Alexander Polyakov via Phabricator via lldb-commits
apolyakov added a comment. In https://reviews.llvm.org/D47991#1138071, @jingham wrote: > The client won't be expecting a struct return, and will have generated code > to take a void return. If SBError happens to be returned in registers, > nothing bad will happen, but if it's returned on the s

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

2018-06-20 Thread Jim Ingham via Phabricator via lldb-commits
jingham accepted this revision. jingham added a comment. This revision is now accepted and ready to land. That seems fine to me. https://reviews.llvm.org/D47991 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/

[Lldb-commits] [lldb] r335163 - Remove some instances of manual UUID pretty-printing

2018-06-20 Thread Pavel Labath via lldb-commits
Author: labath Date: Wed Jun 20 13:13:04 2018 New Revision: 335163 URL: http://llvm.org/viewvc/llvm-project?rev=335163&view=rev Log: Remove some instances of manual UUID pretty-printing Identical functionality is already offered by the UUID::getAsString method. Modified: lldb/trunk/source/P

[Lldb-commits] [PATCH] D48393: Make DWARFParsing more thread-safe

2018-06-20 Thread Frederic Riss via Phabricator via lldb-commits
friss created this revision. friss added reviewers: clayborg, labath, jingham. Herald added subscribers: JDevlieghere, aprantl. Debug information is read lazily so a lot of the state of the reader is constructred incrementally. There's also nothing preventing symbol queries to be performed at the

[Lldb-commits] [PATCH] D48295: [WIP] Implement new ReturnMIStatus method of CMICmdBase class.

2018-06-20 Thread Alexander Polyakov via Phabricator via lldb-commits
apolyakov added a comment. With such overloads we'll get compile time error. If we have overload: bool HandleSBError(SBError error, std::function successHandler = [] {some func}, std::function errorHandler = [] {some func}); bool HandleSBError(SBError error, std::function errorHandler); and

[Lldb-commits] [PATCH] D48295: [WIP] Implement new ReturnMIStatus method of CMICmdBase class.

2018-06-20 Thread Alexander Polyakov via Phabricator via lldb-commits
apolyakov added a comment. By the way, I do not see a solution better than current patch, but, at the same time, I do not like current patch. Maybe we should discard this idea? https://reviews.llvm.org/D48295 ___ lldb-commits mailing list lldb-comm

[Lldb-commits] [PATCH] D48393: Make DWARFParsing more thread-safe

2018-06-20 Thread Zachary Turner via Phabricator via lldb-commits
zturner added a comment. Long term I think one potentially interesting possibility for solving a lot of these threading and lazy evaluation issues is to make a task queue that runs all related operations on a single thread and returns a future you can wait on. This way, the core data structure

[Lldb-commits] [lldb] r335180 - Improve SBThread's stepping API using SBError parameter.

2018-06-20 Thread Alexander Polyakov via lldb-commits
Author: apolyakov Date: Wed Jun 20 14:43:16 2018 New Revision: 335180 URL: http://llvm.org/viewvc/llvm-project?rev=335180&view=rev Log: Improve SBThread's stepping API using SBError parameter. Summary: The new methods will allow to get error messages from stepping API. Reviewers: aprantl, claybo

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

2018-06-20 Thread Alexander Polyakov via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL335180: Improve SBThread's stepping API using SBError parameter. (authored by apolyakov, committed by ). Herald added a subscriber: llvm-commits. Changed prior to commit: https://reviews.llvm.org/D47991

[Lldb-commits] [PATCH] D48393: Make DWARFParsing more thread-safe

2018-06-20 Thread Frederic Riss via Phabricator via lldb-commits
friss added a comment. In https://reviews.llvm.org/D48393#1138398, @zturner wrote: > Long term I think one potentially interesting possibility for solving a lot > of these threading and lazy evaluation issues is to make a task queue that > runs all related operations on a single thread and retu

Re: [Lldb-commits] [PATCH] D48393: Make DWARFParsing more thread-safe

2018-06-20 Thread Jim Ingham via lldb-commits
> On Jun 20, 2018, at 3:14 PM, Frederic Riss via Phabricator > wrote: > > friss added a comment. > > In https://reviews.llvm.org/D48393#1138398, @zturner wrote: > >> Long term I think one potentially interesting possibility for solving a lot >> of these threading and lazy evaluation issues

[Lldb-commits] [PATCH] D48295: [WIP] Implement new ReturnMIStatus method of CMICmdBase class.

2018-06-20 Thread Adrian Prantl via Phabricator via lldb-commits
aprantl added a comment. I guess you *could* use different function names, such as HandleSBError, HandleSBErrorWithSuccess, HandleSBErrorWithSuccessAndFailure, ... https://reviews.llvm.org/D48295 ___ lldb-commits mailing list lldb-commits@lists.ll