Kate Stone
41de9a9791
Moved #include for lldb-python.h to a distinct group with a reminder comment
...
declaring that it must be first. Failure to do so results in build failures
on macOS due to subtle header conflicts.
llvm-svn: 279315
2016-08-19 20:44:07 +00:00
Zachary Turner
c12392c956
Remove debugging code left in by accident.
...
llvm-svn: 253088
2015-11-13 21:35:07 +00:00
Zachary Turner
2419f1d57c
Modernize FormatBacktrace() and make portable for Python 3.
...
llvm-svn: 253085
2015-11-13 21:28:45 +00:00
Zachary Turner
1f1c5a7b44
Another fix for LLDB_DISABLE_PYTHON=1
...
llvm-svn: 253073
2015-11-13 20:28:31 +00:00
Zachary Turner
a87d0ae61b
Fix a bug in PythonExceptionState and add unittest coverage.
...
I forgot to reset the restore flag when calling member function
`Acquire`. The newly added unittest should cover this case.
llvm-svn: 253002
2015-11-13 01:50:19 +00:00
Zachary Turner
3946247caf
Introduce a PythonExceptionState
class.
...
This is a helper class which supports a number of
features including exception to string formatting with
backtrace handling and auto-restore of exception state
upon scope exit.
Additionally, unit tests are included to verify the
feature set of the class.
llvm-svn: 252994
2015-11-13 01:24:52 +00:00