aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog4
-rw-r--r--gdb/dwarf2read.c3
2 files changed, 6 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 051e257..2a703ae 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,7 @@
+2017-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ * dwarf2_rnglists_process: Initialize range_beginning and range_end.
+
2017-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
* NEWS (Changes since GDB 7.12): Add DWARF-5.
diff --git a/gdb/dwarf2read.c b/gdb/dwarf2read.c
index ae7d3f2..8a6e1f3 100644
--- a/gdb/dwarf2read.c
+++ b/gdb/dwarf2read.c
@@ -12030,7 +12030,8 @@ dwarf2_rnglists_process (unsigned offset, struct dwarf2_cu *cu,
while (1)
{
- CORE_ADDR range_beginning, range_end;
+ /* Initialize it due to a false compiler warning. */
+ CORE_ADDR range_beginning = 0, range_end = 0;
const gdb_byte *buf_end = (dwarf2_per_objfile->rnglists.buffer
+ dwarf2_per_objfile->rnglists.size);
unsigned int bytes_read;