Hi there!
Thanks for the reply!
> Getting the debug build working might be more fruitful than starting at a
coarse-grained backtrace or debug-via-printf.
I'm looking into this. On FreeBSD 14.1, we have both gcc 13.3.0 and clang
18.1.5 installed. If we just run ./configure, it selects gcc by default.
Building with gcc compiles with a few changes, but throws all those CTF errors.
building with clang breaks on this:
src/rx/rx_packet.c:1770:13: error: passing arguments to a function without a
prototype is deprecated in all versions of C and is not supported in C23
[-Werror,-Wdeprecated-non-prototype]
1770 | (*free) (amb);
| ^
Going back to the gcc build, I used the following configure options:
--enable-transarc-paths --enable-kauth --enable-debug --enable-debug-kernel
--enable-debug-locks --enable-debug-lwp
However, something doesn't look right in the kernel module. Shouldn't there be
more than this:
objdump --syms /usr/vice/etc/libafs.ko | grep debug
00000000000006c8 l O .bss 0000000000000008 debugvc
000000000025c9f8 l O .bss 0000000000000004 debugsetsp
000000000025a7c0 l O .bss 0000000000000008 rx_tq_debug
0000000000000000 l d .gnu_debuglink 0000000000000000 .gnu_debuglink
When I run kgdb during the startup messages it prints this:
Reading symbols from /usr/vice/etc/libafs.ko...
(No debugging symbols found in /usr/vice/etc/libafs.ko)
Any idea how to actually enable debugging info on the kernel module?
Many thanks!
-Ben