看板 FB_bugs 關於我們 聯絡資訊
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=191930 Bug ID: 191930 Summary: Bring kernel debug files into line with userland standalone debug Product: Base System Version: 11.0-CURRENT Hardware: Any OS: Any Status: Needs Triage Severity: Affects Only Me Priority: --- Component: misc Assignee: freebsd-bugs@FreeBSD.org Reporter: emaste@freebsd.org A single src.conf(5) knob, WITH_DEBUG_FILES=yes, enables userland standalone debug. Setting it enables a few things: - CFLAGS has -g added to generate debug data during compilation - Binaries and libraries are built as a .full version which includes debug - The .full file is converted into one with the debug data stripped out (no extra extension), and a separate debug data file (.debug extension) - Debug data is installed under /usr/lib/debug/... Kernel standalone debug files have a few differences: - The -g flag has to be added via the kernel config file (it is set in GENERIC) - WITHOUT_KERNEL_SYMBOLS will avoid splitting the kernel objects - Extensions are different (.debug for the full object, .symbols for the debug data) - Debug data is installed in the same directory as the kernel objects, in /boot/kernel The last point is an annoyance, as /boot may not be a very large filesystem -- You are receiving this mail because: You are the assignee for the bug. _______________________________________________ freebsd-bugs@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-bugs To unsubscribe, send any mail to "freebsd-bugs-unsubscribe@freebsd.org"