diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c1c602694da..fbf13260f7d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2006-11-28 Daniel Jacobowitz + + * dwarf2-frame.c (decode_frame_entry_1): Skip unknown augmentations + without skipping the CIE. + 2006-11-28 Vladimir Prus Fetch varobj values from memory in a single place, diff --git a/gdb/dwarf2-frame.c b/gdb/dwarf2-frame.c index edd9a7536ae..861e19d7490 100644 --- a/gdb/dwarf2-frame.c +++ b/gdb/dwarf2-frame.c @@ -1674,15 +1674,12 @@ 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. */ - buf = cie->initial_instructions; + if (cie->initial_instructions) + buf = cie->initial_instructions; break; } }