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

Jason Molenda via lldb-commits lldb-commits at lists.llvm.org
Tue Mar 24 21:58:50 PDT 2026


================
@@ -813,24 +813,37 @@ 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())
+      if (sym_name.consume_front("objc_msgSend$")) {
----------------
jasonmolenda wrote:

the contains method would test for the presence of that anywhere in the symbol name; probably unique enough to use this less-position-specific test.

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


More information about the lldb-commits mailing list