asan-dg.exp (asan_symbolize): Remove all "BFD: " prefixed lines from the output.

* lib/asan-dg.exp (asan_symbolize): Remove all "BFD: " prefixed lines
	from the output.

From-SVN: r193763
This commit is contained in:
Jakub Jelinek 2012-11-23 17:05:03 +01:00 committed by Jakub Jelinek
parent 88cd0e88e3
commit 644525ff99
2 changed files with 5 additions and 1 deletions

View file

@ -1,5 +1,8 @@
2012-11-23 Jakub Jelinek <jakub@redhat.com>
* lib/asan-dg.exp (asan_symbolize): Remove all "BFD: " prefixed lines
from the output.
PR c++/54046
* g++.dg/warn/Wreturn-type-8.C: New test.

View file

@ -128,7 +128,8 @@ proc asan_symbolize { output } {
set status [remote_exec host "$addr2line_name" $args]
if { [lindex $status 0] > 0 } continue
regsub -all "\r\n" [lindex $status 1] "\n" addr2line_output
regsub -all "(^|\n|\r)BFD: \[^\n\r\]*" $addr2line_output "" addr2line_output
regsub -all "\[\n\r\]BFD: \[^\n\r\]*" $addr2line_output "" addr2line_output
regsub -all "^BFD: \[^\n\r\]*\[\n\r\]" $addr2line_output "" addr2line_output
set addr2line_output [regexp -inline -all -line "^\[^\n\r]*" $addr2line_output]
set idx 0
foreach val $arr($key) {