[Lldb-commits] [PATCH] D43886: [lldb] Add GetCurrentException APIs to SBThread, add frame recognizer for objc_exception_throw for Obj-C runtimes
Kuba (Brecka) Mracek via Phabricator via lldb-commits
lldb-commits at lists.llvm.org
Wed Nov 28 13:08:36 PST 2018
kubamracek updated this revision to Diff 175752.
kubamracek added a comment.
Updated patch. I've added a static `AppleObjCRuntime::GetExceptionThrowLocation()`, which returns the location of the exception throw breakpoint for the Obj-C runtime. I tried adding it as virtual method on LanguageRuntime instead, but then it wasn't clear to me how to make it easily return either an optional (there's runtimes that don't have exceptions) or an array (as you said, C++ will need multiple locations) and how to make existing code CreateExceptionResolver work with that. Let me know if that's okay.
CHANGES SINCE LAST ACTION
https://reviews.llvm.org/D43886/new/
https://reviews.llvm.org/D43886
Files:
include/lldb/API/SBThread.h
include/lldb/Target/StackFrameRecognizer.h
include/lldb/Target/Thread.h
packages/Python/lldbsuite/test/lang/objc/exceptions/TestObjCExceptions.py
source/API/SBThread.cpp
source/Commands/CommandObjectThread.cpp
source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntime.cpp
source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntime.h
source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV1.cpp
source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp
source/Target/StackFrameRecognizer.cpp
source/Target/Thread.cpp
-------------- next part --------------
A non-text attachment was scrubbed...
Name: D43886.175752.patch
Type: text/x-patch
Size: 15512 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/lldb-commits/attachments/20181128/a058d01d/attachment-0001.bin>
More information about the lldb-commits
mailing list