From 16be1145cbb1f197613787e689aa53479ba72afa Mon Sep 17 00:00:00 2001 From: Doug Evans Date: Fri, 27 Aug 2010 16:37:03 +0000 Subject: [PATCH] * dwarf2read.c (dwarf2_per_objfile_free): Reorganize buffers to match the order they're defined in. munmap .debug_types buffer. --- gdb/ChangeLog | 5 +++++ gdb/dwarf2read.c | 7 +++++-- 2 files changed, 10 insertions(+), 2 deletions(-) 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); -- 2.30.2