From owner-freebsd-hackers@FreeBSD.ORG Wed Jan 16 02:46:27 2013 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 2E4A54D7; Wed, 16 Jan 2013 02:46:27 +0000 (UTC) (envelope-from adrian.chadd@gmail.com) Received: from mail-wg0-x229.google.com (wg-in-x0229.1e100.net [IPv6:2a00:1450:400c:c00::229]) by mx1.freebsd.org (Postfix) with ESMTP id 91781FB6; Wed, 16 Jan 2013 02:46:26 +0000 (UTC) Received: by mail-wg0-f41.google.com with SMTP id ds1so2351988wgb.0 for ; Tue, 15 Jan 2013 18:46:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:sender:date:x-google-sender-auth:message-id:subject :from:to:cc:content-type; bh=hh7J6OSV78Gi7iZs9o1crZRgGtgVqVY74b3cak55KxY=; b=Xacord8sr05yHht4Db1Pb9H5Upsyvww437JUjfycIWPHwqlWAGGIMYxa6niAGpykEq JtRiHjs9O1KvNdBVNccLkdIyCw5VmVoR4DpZzxELC9M2UaEjdnayGIIzyBlcs0UKt7bJ HxbwDsZnxuY0nXF6QdlKVxlKzOxAdLrSyIBrppsHG3Ah8rpkQ1YoMCvPLKu1pKIYEtkW OQqCOhmrRPhXvFPDNnckOEd5bVdczvQ0zKisyf6EaBwhn5aY2cYiC8v2YRdk7B6l/Hx7 zICBVWsOnzqn/zdp5gd1WyIIKZVpudgEIIsorvEzzJ1UsWGufG+EuZCjHbWOT6+QHpP5 v9kw== MIME-Version: 1.0 Received: by 10.180.100.163 with SMTP id ez3mr7021580wib.32.1358304385825; Tue, 15 Jan 2013 18:46:25 -0800 (PST) Sender: adrian.chadd@gmail.com Received: by 10.217.57.9 with HTTP; Tue, 15 Jan 2013 18:46:25 -0800 (PST) Date: Tue, 15 Jan 2013 18:46:25 -0800 X-Google-Sender-Auth: rBt-Ey9jYmq3KphX3ODJwFPlmYI Message-ID: Subject: [RFC] add gdb into the cross-build target From: Adrian Chadd To: freebsd-arch@freebsd.org Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-hackers@freebsd.org X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 16 Jan 2013 02:46:27 -0000 Hi, I'd like to propose adding gdb into the cross-build target. This way MIPS, ARM, PPC etc targets will have gdb- 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}; \