aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorDaniel Jacobowitz <drow@false.org>2008-05-04 20:04:48 +0000
committerDaniel Jacobowitz <drow@false.org>2008-05-04 20:04:48 +0000
commite7030f1508cdc9a7e33b30a5d3711c274d898509 (patch)
treef42dbf0a05788f24d4296b6f0f5def5c2055ea95 /gdb
parent9dd789d04055fc8240190e113562934e0c020c38 (diff)
downloadgdb-e7030f1508cdc9a7e33b30a5d3711c274d898509.zip
gdb-e7030f1508cdc9a7e33b30a5d3711c274d898509.tar.gz
gdb-e7030f1508cdc9a7e33b30a5d3711c274d898509.tar.bz2
* dwarf2read.c (dwarf2_ranges_read, read_partial_die): Initialize
locals.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/dwarf2read.c5
2 files changed, 7 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index c933612..9f14698 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,8 @@
+2008-05-04 Daniel Jacobowitz <dan@codesourcery.com>
+
+ * dwarf2read.c (dwarf2_ranges_read, read_partial_die): Initialize
+ locals.
+
2008-05-04 Pedro Alves <pedro@codesourcery.com>
* breakpoint.c (update_breakpoints_after_exec): Delete bp_longjmp
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,