When unwinding the stack frame, correctly account for the number of

bytes of augmentation data that were skipped. Fixes some of the problems 
seen with, e.g. StyledEdit in the Debugger, though it doesn't help 
explain the corresponding problems seen with gdb as well.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@39703 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Rene Gollent 2010-12-02 14:22:36 +00:00
parent ac701f7e7b
commit f07f493d26

View File

@ -666,12 +666,14 @@ DwarfFile::UnwindCallFrame(CompilationUnit* unit,
// read the FDE augmentation data (if any)
FDEAugmentation fdeAugmentation;
off_t fdeOffset = dataReader.Offset();
error = cieAugmentation.ReadFDEData(dataReader,
fdeAugmentation);
if (error != B_OK) {
TRACE_CFI(" failed to read FDE augmentation data!\n");
return error;
}
remaining -= dataReader.Offset() - fdeOffset;
error = context.SaveInitialRuleSet();
if (error != B_OK)