[Lldb-commits] [lldb] [lldb] Follow serial outlined functions when scanning for an unwind plan (PR #222800)

Felipe de Azevedo Piovezan via lldb-commits lldb-commits at lists.llvm.org
Mon Sep 14 01:58:18 PDT 2026


================
@@ -80,14 +82,17 @@ static void DumpInstToLog(Log *log, Instruction &inst,
 
 bool UnwindAssemblyInstEmulation::GetNonCallSiteUnwindPlanFromAssembly(
     AddressRange &range, uint8_t *opcode_data, size_t opcode_size,
-    UnwindPlan &unwind_plan) {
+    Target *target, UnwindPlan &unwind_plan) {
   if (opcode_data == nullptr || opcode_size == 0)
     return false;
 
   if (range.GetByteSize() == 0 || !range.GetBaseAddress().IsValid() ||
       !m_inst_emulator_up)
     return false;
 
+  m_target = target;
+  llvm::scope_exit clear_target([this] { m_target = nullptr; });
----------------
felipepiovezan wrote:

This looks a bit hacky, why not pass the target when calling `EmulateOutlinedFunction`?

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


More information about the lldb-commits mailing list