From e7030f1508cdc9a7e33b30a5d3711c274d898509 Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Sun, 4 May 2008 20:04:48 +0000 Subject: * dwarf2read.c (dwarf2_ranges_read, read_partial_die): Initialize locals. --- gdb/dwarf2read.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'gdb/dwarf2read.c') diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 67c4ef8..193a387 100644 --- a/gdb/dwarf2read.c +++ b/gdb/dwarf2read.c @@ -3226,8 +3226,7 @@ dwarf2_ranges_read (unsigned offset, CORE_ADDR *low_return, low_set = 0; - if (ranges_pst != NULL) - baseaddr = ANOFFSET (objfile->section_offsets, SECT_OFF_TEXT (objfile)); + baseaddr = ANOFFSET (objfile->section_offsets, SECT_OFF_TEXT (objfile)); while (1) { @@ -5858,7 +5857,7 @@ read_partial_die (struct partial_die_info *part_die, struct attribute attr; int has_low_pc_attr = 0; int has_high_pc_attr = 0; - CORE_ADDR base_address; + CORE_ADDR base_address = 0; enum { base_address_none, -- cgit v1.1