Skip to content

Commit

Permalink
Skip terminator record in processFDEs
Browse files Browse the repository at this point in the history
  • Loading branch information
yuyichao committed Jun 6, 2016
1 parent 23ad581 commit 195ed78
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/debuginfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1312,7 +1312,9 @@ static const char *processFDE(const char *Entry, callback f)
uint32_t Length = *((const uint32_t *)P);
P += 4;
uint32_t Offset = *((const uint32_t *)P);
if (Offset != 0) {
// Offset == 0: CIE
// Length == 0: Terminator
if (Offset != 0 && Length != 0) {
f(Entry);
}
return P + Length;
Expand Down

0 comments on commit 195ed78

Please sign in to comment.