[RFC] add gdb into the cross-build target
Adrian Chadd
adrian at freebsd.org
Wed Jan 16 02:46:27 UTC 2013
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}; \
More information about the freebsd-hackers
mailing list