]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* dwarf2read.c (dwarf2_per_objfile_free): Reorganize buffers to match
authorDoug Evans <dje@google.com>
Fri, 27 Aug 2010 18:37:18 +0000 (18:37 +0000)
committerDoug Evans <dje@google.com>
Fri, 27 Aug 2010 18:37:18 +0000 (18:37 +0000)
the order they're defined in.  munmap .debug_types buffer.

gdb/ChangeLog
gdb/dwarf2read.c

index 70c2d52a7c8e0beec71563eddd45e8959621520d..28459c101f220b9c47ecaf722a938defeb77784c 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-19  Stan Shebs  <stan@codesourcery.com>
 
        * NEWS: Mention some additional changes.
index acbeed656c54108f58db746891b1cfdfc08d93ef..1e752357e00a5ea10f77e837fa1ce5aef9efdfda 100644 (file)
@@ -12579,13 +12579,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);
 }