From: Doug Evans Date: Fri, 27 Aug 2010 16:37:03 +0000 (+0000) Subject: * dwarf2read.c (dwarf2_per_objfile_free): Reorganize buffers to match X-Git-Tag: sid-snapshot-20100901~49 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=16be1145cbb1f197613787e689aa53479ba72afa;p=platform%2Fupstream%2Fbinutils.git * dwarf2read.c (dwarf2_per_objfile_free): Reorganize buffers to match the order they're defined in. munmap .debug_types buffer. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 3813d5b79bb..874a078af5d 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2010-08-27 Doug Evans + + * 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 * dwarf2read.c (dw2_require_full_path): Rename parameter cu to per_cu. diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 628f2df55c3..06ee486e65a 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -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);