* dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
authorDoug Evans <dje@google.com>
Fri, 29 Mar 2013 21:42:04 +0000 (21:42 +0000)
committerDoug Evans <dje@google.com>
Fri, 29 Mar 2013 21:42:04 +0000 (21:42 +0000)
unnecessary, cleanup.

gdb/ChangeLog
gdb/dwarf2read.c

index 7467b407c8ab4f92c1ebdae12539f999233be332..e49505d694edd15de9a804fbd5138bae05015471 100644 (file)
@@ -1,5 +1,8 @@
 2013-03-29  Doug Evans  <dje@google.com>
 
+       * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
+       unnecessary, cleanup.
+
        * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
 
        * dwarf2read.c (read_cutu_die_from_dwo): New function.
index 10861acbbde88fe2a0858e4980cd3c935bedb4cc..c23e6c10896da649e5994351d159f1cbbbbb0579 100644 (file)
@@ -9198,8 +9198,6 @@ open_and_init_dwp_file (const char *comp_dir)
   dwp_file->dbfd = dbfd;
   do_cleanups (cleanups);
 
-  cleanups = make_cleanup (free_dwo_file_cleanup, dwp_file);
-
   /* +1: section 0 is unused */
   dwp_file->num_sections = bfd_count_sections (dbfd) + 1;
   dwp_file->elf_sections =
@@ -9214,8 +9212,6 @@ open_and_init_dwp_file (const char *comp_dir)
 
   dwp_file->loaded_cutus = allocate_dwp_loaded_cutus_table (objfile);
 
-  discard_cleanups (cleanups);
-
   if (dwarf2_read_debug)
     {
       fprintf_unfiltered (gdb_stdlog, "DWP file found: %s\n", dwp_file->name);