Hi, I'd like to propose adding gdb into the cross-build target.
This way MIPS, ARM, PPC etc targets will have gdb-<arch> built in the cross-build environment, so it can be (hopefully) used for cross-build debugging of the kernel, as well as remote debugging out of the box. Here's my example patch. Thanks! Adrian Index: Makefile.inc1 =================================================================== --- Makefile.inc1 (revision 245281) +++ Makefile.inc1 (working copy) @@ -1211,6 +1211,7 @@ ${_clang_libs} \ ${_clang} \ ${_binutils} \ + gnu/usr.bin/gdb \ ${_cc} \ usr.bin/xlint/lint1 usr.bin/xlint/lint2 usr.bin/xlint/xlint \ ${_btxld} \ @@ -1673,6 +1674,7 @@ .for _tool in \ gnu/usr.bin/binutils \ gnu/usr.bin/cc \ + gnu/usr.bin/gdb \ usr.bin/ar ${_+_}@${ECHODIR} "===> xdev ${_tool} (obj,depend,all)"; \ cd ${.CURDIR}/${_tool}; \ @@ -1699,6 +1701,7 @@ .for _tool in \ gnu/usr.bin/binutils \ gnu/usr.bin/cc \ + gnu/usr.bin/gdb \ usr.bin/ar ${_+_}@${ECHODIR} "===> xdev ${_tool} (install)"; \ cd ${.CURDIR}/${_tool}; \ _______________________________________________ freebsd-hackers@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-hackers To unsubscribe, send any mail to "freebsd-hackers-unsubscr...@freebsd.org"