[Lldb-commits] [lldb] Handle accelerated ObjC Class method dispatchs. (PR #188392)

via lldb-commits lldb-commits at lists.llvm.org
Wed Mar 25 18:48:10 PDT 2026


================
@@ -813,24 +811,38 @@ AppleObjCTrampolineHandler::GetStepThroughDispatchPlan(Thread &thread,
   Target &target = thread.GetProcess()->GetTarget();
   llvm::StringRef sym_name;
   const DispatchFunction *this_dispatch = nullptr;
+  bool in_sel_stub = false;
+  bool in_class_sel_stub = false;
 
   if (target.ResolveLoadAddress(curr_pc, func_addr)) {
     const Symbol *curr_sym = func_addr.CalculateSymbolContextSymbol();
     if (curr_sym)
       sym_name = curr_sym->GetName().GetStringRef();
 
-    if (!sym_name.empty() && !sym_name.consume_front("objc_msgSend$"))
-      sym_name = {};
-    else
-      this_dispatch = &sel_stub_dispatch;
+    if (!sym_name.empty()) {
----------------
jimingham wrote:

Your version is better.  Originally I was checking all the "odd reasons" at the end of the method, so I had to carry that data along.  But when I moved this action to the front, having those bools lying around was confusing.

https://github.com/llvm/llvm-project/pull/188392


More information about the lldb-commits mailing list