summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--bfd/ChangeLog4
-rw-r--r--bfd/dwarf2.c1
2 files changed, 5 insertions, 0 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index ade05112ee..ea86440d8c 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,7 @@
+2010-07-06 H.J. Lu <hongjiu.lu@intel.com>
+
+ * dwarf2.c (add_line_info): Initialize prev_line.
+
2010-07-06 Alan Modra <amodra@gmail.com>
* elf32-ppc.c (ppc_elf_relax_section): Insert branch around
diff --git a/bfd/dwarf2.c b/bfd/dwarf2.c
index ffe110857e..6983a1c349 100644
--- a/bfd/dwarf2.c
+++ b/bfd/dwarf2.c
@@ -1058,6 +1058,7 @@ add_line_info (struct line_info_table *table,
return FALSE;
/* Set member data of 'info'. */
+ info->prev_line = NULL;
info->address = address;
info->op_index = op_index;
info->line = line;