summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test/python_api/debugger/TestDebuggerAPI.py
diff options
context:
space:
mode:
authorKuba Mracek <mracek@apple.com>2018-11-28 22:01:52 +0000
committerKuba Mracek <mracek@apple.com>2018-11-28 22:01:52 +0000
commite60bc53b4611d98352345e48be4c25214e0bf858 (patch)
treea608c61b3dd10b4ffc3bb9bd5d48a6bc464218b7 /lldb/packages/Python/lldbsuite/test/python_api/debugger/TestDebuggerAPI.py
parenta3e7a167c499bfe35628676137637c5265bb06aa (diff)
downloadbcm5719-llvm-e60bc53b4611d98352345e48be4c25214e0bf858.tar.gz
bcm5719-llvm-e60bc53b4611d98352345e48be4c25214e0bf858.zip
[lldb] Add GetCurrentException APIs to SBThread, add frame recognizer for objc_exception_throw for Obj-C runtimes
This adds new APIs and a command to deal with exceptions (mostly Obj-C exceptions): SBThread and Thread get GetCurrentException API, which returns an SBValue/ValueObjectSP with the current exception for a thread. "Current" means an exception that is currently being thrown, caught or otherwise processed. In this patch, we only know about the exception when in objc_exception_throw, but subsequent patches will expand this (and add GetCurrentExceptionBacktrace, which will return an SBThread/ThreadSP containing a historical thread backtrace retrieved from the exception object. Currently unimplemented, subsequent patches will implement this). Extracting the exception from objc_exception_throw is implemented by adding a frame recognizer. This also add a new sub-command "thread exception", which prints the current exception. Differential Revision: https://reviews.llvm.org/D43886 llvm-svn: 347813
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/python_api/debugger/TestDebuggerAPI.py')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud