Lines Matching defs:lr
1444 struct line_range *lr)
1447 if (!lr->path) {
1448 lr->path = strdup(src);
1449 if (lr->path == NULL)
1452 return line_list__add_line(&lr->line_list, lineno);
1465 if (line_range_add_line(fname, lineno, lf->lr) < 0)
1480 if (!list_empty(&lf->lr->line_list))
1485 free(lf->lr->path);
1486 lf->lr->path = NULL;
1508 struct line_range *lr = lf->lr;
1511 if (lr->file && strtailcmp(lr->file, dwarf_decl_file(sp_die)))
1515 die_compare_name(sp_die, lr->function)) {
1517 dwarf_decl_line(sp_die, &lr->offset);
1518 pr_debug("fname: %s, lineno:%d\n", lf->fname, lr->offset);
1519 lf->lno_s = lr->offset + lr->start;
1522 lf->lno_e = lr->offset + lr->end;
1526 lr->start = lf->lno_s;
1527 lr->end = lf->lno_e;
1545 int debuginfo__find_line_range(struct debuginfo *self, struct line_range *lr)
1547 struct line_finder lf = {.lr = lr, .found = 0};
1555 if (lr->function) {
1557 .function = lr->function, .file = lr->file,
1583 if (lr->file)
1584 lf.fname = cu_find_realpath(&lf.cu_die, lr->file);
1588 if (!lr->file || lf.fname) {
1589 if (lr->function)
1592 lf.lno_s = lr->start;
1593 lf.lno_e = lr->end;
1605 lr->comp_dir = strdup(comp_dir);
1606 if (!lr->comp_dir)
1611 pr_debug("path: %s\n", lr->path);