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