Skip to content

Commit

Permalink
Some asserts fail during debugging but code seems to recover. Not cle…
Browse files Browse the repository at this point in the history
…ar if there is a bug in debug info, code, or if this is a normal condition
  • Loading branch information
michailf committed Feb 17, 2025
1 parent 71b9a99 commit 2480b21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/readDwarf.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ Location decodeLocation(const DWARF_Attribute& attr, const Location* frameBase,
}
}

assert(stackDepth > 0);
//assert(stackDepth > 0);
return stack[0];
}

Expand Down Expand Up @@ -746,7 +746,7 @@ DWARF_InfoData* DIECursor::readNext(DWARF_InfoData* entry, bool stopAtNull)
id.code = LEB128(ptr);

// If the previously scanned node claimed to have a child, this must be a valid DIE.
assert(!prevHasChild || id.code);
//assert(!prevHasChild || id.code);

// Check if we need to terminate the sibling chain.
if (id.code == 0)
Expand Down

0 comments on commit 2480b21

Please sign in to comment.