[all-commits] [llvm/llvm-project] 7cf993: [DWARF] Store CFA value on DW_CFA_remember_state

aengelke via All-commits all-commits at lists.llvm.org
Wed Jan 4 13:51:26 PST 2023


  Branch: refs/heads/main
  Home:   https://github.com/llvm/llvm-project
  Commit: 7cf99347d4f4341b2f8a53eaaed6f0e137b30869
      https://github.com/llvm/llvm-project/commit/7cf99347d4f4341b2f8a53eaaed6f0e137b30869
  Author: Alexis Engelke <engelke at in.tum.de>
  Date:   2023-01-04 (Wed, 04 Jan 2023)

  Changed paths:
    M llvm/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp
    M llvm/unittests/DebugInfo/DWARF/DWARFDebugFrameTest.cpp

  Log Message:
  -----------
  [DWARF] Store CFA value on DW_CFA_remember_state

Previously, CFA_remember_state stored only the register locations but ignored the CFA value. This needs also to be remembered and restored for correct behavior. The problem occurs, e.g., on functions with multiple epilogues, where the CFA value after the first epilogue is becomes wrong.

Reviewed By: #debug-info, MaskRay

Differential Revision: https://reviews.llvm.org/D140338




More information about the All-commits mailing list