]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2010-08-13 Hui Zhu <teawater@gmail.com>
authorHui Zhu <teawater@gmail.com>
Fri, 13 Aug 2010 03:14:03 +0000 (03:14 +0000)
committerHui Zhu <teawater@gmail.com>
Fri, 13 Aug 2010 03:14:03 +0000 (03:14 +0000)
* dwarf2read.c (load_partial_comp_unit): Initialize free_cu_cleanup.
(read_comp_unit): Initialize back_to.

gdb/ChangeLog
gdb/dwarf2read.c

index f05829cfb40c77007bee038fc6751b944231bd64..e79a1eda211f011be3b8a2a0116c6e862b13d9aa 100644 (file)
@@ -1,3 +1,8 @@
+2010-08-13  Hui Zhu  <teawater@gmail.com>
+
+       * dwarf2read.c (load_partial_comp_unit): Initialize free_cu_cleanup.
+       (read_comp_unit): Initialize back_to.
+
 2010-08-12  Daniel Jacobowitz  <dan@codesourcery.com>
            Pedro Alves  <pedro@codesourcery.com>
 
index 342f702e9ee2920797f78c301b9f025d093865d2..09e78042d31b81f35be62584c1c53f13e1975a27 100644 (file)
@@ -3247,7 +3247,7 @@ load_partial_comp_unit (struct dwarf2_per_cu_data *this_cu,
   gdb_byte *info_ptr, *beg_of_comp_unit;
   struct die_info *comp_unit_die;
   struct dwarf2_cu *cu;
-  struct cleanup *free_abbrevs_cleanup, *free_cu_cleanup;
+  struct cleanup *free_abbrevs_cleanup, *free_cu_cleanup = NULL;
   struct attribute *attr;
   int has_children;
   struct die_reader_specs reader_specs;
@@ -7974,7 +7974,7 @@ read_comp_unit (gdb_byte *info_ptr, struct dwarf2_cu *cu)
 {
   struct die_reader_specs reader_specs;
   int read_abbrevs = 0;
-  struct cleanup *back_to;
+  struct cleanup *back_to = NULL;
   struct die_info *die;
 
   if (cu->dwarf2_abbrevs == NULL)