From: Doug Evans Date: Fri, 27 Aug 2010 18:37:18 +0000 (+0000) Subject: * dwarf2read.c (dwarf2_per_objfile_free): Reorganize buffers to match X-Git-Tag: gdb_7_2-2010-09-02-release~12 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=923a4ae1a08b0351db7f43e0d793c3ca22c6ed07;p=thirdparty%2Fbinutils-gdb.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 70c2d52a7c8..28459c101f2 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-19 Stan Shebs * NEWS: Mention some additional changes. diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index acbeed656c5..1e752357e00 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -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); }