* dwarf2-frame.c (decode_frame_entry_1): Skip unknown augmentations

without skipping the CIE.
This commit is contained in:
Daniel Jacobowitz 2006-11-28 17:28:29 +00:00
parent acd65feb7e
commit 3e9a2e5245
2 changed files with 9 additions and 7 deletions

View File

@ -1,3 +1,8 @@
2006-11-28 Daniel Jacobowitz <dan@codesourcery.com>
* dwarf2-frame.c (decode_frame_entry_1): Skip unknown augmentations
without skipping the CIE.
2006-11-28 Vladimir Prus <vladimir@codesourcery.com>
Fetch varobj values from memory in a single place,

View File

@ -1674,14 +1674,11 @@ decode_frame_entry_1 (struct comp_unit *unit, gdb_byte *start, int eh_frame_p)
augmentation++;
}
/* Otherwise we have an unknown augmentation.
Bail out unless we saw a 'z' prefix. */
/* Otherwise we have an unknown augmentation. Assume that either
there is no augmentation data, or we saw a 'z' prefix. */
else
{
if (cie->initial_instructions == NULL)
return end;
/* Skip unknown augmentations. */
if (cie->initial_instructions)
buf = cie->initial_instructions;
break;
}