summaryrefslogtreecommitdiffstats
path: root/lldb
Commit message (Collapse)AuthorAgeFilesLines
...
* Pass the ExecutionContext as well, since it is actually usefulEnrico Granata2015-11-193-0/+5
| | | | llvm-svn: 253537
* Allow the language plugins a say in how the function name is rendered as ↵Enrico Granata2015-11-193-141/+223
| | | | | | part of frame formatting llvm-svn: 253531
* Remove superseded buildSwigWrapperClasses.py and buildSwigPython.py classesTodd Fiala2015-11-183-1234/+1
| | | | | | | This closes: http://reviews.llvm.org/D14783 llvm-svn: 253513
* [TestExitDuringStep] Adjust after a recent type map change.Siva Chandra2015-11-181-1/+2
| | | | | | | | | | Reviewers: zturner Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D14784 llvm-svn: 253505
* Fix CMake dependency on lldb.pyZachary Turner2015-11-181-1/+1
| | | | llvm-svn: 253501
* Reapply r253423 and r253424 (which cleanup the data formatters iteration ↵Enrico Granata2015-11-1814-917/+231
| | | | | | model, as well as the type X list commands), along with a change by Zachary Turner to bypass a MSVC bug with SFINAE llvm-svn: 253493
* Remove the scripts/Python/build-swig-Python.sh script.Todd Fiala2015-11-181-378/+0
| | | | | | This logically goes with my previous commit. llvm-svn: 253491
* remove defunct scripts/build-swig-wrapper-classes.sh; switch autoconf build ↵Todd Fiala2015-11-182-153/+2
| | | | | | | | to prepare_bindings.py. Xcode moved off of build-swig-wrapper-classes.sh earlier this week. llvm-svn: 253490
* Support unix-abstract-connect scheme as platform url in lldb testsuiteYing Chen2015-11-182-4/+11
| | | | | | | | | | Reviewers: ovyalov Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D14765 llvm-svn: 253488
* Fix some issues with swig & string conversion.Zachary Turner2015-11-184-8/+28
| | | | | | | | | | | | | | | | | | | | This patch fixes two issues: 1) Popen needs to be used with universal_newlines=True by default. This elicits automatic decoding from bytes -> string in Py3, and has no negative effects in other Py versions. 2) The swig typemaps for converting between string and (char*, int) did not work correctly when the length of the string was 0, indicating an error. In this case we would try to construct a string from uninitialized data. 3) Ironically, the bug mentioned in #2 led to a test passing on Windows that was actually broken, because the test was written such that the assertion was never even getting checked, so it passed by default. So we additionally fix this test to also fail if the method errors. By fixing this test it's now broken on Windows, so we also xfail it. llvm-svn: 253487
* Switched cmake build from using buildSwigWrapperClases.py to the cleaned up ↵Todd Fiala2015-11-182-1/+3
| | | | | | | | | | | | | | version. This change does not introduce static bindings. It is simply using the pylinted cleaned up code in prepare_bindings.py. If this breaks anyting, I'll revert immediately and figure out what needs to be addressed. I'm looking to wrap up the cleanup aspect of the code change (pylinted, removal of code that implements existing python stdlib code, fixes for Xcode adoption, etc.). llvm-svn: 253478
* Revert 2 commits breaking the MSVC buildTamas Berghammer2015-11-1814-225/+917
| | | | | | | | | | Revert "Remove a few vestigial typedefs from the old world" This reverts commit 05872cda2a00fbd988c4fc761b1f87fe9edce224. Revert "Cleanup the type X list commands to use the new ForEach goodness" This reverts commit 85b1d83819a22cdc9ef12f58fd4fa92b473a4f81. llvm-svn: 253455
* prepare_bindings.py: enable static bindingsTodd Fiala2015-11-185-20/+83996
| | | | | | | | | | | | | | | Added a new flag, --allow-static-binding. When specified, if (and only if) the swig binary cannot be found, then the LLDBWrapPython.cpp and lldb.py from the scripts/Python/{static-binding-dir} are copied into the place where swig would have generated them. {static-binding-dir} defaults to static-binding, and can be overridden with the --static-binding-dir command line argument. The static bindings checked in are from r253424. llvm-svn: 253448
* [LLDB][MIPS] Fix TestDisassembleBreakpoint.py for MIPSSagar Thakur2015-11-181-2/+6
| | | | | | | | | | | Patch by Nitesh Jain Summary: The break is opcode for breakpoint instruction. Subscribers: lldb-commits, mohit.bhakkad, sagar, bhushan Reviewers: clayborg, ovyalov, jaydeep Differential: http://reviews.llvm.org/D14634 llvm-svn: 253445
* [MIPS][LLDB]Fix TestBreakpointCondition.py for MIPSSagar Thakur2015-11-181-3/+6
| | | | | | | | | | | | | Patch by Nitesh Jain Summary: The self.getArchitecture() returns the architecture based on the value of -A flag passed to dotest.py script. There are many possible values for MIPS to this option (like mips32r2, mips32r6, mips64, mips64r2,.... ). This patch uses re.match(mips,arch) to check if architecture string starts with mips. Subscribers: lldb-commits, mohit.bhakkad, sagar, bhushan, jaydeep Reviewers: clayborg, ovyalov Differential: http://reviews.llvm.org/D14493 llvm-svn: 253444
* Remove a few vestigial typedefs from the old worldEnrico Granata2015-11-187-15/+0
| | | | llvm-svn: 253424
* Cleanup the type X list commands to use the new ForEach goodnessEnrico Granata2015-11-1811-902/+225
| | | | llvm-svn: 253423
* Cleanup indentationEnrico Granata2015-11-171-2/+4
| | | | llvm-svn: 253383
* Cleanup the type X clear commands, so that one base class can implement all ↵Enrico Granata2015-11-171-366/+83
| | | | | | of them llvm-svn: 253381
* Move this back to a pid_t; this file is OSX only anyway, and the signedness ↵Enrico Granata2015-11-171-2/+2
| | | | | | of pid_t is actually a thing we want here llvm-svn: 253364
* Remove --swig-executable `which swig` from Xcode prepare_bindings.py call.Todd Fiala2015-11-171-1/+1
| | | | | | | | This is no longer needed with --find-swig, and although innocuous on systems with swig in the path, it blows up when there is no swig in the path. This should have been removed in the prior check-in. llvm-svn: 253353
* Reinstate Xcode project usage of prepare_bindings.py, with new --find-swig ↵Todd Fiala2015-11-171-5/+5
| | | | | | option set. llvm-svn: 253347
* Added --find-swig option to allow searching for swig in path or other likely ↵Todd Fiala2015-11-171-0/+76
| | | | | | locations. llvm-svn: 253346
* Revert out Xcode hookup of r253317.Todd Fiala2015-11-171-5/+5
| | | | | | | | The green dragon OS X builder doesn't have swig on the path. I need to enable behavior where we can look for it in some well known spots. llvm-svn: 253319
* Add Pythonic language binding wrapper generation script.Todd Fiala2015-11-173-5/+636
| | | | | | | | | | | | | | | | | | | | | | | | This is only used by Xcode at the moment. It replaces the buildSwigWrapperClasses.py and related per-script-language scripts. It also fixes a couple bugs in those w/r/t Xcode usage: * the presence of the GCC_PREPROCESSOR_DEFINITIONS env var should not be short-circuiting generation of the language binding; rather, only if LLDB_DISABLE_PYTHON is present within that environment variable. * some logic around what to do when building in "non-Makefile" mode. I've switched the handling of that to be on a "--framework" flag - if specified, we build an OS X-style framework; otherwise, we go with non. Putting this up now only attached to the Xcode build so others can look at it but not be affected by it yet. After this, I'll tackle the finalizer, along with trying it locally on Linux. llvm-svn: 253317
* Add the ability (through the SB API & command line) to specify an addressJim Ingham2015-11-1711-26/+282
| | | | | | | | breakpoint as "file address" so that the address breakpoint will track that module even if it gets loaded in a different place. Also fixed the Address breakpoint resolver so that it handles this tracking correctly. llvm-svn: 253308
* Python 3 - Skip a certain test for a particular (swig,python) combo.Zachary Turner2015-11-162-1/+10
| | | | | | | | | | | Current versions of SWIG have a bug with Python 3 that causes Python to assert when iterating over a generator. This patch skips the test for the right combination of Python version and SWIG version. I'm attempting to upstream a patch to SWIG to fix this in a subsequent as-of-yet unreleased version, but I don't know how long that will take. llvm-svn: 253273
* Re-Apply "Add a "not_in()" function you can apply to the list type arguments ↵Ying Chen2015-11-162-4/+19
| | | | | | | | | | | | | | | | | to expectedFailureAll ..." with fix Summary: - Re-Commit r253106 - Initialize self.debug_info in Base::setUp() - Fix argument order when calling check_list_or_lambda for compiler Reviewers: jingham Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D14673 llvm-svn: 253272
* Add the ability to xfail or skip based on swig / python version.Zachary Turner2015-11-161-11/+54
| | | | llvm-svn: 253263
* Insert the SWIG version into LLDB's __init__.pyZachary Turner2015-11-161-5/+30
| | | | | | | The goal here is to allow us to add skip / xfail decorators based on SWIG version. llvm-svn: 253262
* Python3 - Fix some issues related to `PythonFile` class.Zachary Turner2015-11-162-0/+11
| | | | | | | | Python 3 has lots of new debug asserts, and some of these were firing on PythonFile. Specifically related to handling of invalid files. llvm-svn: 253261
* Revert "Add a "not_in()" function you can apply to the list type arguments ↵Pavel Labath2015-11-162-21/+4
| | | | | | | | to expectedFailureAll to reverse" This reverts commit r253106. llvm-svn: 253197
* Add more autotools/gmake NetBSD glueBruce Mitchener2015-11-154-5/+14
| | | | | | | | | | | | | | Summary: This diff approaches building the project natively on NetBSD with the autoconf/gmake framework. Patch by Kamil Rytarowski. Thanks! Reviewers: emaste, clayborg Subscribers: tberghammer, joerg, brucem, lldb-commits Differential Revision: http://reviews.llvm.org/D14531 llvm-svn: 253153
* Allow to override python-config executable name from command lineBruce Mitchener2015-11-153-3/+6
| | | | | | | | | | | | | | Summary: pkgsrc (on NetBSD) ships with python2.7-config. Patch by Kamil Rytarowski. Thanks! Reviewers: emaste, clayborg Subscribers: brucem, lldb-commits, joerg Differential Revision: http://reviews.llvm.org/D14528 llvm-svn: 253152
* Use library discovery for curses and panelBruce Mitchener2015-11-152-2/+17
| | | | | | | | | | | | | | | | | | | Summary: This approach is tunable with custom paths for curses library. It also detects whether there are requirements met. I make use of it on NetBSD. Patch by Kamil Rytarowski. Thanks! Reviewers: clayborg Subscribers: brucem, joerg, lldb-commits Differential Revision: http://reviews.llvm.org/D14529 llvm-svn: 253151
* Uniquify all the type X delete commands via one common base classEnrico Granata2015-11-142-493/+72
| | | | | | This removes a lot of code, which is A Good Thing(TM) llvm-svn: 253140
* Some cleanup of the type X delete commandEnrico Granata2015-11-141-40/+16
| | | | llvm-svn: 253137
* The existing logic to loop over formatters is very pre-C++11, using void* ↵Enrico Granata2015-11-149-48/+291
| | | | | | | | | batons, and function pointers, and raw memory allocations instead of safer more modern constructs This is a first pass at a cleanup of that code, modernizing the "type X clear" commands, and providing the basic infrastructure I plan to use all over More cleanup will come over the next few days llvm-svn: 253125
* Fixes for uniformity in type clear and delete commandsEnrico Granata2015-11-141-8/+8
| | | | llvm-svn: 253113
* Always initialize expression variables' flags field.Sean Callanan2015-11-141-0/+1
| | | | llvm-svn: 253112
* Add a few useful accessors on the data formatters containersEnrico Granata2015-11-141-0/+38
| | | | llvm-svn: 253111
* Minor cleanup to the type format list commandEnrico Granata2015-11-141-2/+2
| | | | llvm-svn: 253110
* Add a "not_in()" function you can apply to the list type arguments to ↵Jim Ingham2015-11-142-4/+21
| | | | | | | | expectedFailureAll to reverse the sense of the test. llvm-svn: 253106
* Fixed a testcase problem where disassembly would fail for nameless functions.Sean Callanan2015-11-131-1/+2
| | | | llvm-svn: 253101
* Change the test to use the instruction list to get the consecutive addresses ↵Jim Ingham2015-11-131-18/+9
| | | | | | | | to break on. Rerunning was being foiled by ASLR. llvm-svn: 253094
* Upstream some data formatter related cleanupsEnrico Granata2015-11-131-7/+18
| | | | llvm-svn: 253093
* Change the null check to an assert.Zachary Turner2015-11-131-1/+3
| | | | llvm-svn: 253092
* Fix indentationEnrico Granata2015-11-131-21/+21
| | | | llvm-svn: 253089
* Remove debugging code left in by accident.Zachary Turner2015-11-131-2/+0
| | | | llvm-svn: 253088
* Fix indentationEnrico Granata2015-11-131-148/+148
| | | | llvm-svn: 253087
OpenPOWER on IntegriCloud