From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 30966 invoked by alias); 29 Nov 2005 03:14:33 -0000 Received: (qmail 30957 invoked by uid 22791); 29 Nov 2005 03:14:32 -0000 X-Spam-Check-By: sourceware.org Received: from bay109-f22.bay109.hotmail.com (HELO hotmail.com) (64.4.19.32) by sourceware.org (qpsmtpd/0.31) with ESMTP; Tue, 29 Nov 2005 03:14:31 +0000 Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Mon, 28 Nov 2005 19:14:28 -0800 Message-ID: Received: from 64.4.19.200 by by109fd.bay109.hotmail.msn.com with HTTP; Tue, 29 Nov 2005 03:14:28 GMT X-Sender: alula418@hotmail.com In-Reply-To: <8f2776cb0511280157qeff049aq43201c2bd26db391@mail.gmail.com> From: "yang xiaoli" To: jimb@red-bean.com Cc: gdb@sourceware.org Bcc: Subject: Re: how to cross-compile gdb for arm? Date: Tue, 29 Nov 2005 03:24:00 -0000 Mime-Version: 1.0 Content-Type: text/plain; charset=gb2312; format=flowed 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/msg00606.txt.bz2 Yes Thanks, I modified the --build to my x86 and --host to arm-linux, and set bash_cv_have_mbstate_t to yes, now to compiles ok, I can debug on arm platform! >From: Jim Blandy >To: yang xiaoli >CC: gdb@sourceware.org >Subject: Re: how to cross-compile gdb for arm? >Date: Mon, 28 Nov 2005 01:57:29 -0800 > >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=arm-linux-gcc ../gdb-6.3/configure --target=arm-linux \ > > --build=arm-linux --host=arm-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? >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. _________________________________________________________________ Ãâ·ÑÏÂÔØ MSN Explorer: http://explorer.msn.com/lccn/