If the kernel successful found a CTF section but a symbol isn't present in it assume it has no argument. This make ddb(4) print simpler trace without garbage for symbols in locore:
db_enter() at db_enter+0x10 comintr(ffff800000122000) at comintr+0x2af intr_handler(ffff80000376bc80,ffff800000121380) at intr_handler+0x6e Xintr_legacy4_untramp() at Xintr_legacy4_untramp+0x1b3 cpu_idle_cycle() at cpu_idle_cycle+0x1b end trace frame: 0x0, count: -5 ok? Index: ddb/db_ctf.c =================================================================== RCS file: /cvs/src/sys/ddb/db_ctf.c,v retrieving revision 1.28 diff -u -p -r1.28 db_ctf.c --- ddb/db_ctf.c 7 Nov 2019 13:16:25 -0000 1.28 +++ ddb/db_ctf.c 10 Nov 2019 14:17:27 -0000 @@ -171,7 +171,7 @@ db_ctf_func_numargs(Elf_Sym *st) return vlen; } - return -1; + return 0; } /*