aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2read.c
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2010-08-27 16:37:03 +0000
committerDoug Evans <dje@google.com>2010-08-27 16:37:03 +0000
commit16be1145cbb1f197613787e689aa53479ba72afa (patch)
tree78cb02def50dc190c98ab786f5c3726374452ae7 /gdb/dwarf2read.c
parentec48365dd86cceb7bfc5e1c9ba9a68b01600abf3 (diff)
downloadgdb-16be1145cbb1f197613787e689aa53479ba72afa.zip
gdb-16be1145cbb1f197613787e689aa53479ba72afa.tar.gz
gdb-16be1145cbb1f197613787e689aa53479ba72afa.tar.bz2
* dwarf2read.c (dwarf2_per_objfile_free): Reorganize buffers to match
the order they're defined in. munmap .debug_types buffer.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r--gdb/dwarf2read.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 628f2df..06ee486 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);