]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
LVU: zero-initialize line info on asm source
authorAlexandre Oliva <aoliva@redhat.com>
Wed, 22 Feb 2017 17:02:19 +0000 (14:02 -0300)
committerAlexandre Oliva <aoliva@redhat.com>
Wed, 22 Feb 2017 17:02:19 +0000 (14:02 -0300)
gas/dwarf2dbg.c

index e3f56479423507775054ae74a0864915e0262454..0f9197866e68b7e713d11ee3ba9419c43719d37b 100644 (file)
@@ -496,12 +496,14 @@ dwarf2_where (struct dwarf2_line_info *line)
 {
   if (debug_type == DEBUG_DWARF2)
     {
+      memset (line, 0, sizeof (*line));
       const char *filename = as_where (&line->line);
       line->filenum = get_filenum (filename, 0);
       line->column = 0;
       line->flags = DWARF2_FLAG_IS_STMT;
       line->isa = current.isa;
       line->discriminator = current.discriminator;
+      line->view = NULL;
     }
   else
     *line = current;