summaryrefslogtreecommitdiffstats
path: root/lldb/third_party/Python
Commit message (Collapse)AuthorAgeFilesLines
* Increase timeout in pexpect to lower chances of tests failing under ASAN.Adrian Prantl2019-10-101-1/+1
| | | | | | | If this doesn't actually work, I'll revert the change and just disable the remaining thee pexpect tests under asan. llvm-svn: 374375
* dotest.py: bugfix: test filters with -f do not work on Python3Jonas Devlieghere2019-09-201-1/+1
| | | | | | | | | | | | | | | | dotest -f does not work on Python3. The name types.UnboundMethodType was an alias for types.MethodType in 2.7, but it does not exist in python3. MethodType works in both. Also the actual type returned from SomeClass.some_method in python3 will be types.Function, not MethodType. Patch by: Lawrence D'Anna Differential revision: https://reviews.llvm.org/D67791 llvm-svn: 372441
* Initial support for native debugging of x86/x64 Windows processesAaron Smith2019-08-131-1/+1
| | | | | | | | | | | | | | | | Summary: Thanks to Hui Huang and the reviewers for all the help with this patch. Reviewers: labath, Hui, jfb, clayborg, amccarth Reviewed By: labath Subscribers: amccarth, compnerd, dexonsmith, mgorny, jfb, teemperor, lldb-commits Tags: #lldb Differential Revision: https://reviews.llvm.org/D63165 llvm-svn: 368759
* [lldb/thirdparty] Remove unneeded files, asked by Jonas.Davide Italiano2019-03-12123-14110/+0
| | | | llvm-svn: 355969
* [third-party] Update pexpect to 4.6.Davide Italiano2019-03-12190-8661/+17969
| | | | | | | | | | | | Reviewers: labath, jdevlieghere Subscribers: lldb-commits Tags: #llvm Differential Revision: https://reviews.llvm.org/D59159 llvm-svn: 355967
* [dotest] Consider unexpected passes as failures.Jonas Devlieghere2018-12-201-1/+3
| | | | | | | | | | | | | | | Unexpected successes should be considered failures because they can hide regressions when not addressed. When a test is fixed and not re-enabled, it can easily regress without us noticing. I couldn't find a good way to make this change other than changing it in the unittest2 framework. I know this is less than optimal but since we have the dependency checked in and the change is pretty fundamental to the framework I think it's not unreasonable. Differential revision: https://reviews.llvm.org/D55835 llvm-svn: 349818
* *** This commit represents a complete reformatting of the LLDB source codeKate Stone2016-09-0656-2292/+3594
| | | | | | | | | | | | | | | | | | | | | | | *** to conform to clang-format’s LLVM style. This kind of mass change has *** two obvious implications: Firstly, merging this particular commit into a downstream fork may be a huge effort. Alternatively, it may be worth merging all changes up to this commit, performing the same reformatting operation locally, and then discarding the merge for this particular commit. The commands used to accomplish this reformatting were as follows (with current working directory as the root of the repository): find . \( -iname "*.c" -or -iname "*.cpp" -or -iname "*.h" -or -iname "*.mm" \) -exec clang-format -i {} + find . -iname "*.py" -exec autopep8 --in-place --aggressive --aggressive {} + ; The version of clang-format used was 3.9.0, and autopep8 was 1.2.4. Secondly, “blame” style tools will generally point to this commit instead of a meaningful prior commit. There are alternatives available that will attempt to look through this change and find the appropriate prior commit. YMMV. llvm-svn: 280751
* Put progress.py back, apparently this can't be deleted.Zachary Turner2015-12-091-0/+154
| | | | llvm-svn: 255159
* Remove the -P option from dotest.pyZachary Turner2015-12-091-154/+0
| | | | | | | | This was an option to display a graphical progress bar. Nobody is using this, and it doesn't work correctly anyway with the new result formatter. llvm-svn: 255153
* Python 3 - Fix some issues with class / instance variables in unittest2.Zachary Turner2015-11-063-37/+16
| | | | | | | | | | | | | | | | | | | | | | | | Explanation from a Python wizard (not me) about why this exhibited different behavior under Python 2 and Python 3. `cmp` is a builtin_function_or_method in Python 2.7, which doesn't have a __get__ and doesn't qualify as a "descriptor". Your lambda is a regular function which qualifies as a descriptor whose __get__ method returns a bound instance. His suggested fix was to write sortTestMethodsUsing = staticmethod(cmp_) However, I don't think `sortTestMethodsUsing` (or any of the other fields of `TestLoader`) should be class attributes anyway. They are all accessed through self, so they should be instance attributes. So the fix employed here is to convert them to instance attributes. Differential Revision: http://reviews.llvm.org/D14453 Reviewed By: Todd Fiala llvm-svn: 252346
* Python 3 - Fix usage of `unicode` in unittest2.Zachary Turner2015-11-051-1/+4
| | | | llvm-svn: 252189
* Python 3 - Apply 2to3 `filter` fixer to unittest2.Zachary Turner2015-11-051-1/+1
| | | | llvm-svn: 252181
* Python 3 - Fix checking of string types in unittest2 module.Zachary Turner2015-11-035-11/+17
| | | | | | | | | | This patch actually introduces a dependency from unittest2 to six. This should be ok since both packages are in our own repo, and we assume a sys.path of the top-level script that can find the third party packages. So unittest2 should be able to find six. llvm-svn: 251983
* Python 3 - Fix some issues in unittest2.Zachary Turner2015-11-034-12/+22
| | | | | | | | | unittest2 was using print statements in a few places, and also using the `cmp` function (which is removed in Python 3). Again, we need to stop using unittest2 and using unittest instead, but this seems like an easier route for now. llvm-svn: 251978
* Python 3: Modernize exception raising syntax.Zachary Turner2015-11-031-2/+2
| | | | | | | | | | Old-style: `raise foo, bar` New-style: `raise foo(bar)` These two statements are equivalent, but the former is an error in Python 3. llvm-svn: 251977
* Python 3 - modernize exception catching syntax.Zachary Turner2015-11-039-39/+39
| | | | | | | | | | | | | | | | | Old-style syntax: `except Exception, e:` New-style syntax: `except Exception as e:` These two statements are identical, except that the former has been deprecated for may versions, and was removed in Python 3. This converts everything to use the new syntax (which also works in Python 2). I had to convert unittest2 as well. What we really need to do is just delete unittest2, and use unittest instead since it is a standard module that ships with every Python distribution. But this is the path of least resistance for now, although at some point we will really need to do it. llvm-svn: 251968
* Preparation for turning lldbsuite into a Python package.Zachary Turner2015-10-271-0/+154
| | | | | | | | | | | The idea behind this patch is to expose the meat of LLDB's Python infrastructure (test suite, scripts, etc) as a single package. This makes reusability and code sharing among sub-packages easy. Differential Revision: http://reviews.llvm.org/D14131 llvm-svn: 251460
* Rename `lldb_shared` to `use_lldb_suite`.Zachary Turner2015-10-271-1/+1
| | | | llvm-svn: 251444
* Move third party libraries to lldb/third_partyZachary Turner2015-10-2268-0/+17936
| | | | llvm-svn: 251046
* Add `six` Python module to lldb/third_party.Zachary Turner2015-10-202-0/+886
Six is a python module designed to smooth the process of porting Python 2 code to Python 3. Specifically, six provides a consistent interface to some of the breaking changes between 2 and 3. For example, the syntax for assigning a metaclass differs in Python 2 and 3. Six addresses this by providing a single class decorator that will do the right thing depending on which version of Python is being run. There are other examples too, such as dealing with renamed modules, unicode literals, etc. llvm-svn: 250857
OpenPOWER on IntegriCloud