diff options
author | Daniel Jacobowitz <drow@false.org> | 2008-05-04 20:04:48 +0000 |
---|---|---|
committer | Daniel Jacobowitz <drow@false.org> | 2008-05-04 20:04:48 +0000 |
commit | e7030f1508cdc9a7e33b30a5d3711c274d898509 (patch) | |
tree | f42dbf0a05788f24d4296b6f0f5def5c2055ea95 /gdb/dwarf2read.c | |
parent | 9dd789d04055fc8240190e113562934e0c020c38 (diff) | |
download | gdb-e7030f1508cdc9a7e33b30a5d3711c274d898509.zip gdb-e7030f1508cdc9a7e33b30a5d3711c274d898509.tar.gz gdb-e7030f1508cdc9a7e33b30a5d3711c274d898509.tar.bz2 |
* dwarf2read.c (dwarf2_ranges_read, read_partial_die): Initialize
locals.
Diffstat (limited to 'gdb/dwarf2read.c')
-rw-r--r-- | gdb/dwarf2read.c | 5 |
1 files changed, 2 insertions, 3 deletions
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, |