[Lldb-commits] [lldb] [lldb/aarch64] Fix unwinding when signal interrupts a leaf function (PR #91321)

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Tue May 7 05:02:39 PDT 2024


================
@@ -467,7 +465,7 @@ size_t UnwindAssemblyInstEmulation::WriteMemory(
         m_pushed_regs[reg_num] = addr;
         const int32_t offset = addr - m_initial_sp;
         m_curr_row->SetRegisterLocationToAtCFAPlusOffset(reg_num, offset,
-                                                         cant_replace);
+                                                         /*can_replace=*/true);
----------------
labath wrote:

This could be narrowed down so that it only overwrites the `<same>` rules, but I'm not sure it's necessary given that lines 464&465 ensure that the register can get pushed only once.

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


More information about the lldb-commits mailing list