Created attachment 188427 [details] Patch for sbin/dumpon/dumpon.8 You are not guaranteed to be using the GENERIC kernel in every case, and since kernel debug files are more or less mandatory installed, I suggest using /usr/lib/debug/boot/kernel/kernel.debug over /usr/obj/sys/GENERIC/kernel.debug. The latter probably should be /usr/obj/usr/src/sys/GENERIC/kernel.debug, or in the case of amd64, /usr/obj/usr/src/amd64.amd64/sys/GENERIC/kernel.debug.
A commit references this bug: Author: eadler Date: Wed May 23 10:45:32 UTC 2018 New revision: 334089 URL: https://svnweb.freebsd.org/changeset/base/334089 Log: dumpon: point to better kernel debug symbols. The objdir is temporary, and the current example points to GENERIC. Instead point to the installed location of the debug symbols that are supposed to match the kernel you are using. PR: 223993 Submitted by: Trond.Endrestol@ximalas.info Changes: head/sbin/dumpon/dumpon.8
The example should instead reference /boot/kernel/kernel or $(sysctl -n kern.bootfile) and kgdb will make use of the .gnu_debuglink section to locate the debug data.