When parsing the CIE, the offset being passed to _ParseFrameInfoInstructions() was not taking the initial CIE offset into account. This led to completely the wrong instructions being parsed, which in turn resulted in stack frames for some functions failing to unwind correctly.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39754 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
parent
5f0c5d527c
commit
abd313a55c
@ -1613,8 +1613,8 @@ DwarfFile::_ParseCIE(CompilationUnit* unit, CfaContext& context,
|
||||
if (remaining < 0)
|
||||
return B_BAD_DATA;
|
||||
|
||||
return _ParseFrameInfoInstructions(unit, context, dataReader.Offset(),
|
||||
remaining);
|
||||
return _ParseFrameInfoInstructions(unit, context, cieOffset
|
||||
+ dataReader.Offset(), remaining);
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user