* dwarf2read.c (dwarf2_per_objfile_free): Reorganize buffers to match

the order they're defined in.  munmap .debug_types buffer.
This commit is contained in:
Doug Evans 2010-08-27 16:37:03 +00:00
parent ec48365dd8
commit 16be1145cb
2 changed files with 11 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2010-08-27 Doug Evans <dje@google.com>
* dwarf2read.c (dwarf2_per_objfile_free): Reorganize buffers to match
the order they're defined in. munmap .debug_types buffer.
2010-08-26 Doug Evans <dje@google.com>
* dwarf2read.c (dw2_require_full_path): Rename parameter cu to per_cu.

View File

@ -14545,13 +14545,16 @@ dwarf2_per_objfile_free (struct objfile *objfile, void *d)
{
struct dwarf2_per_objfile *data = d;
/* This is sorted according to the order they're defined in to make it easier
to keep in sync. */
munmap_section_buffer (&data->info);
munmap_section_buffer (&data->abbrev);
munmap_section_buffer (&data->line);
munmap_section_buffer (&data->str);
munmap_section_buffer (&data->macinfo);
munmap_section_buffer (&data->ranges);
munmap_section_buffer (&data->loc);
munmap_section_buffer (&data->macinfo);
munmap_section_buffer (&data->str);
munmap_section_buffer (&data->ranges);
munmap_section_buffer (&data->types);
munmap_section_buffer (&data->frame);
munmap_section_buffer (&data->eh_frame);
munmap_section_buffer (&data->gdb_index);