aboutsummaryrefslogtreecommitdiff
path: root/gdb/dwarf2read.c
diff options
context:
space:
mode:
authorHui Zhu <teawater@gmail.com>2010-08-13 03:14:03 +0000
committerHui Zhu <teawater@gmail.com>2010-08-13 03:14:03 +0000
commit1d9ec526eeeeb28ba849e65993860f2ef1b750d2 (patch)
treee8a72c87135bf0c863492d0e8dbb4e4da8fc7f2e /gdb/dwarf2read.c
parent0ac6fba0ecc9375477561f72df351a8ea84c899b (diff)
downloadgdb-1d9ec526eeeeb28ba849e65993860f2ef1b750d2.zip
gdb-1d9ec526eeeeb28ba849e65993860f2ef1b750d2.tar.gz
gdb-1d9ec526eeeeb28ba849e65993860f2ef1b750d2.tar.bz2
2010-08-13 Hui Zhu <teawater@gmail.com>
* dwarf2read.c (load_partial_comp_unit): Initialize free_cu_cleanup. (read_comp_unit): Initialize back_to.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r--gdb/dwarf2read.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index 342f702..09e7804 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -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)