class Bake::GreenHillsLinkerErrorParser
Public Class Methods
new()
click to toggle source
dblink: WARNING: 10 problems were encountered while processing debug information, see “Debug/xy.dle” for details.
# File lib/bake/toolchain/errorparser/greenhills_linker_error_parser.rb, line 17 def initialize() @error_expression = /ld: (.+)/ end
Public Instance Methods
scan_lines(consoleOutput, proj_dir)
click to toggle source
# File lib/bake/toolchain/errorparser/greenhills_linker_error_parser.rb, line 21 def scan_lines(consoleOutput, proj_dir) res = [] error_severity = 255 consoleOutput[0].each_line do |l| l.rstrip! d = ErrorDesc.new scan_res = l.scan(@error_expression) if scan_res.length == 0 # msg will end with the beginning of the next message d.severity = error_severity d.message = l elsif scan_res.length > 0 d.file_name = proj_dir d.line_number = 0 d.message = scan_res[0][0] d.severity = SEVERITY_ERROR error_severity = d.severity end res << d end [res, consoleOutput[0]] end