Skip to content

Commit

Permalink
Fix handling of DW_CFA_restore_state
Browse files Browse the repository at this point in the history
The CFA offset shouldn't be irestored to the saved value in case
of a DW_CFA_restore_state opcode.

Differential revision: http://reviews.llvm.org/D10843

llvm-svn: 241331
  • Loading branch information
Tamas Berghammer committed Jul 3, 2015
1 parent 4526701 commit 49dd6d1
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lldb/source/Symbol/DWARFCallFrameInfo.cpp
Expand Up @@ -743,8 +743,10 @@ DWARFCallFrameInfo::FDEToUnwindPlan (dw_offset_t dwarf_offset, Address startaddr
// useful for compilers that move epilogue code into the body of a
// function.)
{
lldb::addr_t offset = row->GetOffset ();
row = stack.back ();
stack.pop_back ();
row->SetOffset (offset);
}
break;

Expand Down

0 comments on commit 49dd6d1

Please sign in to comment.