aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2013-04-01 16:42:15 +0000
committerDoug Evans <dje@google.com>2013-04-01 16:42:15 +0000
commit5c6fa7ab3be79333a936f04d18173c1240647855 (patch)
tree8e44bf7db4524f00e94cfac71a6a3b944b9188ff
parentcebca8c1a2c854bf730f1575c2e605d7f9d13c24 (diff)
downloadgdb-5c6fa7ab3be79333a936f04d18173c1240647855.zip
gdb-5c6fa7ab3be79333a936f04d18173c1240647855.tar.gz
gdb-5c6fa7ab3be79333a936f04d18173c1240647855.tar.bz2
* dwarf2read.c (free_dwo_file): Add comment.
(dwarf2_per_objfile_free): Unref dwp bfd.
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/dwarf2read.c3
2 files changed, 8 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index a871c39..a02a9fd 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2013-04-01 Doug Evans <dje@google.com>
+
+ * dwarf2read.c (free_dwo_file): Add comment.
+ (dwarf2_per_objfile_free): Unref dwp bfd.
+
2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
* coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 4a0ccc8..d6fad87 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -9387,6 +9387,7 @@ free_dwo_file (struct dwo_file *dwo_file, struct objfile *objfile)
int ix;
struct dwarf2_section_info *section;
+ /* Note: dbfd is NULL for virtual DWO files. */
gdb_bfd_unref (dwo_file->dbfd);
VEC_free (dwarf2_section_info_def, dwo_file->sections.types);
@@ -19836,6 +19837,8 @@ dwarf2_per_objfile_free (struct objfile *objfile, void *d)
if (data->dwo_files)
free_dwo_files (data->dwo_files, objfile);
+ if (data->dwp_file)
+ gdb_bfd_unref (data->dwp_file->dbfd);
if (data->dwz_file && data->dwz_file->dwz_bfd)
gdb_bfd_unref (data->dwz_file->dwz_bfd);