If a line number is invalid for a source file, that should not be a
fatal error, as it may still be valid for some other matching source
file.
* dwflpp.cxx (dwflpp::iterate_over_srcfile_lines): Don't assert that the
line must be found, just break out quietly.
ret = dwarf_getsrc_file (module_dwarf, srcfile, l, 0,
&srcsp, &nsrcs);
- if (line_type != WILDCARD && line_type != RANGE)
- dwarf_assert ("dwarf_getsrc_file", ret);
+ if (ret != 0) /* tolerate invalid line number */
+ break;
if (line_type == WILDCARD || line_type == RANGE)
{
Dwarf_Addr line_addr;
- if (ret != 0) /* tolerate invalid line number */
- break;
-
dwarf_lineno (srcsp [0], &lineno);
/* Maybe lineno will exceed the input end */
if (line_type == RANGE && lineno > lines[1])