From e7030f1508cdc9a7e33b30a5d3711c274d898509 Mon Sep 17 00:00:00 2001 From: Daniel Jacobowitz Date: Sun, 4 May 2008 20:04:48 +0000 Subject: [PATCH] * dwarf2read.c (dwarf2_ranges_read, read_partial_die): Initialize locals. --- gdb/ChangeLog | 5 +++++ gdb/dwarf2read.c | 5 ++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index c933612eba3..9f146985c89 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2008-05-04 Daniel Jacobowitz + + * dwarf2read.c (dwarf2_ranges_read, read_partial_die): Initialize + locals. + 2008-05-04 Pedro Alves * breakpoint.c (update_breakpoints_after_exec): Delete bp_longjmp diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c index 67c4ef88f18..193a38758b5 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, -- 2.30.2