[Lldb-commits] [lldb] [lldb] Follow serial outlined functions when scanning for an unwind plan (PR #222800)
Sam Elliott via lldb-commits
lldb-commits at lists.llvm.org
Thu Sep 10 16:53:21 PDT 2026
================
@@ -256,6 +270,84 @@ bool UnwindAssemblyInstEmulation::GetNonCallSiteUnwindPlanFromAssembly(
return unwind_plan.GetRowCount() > 0;
}
+bool UnwindAssemblyInstEmulation::EmulateOutlinedFunction(Address func_addr) {
+ if (!m_target)
+ return false;
+
+ Symbol *symbol = func_addr.CalculateSymbolContextSymbol();
+ if (!symbol)
+ return false;
+
+ // The machine outliner starts every outlined function with
+ // _OUTLINED_FUNCTION.
+ llvm::StringRef name = symbol->GetName().GetStringRef();
+ name.consume_front("_");
----------------
lenary wrote:
Yeah my issue isn't with looking for `OUTLINED_FUNCTION`, it's the mach-o underscore handling that I thought was a bit fishy.
https://github.com/llvm/llvm-project/pull/222800
More information about the lldb-commits
mailing list