Fix infinite loop in dwarf parser