================
@@ -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
_______________________________________________
lldb-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits