diff --git a/src/apps/debugger/dwarf/DwarfFile.cpp b/src/apps/debugger/dwarf/DwarfFile.cpp index 1ab1208808..519424c879 100644 --- a/src/apps/debugger/dwarf/DwarfFile.cpp +++ b/src/apps/debugger/dwarf/DwarfFile.cpp @@ -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)