* dwarf2read.c (dwarf2_per_objfile_free): Reorganize buffers to match
authorDoug Evans <dje@google.com>
Fri, 27 Aug 2010 16:37:03 +0000 (16:37 +0000)
committerDoug Evans <dje@google.com>
Fri, 27 Aug 2010 16:37:03 +0000 (16:37 +0000)
the order they're defined in.  munmap .debug_types buffer.

gdb/ChangeLog
gdb/dwarf2read.c

index 3813d5b79bb699facbe0c88341989cb3d5d8948f..874a078af5d234400c241abd175b2a82f126cf65 100644 (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.
index 628f2df55c3fb5bcadd54225aff8d241caa97271..06ee486e65a8d8c3224438d2f7794436a0477db9 100644 (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->loc);
   munmap_section_buffer (&data->macinfo);
+  munmap_section_buffer (&data->str);
   munmap_section_buffer (&data->ranges);
-  munmap_section_buffer (&data->loc);
+  munmap_section_buffer (&data->types);
   munmap_section_buffer (&data->frame);
   munmap_section_buffer (&data->eh_frame);
   munmap_section_buffer (&data->gdb_index);