From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9634 invoked by alias); 9 Oct 2012 20:19:30 -0000 Received: (qmail 9613 invoked by uid 22791); 9 Oct 2012 20:19:27 -0000 X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED,RCVD_IN_DNSWL_NONE,RCVD_IN_HOSTKARMA_YE,SPF_SOFTFAIL X-Spam-Check-By: sourceware.org Received: from oproxy7-pub.bluehost.com (HELO oproxy7-pub.bluehost.com) (67.222.55.9) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Tue, 09 Oct 2012 20:19:18 +0000 Received: (qmail 8681 invoked by uid 0); 9 Oct 2012 20:19:18 -0000 Received: from unknown (HELO box531.bluehost.com) (74.220.219.131) by oproxy7.bluehost.com with SMTP; 9 Oct 2012 20:19:18 -0000 Received: from [146.115.71.23] (port=45613 helo=[172.31.1.105]) by box531.bluehost.com with esmtpsa (SSLv3:CAMELLIA256-SHA:256) (Exim 4.76) (envelope-from ) id 1TLgGr-0005OC-1l; Tue, 09 Oct 2012 14:19:17 -0600 Message-ID: <1349813954.10588.39.camel@homebase> Subject: Re: Help with cross-compiling GDB From: Paul Smith Reply-To: psmith@gnu.org To: Pedro Alves Cc: "gdb@sourceware.org" Date: Tue, 09 Oct 2012 20:19:00 -0000 In-Reply-To: <50747B5B.8000605@redhat.com> References: <1349726484.10588.12.camel@homebase> <50747B5B.8000605@redhat.com> Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit Mime-Version: 1.0 X-Identified-User: {678:box531.bluehost.com:madscie1:mad-scientist.us} {sentby:smtp auth 146.115.71.23 authed with paul@mad-scientist.us} X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2012-10/txt/msg00048.txt.bz2 On Tue, 2012-10-09 at 20:30 +0100, Pedro Alves wrote: > with --host != --target, you're configuring a cross debugger. IOW, the > native debug support isn't included (gdb_native in configure.ac). Yes; figured it out yesterday thanks! > IIUC, you want to use --build to point at x86_64-olddist-linux-gnu, > not --host. Actually no, FYI. The --build value should almost never be set in ./configure. It specifies the type of host that you're building on and that should always be auto-detected correctly. The only time you'd ever use it is if configure can't determine the correct value itself for some reason, I suppose. Here I want to set the --host value (which specifies the system on which the program will be run). But I don't want to set the --target value (or equivalently, I want the --target value to be the same as the --host value; if you don't specify --target then it defaults to the value of --host), because I want to debug code on the same target as I'm running on. I got it working now, thanks!