[binutils-gdb] Drop view when consuming line info

Alexandre Oliva aoliva@sourceware.org
Fri Jun 1 09:05:00 GMT 2018


https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=3a00b02d277023ccfc5ccba3fcd4bae7aa485a49

commit 3a00b02d277023ccfc5ccba3fcd4bae7aa485a49
Author: Alexandre Oliva <aoliva@redhat.com>
Date:   Fri Jun 1 06:00:25 2018 -0300

    Drop view when consuming line info
    
    Fix locviews on ia64.  If we do not drop the view after copying line
    info to slots in the bundle, we may attempt to compute the view more
    than once and get very confused.
    
    for  gas/ChangeLog
    
    	* dwarf2dbg.c (dwarf2_consume_line_info): Drop view.

Diff:
---
 gas/ChangeLog   | 4 ++++
 gas/dwarf2dbg.c | 1 +
 2 files changed, 5 insertions(+)

diff --git a/gas/ChangeLog b/gas/ChangeLog
index f459469..ab26974 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,7 @@
+2018-06-01  Alexandre Oliva <aoliva@redhat.com>
+
+	* dwarf2dbg.c (dwarf2_consume_line_info): Drop view.
+
 2018-06-01  Jan Beulich  <jbeulich@suse.com>
 
 	* testsuite/gas/i386/ilp32/x86-64-opcode.d,
diff --git a/gas/dwarf2dbg.c b/gas/dwarf2dbg.c
index e7c0b6e..7193265 100644
--- a/gas/dwarf2dbg.c
+++ b/gas/dwarf2dbg.c
@@ -624,6 +624,7 @@ dwarf2_consume_line_info (void)
 		     | DWARF2_FLAG_PROLOGUE_END
 		     | DWARF2_FLAG_EPILOGUE_BEGIN);
   current.discriminator = 0;
+  current.view = NULL;
 }
 
 /* Called for each (preferably code) label.  If dwarf2_loc_mark_labels



More information about the Binutils-cvs mailing list