Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 15 Jan 2013 18:46:25 -0800
From:      Adrian Chadd <adrian@freebsd.org>
To:        freebsd-arch@freebsd.org
Cc:        freebsd-hackers@freebsd.org
Subject:   [RFC] add gdb into the cross-build target
Message-ID:  <CAJ-Vmom0VZbz==hxhhtKADG5r4t3Hsvcy-vHXJAz=a3zC7inHg@mail.gmail.com>

next in thread | raw e-mail | index | archive | help
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}; \



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAJ-Vmom0VZbz==hxhhtKADG5r4t3Hsvcy-vHXJAz=a3zC7inHg>