[PATCH] D140338: [DWARF] Store CFA value on DW_CFA_remember_state

Alexis Engelke via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 19 12:37:51 PST 2022


aengelke created this revision.
aengelke added a reviewer: debug-info.
Herald added a subscriber: hiraditya.
Herald added a project: All.
aengelke requested review of this revision.
Herald added a project: LLVM.
Herald added a subscriber: llvm-commits.

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.


Repository:
  rG LLVM Github Monorepo

https://reviews.llvm.org/D140338

Files:
  llvm/lib/DebugInfo/DWARF/DWARFDebugFrame.cpp
  llvm/unittests/DebugInfo/DWARF/DWARFDebugFrameTest.cpp

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D140338.484037.patch
Type: text/x-patch
Size: 5407 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20221219/a7eb55e8/attachment.bin>


More information about the llvm-commits mailing list