* lib/asan-dg.exp (asan_symbolize): Prune BFD: prefixed error messages
from addr2line_output. Increment idx if asking for more than one address
in one object.
From-SVN: r193586
+2012-11-17 Jakub Jelinek <jakub@redhat.com>
+
+ * lib/asan-dg.exp (asan_symbolize): Prune BFD: prefixed error messages
+ from addr2line_output. Increment idx if asking for more than one address
+ in one object.
+
2012-11-16 Jakub Jelinek <jakub@redhat.com>
PR tree-optimization/55329
set args "-f -e $key $arr($key)"
set status [remote_exec host "$addr2line_name" $args]
if { [lindex $status 0] > 0 } continue
- set addr2line_output [regexp -inline -all -line "^\[^\n\r]*" [lindex $status 1]]
+ regsub -all "\r\n" [lindex $status 1] "\n" addr2line_output
+ regsub -all "(^|\n|\r)BFD: \[^\n\r\]*" $addr2line_output "" addr2line_output
+ set addr2line_output [regexp -inline -all -line "^\[^\n\r]*" $addr2line_output]
set idx 0
foreach val $arr($key) {
if { [expr $idx + 1] < [llength $addr2line_output] } {
set newkey "$key+$val"
set repl($newkey) "$fnname $fileline"
}
+ set idx [expr $idx + 2]
}
}
}