From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19398 invoked by alias); 28 Nov 2005 09:57:32 -0000 Received: (qmail 19391 invoked by uid 22791); 28 Nov 2005 09:57:32 -0000 X-Spam-Check-By: sourceware.org Received: from zproxy.gmail.com (HELO zproxy.gmail.com) (64.233.162.195) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 28 Nov 2005 09:57:30 +0000 Received: by zproxy.gmail.com with SMTP id x3so2358584nzd for ; Mon, 28 Nov 2005 01:57:29 -0800 (PST) Received: by 10.36.251.8 with SMTP id y8mr3322984nzh; Mon, 28 Nov 2005 01:57:29 -0800 (PST) Received: by 10.37.2.35 with HTTP; Mon, 28 Nov 2005 01:57:29 -0800 (PST) Message-ID: <8f2776cb0511280157qeff049aq43201c2bd26db391@mail.gmail.com> Date: Mon, 28 Nov 2005 22:01:00 -0000 From: Jim Blandy To: yang xiaoli Subject: Re: how to cross-compile gdb for arm? Cc: gdb@sourceware.org In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline References: X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2005-11/txt/msg00601.txt.bz2 On 11/28/05, yang xiaoli wrote: > I'll corss-compile gdb for arm board, will use gdb to debug on arm board. > I use gdb6.0 or gdb6.3 and configure with: > CC=3Darm-linux-gcc ../gdb-6.3/configure --target=3Darm-linux \ > --build=3Darm-linux --host=3Darm-linux What kind of machine are you compiling GDB itself on? That should be your --build. What kind of machine do you intend to run GDB on while you debug your ARM programs? That should be your --host. Will you run GDB on the same machine as the program being debugged?=20 Then your --host and --target should be the same. If you're going to run GDB on a different kind of machine (and debug over the network, or over a serial line), then your --host and --target should be different.