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
2243 2243
    else if (!line->saddr || !line->sname) {
2244 2244
        kprintf("%s(0x%"PRIxPTR") [0x%"PRIxPTR"]\n", line->path, addr-line->base_addr, addr);
2245 2245
    }
2246
#if 0
2246 2247
    else if (line->line <= 0) {
2247 2248
        kprintf("%s(%s+0x%"PRIxPTR") [0x%"PRIxPTR"]\n", line->path, line->sname,
2248 2249
                d, addr);
2249 2250
    }
2251
#endif
2250 2252
    else if (!line->filename) {
2251 2253
        kprintf("%s(%s+0x%"PRIxPTR") [0x%"PRIxPTR"] ???:%d\n", line->path, line->sname,
2252 2254
                d, addr, line->line);