[PATCH 3/8] Change fde table to a vector
Simon Marchi
simark@simark.ca
Wed Feb 12 03:33:00 GMT 2020
>> @@ -2215,42 +2198,20 @@ dwarf2_build_frame_info (struct objfile *objfile)
>> warning (_("skipping .debug_frame info of %s: %s"),
>> objfile_name (objfile), e.what ());
>>
>> - if (fde_table.num_entries != 0)
>> - {
>> - fde_table.num_entries = num_old_fde_entries;
>> - if (num_old_fde_entries == 0)
>> - {
>> - xfree (fde_table.entries);
>> - fde_table.entries = NULL;
>> - }
>> - else
>> - {
>> - fde_table.entries
>> - = XRESIZEVEC (struct dwarf2_fde *, fde_table.entries,
>> - fde_table.num_entries);
>> - }
>> - }
>> - fde_table.num_entries = num_old_fde_entries;
>> + fde_table.resize (num_old_fde_entries);
>> }
>> }
>>
>> /* Copy fde_table to obstack: it is needed at runtime. */
>
> I think that comment is stale.
Sorry, I just noticed that Luis had already pointed this out.
Simon
More information about the Gdb-patches
mailing list