[Lldb-commits] [PATCH] D38829: Python: SetOutputFileHandle doesn't work with IOBase

2017-11-02 Thread Pavel Labath via Phabricator via lldb-commits
labath added subscribers: lldb-commits, labath. labath reopened this revision. labath added a comment. This revision is now accepted and ready to land. (Please add lldb-commits to future reviews, so that people are aware of what's going on.) So, the reason why this failed to compile is that andr

[Lldb-commits] [PATCH] D39515: Remove TestMyFirstWatchpoint and TestStepOverWatchpoint from basic_process category

2017-11-02 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. I agree that we have too many ways of specifying categories. I think that the file-based and getCategories() way are redundant, particularly, as we tend to only have one test file per directory anyway. For very fine grained annotations, we can use the `@add_test_categori

[Lldb-commits] [PATCH] D39515: Remove TestMyFirstWatchpoint and TestStepOverWatchpoint from basic_process category

2017-11-02 Thread Pavel Labath via Phabricator via lldb-commits
labath updated this revision to Diff 121287. labath added a comment. Herald added a subscriber: ki.stfu. This removes the getCategories function altogether. I've moved the filesystem-based category computation (which was implemented as a getCategories base case) into the consumer, so that it is i

[Lldb-commits] [PATCH] D39487: Add float/vector registers for ppc64le

2017-11-02 Thread Pavel Labath via Phabricator via lldb-commits
labath added inline comments. Comment at: source/Plugins/Process/Linux/NativeRegisterContextLinux_ppc64le.cpp:534 +Status NativeRegisterContextLinux_ppc64le::ReadVMX() { + void *buf = GetVMXBuffer(); + if (!buf) Isn't this somewhat over-engineered? I mean, Ge

[Lldb-commits] [lldb] r317218 - Use LLVM version string

2017-11-02 Thread Stephane Sezer via lldb-commits
Author: sas Date: Thu Nov 2 09:56:19 2017 New Revision: 317218 URL: http://llvm.org/viewvc/llvm-project?rev=317218&view=rev Log: Use LLVM version string Summary: macOS builds of LLDB use the bundle version from `tools/driver/lldb-Info.plist`. That file hasn't been updated since the 4.0 release s

[Lldb-commits] [lldb] r317219 - Run clang-format on lldb.cpp

2017-11-02 Thread Stephane Sezer via lldb-commits
Author: sas Date: Thu Nov 2 09:56:52 2017 New Revision: 317219 URL: http://llvm.org/viewvc/llvm-project?rev=317219&view=rev Log: Run clang-format on lldb.cpp Modified: lldb/trunk/source/lldb.cpp Modified: lldb/trunk/source/lldb.cpp URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source

[Lldb-commits] [PATCH] D39429: Use LLVM version string

2017-11-02 Thread Stephane Sezer via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL317218: Use LLVM version string (authored by sas). Repository: rL LLVM https://reviews.llvm.org/D39429 Files: lldb/trunk/source/lldb.cpp Index: lldb/trunk/source/lldb.cpp ==

[Lldb-commits] [PATCH] D38829: Python: SetOutputFileHandle doesn't work with IOBase

2017-11-02 Thread Zachary Turner via Phabricator via lldb-commits
zturner added inline comments. Comment at: lldb/trunk/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp:1075-1096 +static int readfn(void *ctx, char *buffer, int n) +{ + auto state = PyGILState_Ensure(); + auto *file = (PyObject *) ctx; + int result = -1; + auto

[Lldb-commits] [PATCH] D38829: Python: SetOutputFileHandle doesn't work with IOBase

2017-11-02 Thread Lawrence D'Anna via Phabricator via lldb-commits
lawrence_danna added inline comments. Comment at: lldb/trunk/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp:1075-1096 +static int readfn(void *ctx, char *buffer, int n) +{ + auto state = PyGILState_Ensure(); + auto *file = (PyObject *) ctx; + int result = -1; +

[Lldb-commits] [PATCH] D39515: Remove TestMyFirstWatchpoint and TestStepOverWatchpoint from basic_process category

2017-11-02 Thread Jim Ingham via Phabricator via lldb-commits
jingham accepted this revision. jingham added a comment. Very nice, thanks! https://reviews.llvm.org/D39515 ___ lldb-commits mailing list lldb-commits@lists.llvm.org http://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

[Lldb-commits] [PATCH] D38829: Python: SetOutputFileHandle doesn't work with IOBase

2017-11-02 Thread Pavel Labath via Phabricator via lldb-commits
labath added inline comments. Comment at: lldb/trunk/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp:1075-1096 +static int readfn(void *ctx, char *buffer, int n) +{ + auto state = PyGILState_Ensure(); + auto *file = (PyObject *) ctx; + int result = -1; + auto p

[Lldb-commits] [PATCH] D38829: Python: SetOutputFileHandle doesn't work with IOBase

2017-11-02 Thread Zachary Turner via Phabricator via lldb-commits
zturner added inline comments. Comment at: lldb/trunk/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp:1075-1096 +static int readfn(void *ctx, char *buffer, int n) +{ + auto state = PyGILState_Ensure(); + auto *file = (PyObject *) ctx; + int result = -1; + auto

[Lldb-commits] [PATCH] D38829: Python: SetOutputFileHandle doesn't work with IOBase

2017-11-02 Thread Zachary Turner via Phabricator via lldb-commits
zturner added inline comments. Comment at: lldb/trunk/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp:1075-1096 +static int readfn(void *ctx, char *buffer, int n) +{ + auto state = PyGILState_Ensure(); + auto *file = (PyObject *) ctx; + int result = -1; + auto

[Lldb-commits] [PATCH] D38829: Python: SetOutputFileHandle doesn't work with IOBase

2017-11-02 Thread Pavel Labath via Phabricator via lldb-commits
labath added inline comments. Comment at: lldb/trunk/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp:1075-1096 +static int readfn(void *ctx, char *buffer, int n) +{ + auto state = PyGILState_Ensure(); + auto *file = (PyObject *) ctx; + int result = -1; + auto p

[Lldb-commits] [PATCH] D38829: Python: SetOutputFileHandle doesn't work with IOBase

2017-11-02 Thread Greg Clayton via Phabricator via lldb-commits
clayborg added a comment. Another option would be to add a URL version of these functions: class SBDebugger { void SetInputURL(const char *url); void SetOutputURL(const char *url); void SetErrorURL(const char *url); }; Then we allow this to trickle down to the IOBase in that way.

[Lldb-commits] [PATCH] D38829: Python: SetOutputFileHandle doesn't work with IOBase

2017-11-02 Thread Zachary Turner via Phabricator via lldb-commits
zturner added a comment. Ok, I wasn't aware of the libedit problem. I still don't like this approach, because it causes the design of the `File` class to be influenced by a limitation of a 3rd party library. What about adding a method to `IOObject` called `FILE *GetFileStream()`. Then the met

[Lldb-commits] [PATCH] D38829: Python: SetOutputFileHandle doesn't work with IOBase

2017-11-02 Thread Lawrence D'Anna via Phabricator via lldb-commits
lawrence_danna added a comment. @labath > (Please add lldb-commits to future reviews, so that people are aware of > what's going on.) ok > Couldn't we just change the File::Read/Write functions to call these directly Like I said to @zturner , this is possible, but it can't work with the exist

[Lldb-commits] [PATCH] D38829: Python: SetOutputFileHandle doesn't work with IOBase

2017-11-02 Thread Greg Clayton via Phabricator via lldb-commits
clayborg added a comment. In https://reviews.llvm.org/D38829#914300, @zturner wrote: > Ok, I wasn't aware of the libedit problem. > > I still don't like this approach, because it causes the design of the `File` > class to be influenced by a limitation of a 3rd party library. > > What about addin

[Lldb-commits] [PATCH] D38829: Python: SetOutputFileHandle doesn't work with IOBase

2017-11-02 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. In https://reviews.llvm.org/D38829#914300, @zturner wrote: > Ok, I wasn't aware of the libedit problem. > > I still don't like this approach, because it causes the design of the `File` > class to be influenced by a limitation of a 3rd party library. > > What about adding

[Lldb-commits] [PATCH] D38829: Python: SetOutputFileHandle doesn't work with IOBase

2017-11-02 Thread Lawrence D'Anna via Phabricator via lldb-commits
lawrence_danna added inline comments. Comment at: lldb/trunk/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp:1075-1096 +static int readfn(void *ctx, char *buffer, int n) +{ + auto state = PyGILState_Ensure(); + auto *file = (PyObject *) ctx; + int result = -1; +

[Lldb-commits] [PATCH] D38829: Python: SetOutputFileHandle doesn't work with IOBase

2017-11-02 Thread Pavel Labath via Phabricator via lldb-commits
labath added a comment. In https://reviews.llvm.org/D38829#914305, @lawrence_danna wrote: > @labath > > > Couldn't we just change the File::Read/Write functions to call these > > directly > > Like I said to @zturner , this is possible, but it can't work with the > existing APIs in SBDebugger.h.

[Lldb-commits] [PATCH] D39436: Add regex support to file (-f) and module (-s) breakpoint options.

2017-11-02 Thread Don Hinton via Phabricator via lldb-commits
hintonda updated this revision to Diff 121350. hintonda added a comment. I realize this probably isn't an acceptable change, but it was a good learing experience for me, as I'd never looked at the lldb code before last Sunday, so I figured I'd go ahead and complete it. While the basic technique r

[Lldb-commits] [PATCH] D38829: Python: SetOutputFileHandle doesn't work with IOBase

2017-11-02 Thread Zachary Turner via Phabricator via lldb-commits
zturner added inline comments. Comment at: lldb/trunk/source/Plugins/ScriptInterpreter/Python/PythonDataObjects.cpp:1075-1096 +static int readfn(void *ctx, char *buffer, int n) +{ + auto state = PyGILState_Ensure(); + auto *file = (PyObject *) ctx; + int result = -1; + auto

[Lldb-commits] [lldb] r317270 - Fix some warnings found by ToT clang

2017-11-02 Thread Pavel Labath via lldb-commits
Author: labath Date: Thu Nov 2 14:35:26 2017 New Revision: 317270 URL: http://llvm.org/viewvc/llvm-project?rev=317270&view=rev Log: Fix some warnings found by ToT clang These fall into two categories: - unused variables - (uint8_t *)NULL + X -- changed to reinterpret_cast(X) Modified: lldb/

[Lldb-commits] [lldb] r317276 - Remove android watchpoint xfails

2017-11-02 Thread Pavel Labath via lldb-commits
Author: labath Date: Thu Nov 2 15:12:55 2017 New Revision: 317276 URL: http://llvm.org/viewvc/llvm-project?rev=317276&view=rev Log: Remove android watchpoint xfails Now that the wathpoint tests have their own category, we can easily skip them on devices which don't have watchpoint support. There

[Lldb-commits] [lldb] r317277 - Remove getCategories mechanism of specifying test categories

2017-11-02 Thread Pavel Labath via lldb-commits
Author: labath Date: Thu Nov 2 15:13:09 2017 New Revision: 317277 URL: http://llvm.org/viewvc/llvm-project?rev=317277&view=rev Log: Remove getCategories mechanism of specifying test categories Summary: This mechanism was mostly redundant with the file-based .categories mechanism, and it was inte

[Lldb-commits] [PATCH] D39515: Remove TestMyFirstWatchpoint and TestStepOverWatchpoint from basic_process category

2017-11-02 Thread Pavel Labath via Phabricator via lldb-commits
This revision was automatically updated to reflect the committed changes. Closed by commit rL317277: Remove getCategories mechanism of specifying test categories (authored by labath). Repository: rL LLVM https://reviews.llvm.org/D39515 Files: lldb/trunk/packages/Python/lldbsuite/test/exampl

[Lldb-commits] [PATCH] D39574: Add type to FileSpec::PathSyntax enum.

2017-11-02 Thread Don Hinton via Phabricator via lldb-commits
hintonda created this revision. Add type to FileSpec::PathSyntax enum to decrease size for FileSpec on systems with 32 bit pointers. Thanks to @zturner for pointing this out. https://reviews.llvm.org/D39574 Files: include/lldb/Utility/FileSpec.h Index: include/lldb/Utility/FileSpec.h =

[Lldb-commits] [PATCH] D39578: Fix a couple of self-assignments using memcpy.

2017-11-02 Thread Don Hinton via Phabricator via lldb-commits
hintonda created this revision. These two methods are essentially assignents, but don't check for self-assignment and use memcpy for member variables. Since they aren't actually operator=(), it's unclear what should be done: - check and shortcut - assert - allow but s/memcpy/memmove/ https://r

[Lldb-commits] [PATCH] D39580: Quash a few 'warning: comparison of function 'compression_decode_buffer' not equal to a null pointer is always true [-Wtautologica l-pointer-compare]'

2017-11-02 Thread Don Hinton via Phabricator via lldb-commits
hintonda created this revision. Quash several warnings of this type using clang's suggested fix: [2741/3631] Building CXX object tools/lldb/source/Plugins/Process/gdb-remote/CMakeFiles/lldbPluginProcessGDBRemote.dir/GDBRemoteCommunication.cpp.o /Users/dhinton/projects/llvm_project/llvm/tools/lld