From abd313a55cc6a8b448acc06367620f4e1fe0be06 Mon Sep 17 00:00:00 2001 From: Rene Gollent Date: Tue, 7 Dec 2010 00:06:55 +0000 Subject: [PATCH] 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 --- src/apps/debugger/dwarf/DwarfFile.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/apps/debugger/dwarf/DwarfFile.cpp b/src/apps/debugger/dwarf/DwarfFile.cpp index abf8ba6837..5b351aecf0 100644 --- a/src/apps/debugger/dwarf/DwarfFile.cpp +++ b/src/apps/debugger/dwarf/DwarfFile.cpp @@ -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); }