Project

General

Profile

Bug #17810 » ruby-addr2line-print-filename-without-lineno.patch

Print filename without lineno - xtkoba (Tee KOBAYASHI), 04/17/2021 06:37 AM

View differences:

addr2line.c
else if (!line->saddr || !line->sname) {
kprintf("%s(0x%"PRIxPTR") [0x%"PRIxPTR"]\n", line->path, addr-line->base_addr, addr);
}
#if 0
else if (line->line <= 0) {
kprintf("%s(%s+0x%"PRIxPTR") [0x%"PRIxPTR"]\n", line->path, line->sname,
d, addr);
}
#endif
else if (!line->filename) {
kprintf("%s(%s+0x%"PRIxPTR") [0x%"PRIxPTR"] ???:%d\n", line->path, line->sname,
d, addr, line->line);
(2-2/2)