[Lldb-commits] [lldb] f16cecf - [lldb] Implement ObjCExceptionThrowFrameRecognizer::GetName()

Dave Lee via lldb-commits lldb-commits at lists.llvm.org
Fri Oct 16 14:24:10 PDT 2020


Author: Dave Lee
Date: 2020-10-16T14:24:03-07:00
New Revision: f16cecf3752a7c168293934d2ba6472a6b405694

URL: https://github.com/llvm/llvm-project/commit/f16cecf3752a7c168293934d2ba6472a6b405694
DIFF: https://github.com/llvm/llvm-project/commit/f16cecf3752a7c168293934d2ba6472a6b405694.diff

LOG: [lldb] Implement ObjCExceptionThrowFrameRecognizer::GetName()

Implement `GetName` for `ObjCExceptionThrowFrameRecognizer`. Otherwise, `frame recognizer list` shows "(internal)" for the name.

Differential Revision: https://reviews.llvm.org/D89589

Added: 
    

Modified: 
    lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp

Removed: 
    


################################################################################
diff  --git a/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp b/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp
index ae77dfeb4ad4..df364e2ee3bf 100644
--- a/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp
+++ b/lldb/source/Plugins/LanguageRuntime/ObjC/AppleObjCRuntime/AppleObjCRuntimeV2.cpp
@@ -2709,6 +2709,9 @@ class ObjCExceptionThrowFrameRecognizer : public StackFrameRecognizer {
     return lldb::RecognizedStackFrameSP(
         new ObjCExceptionRecognizedStackFrame(frame));
   };
+  std::string GetName() override {
+    return "ObjC Exception Throw StackFrame Recognizer";
+  }
 };
 
 static void RegisterObjCExceptionRecognizer(Process *process) {


        


More information about the lldb-commits mailing list