From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23342 invoked by alias); 15 Aug 2003 00:37:54 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 23334 invoked from network); 15 Aug 2003 00:37:53 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sources.redhat.com with SMTP; 15 Aug 2003 00:37:53 -0000 Received: from drow by nevyn.them.org with local (Exim 4.20 #1 (Debian)) id 19nSbC-0002Ip-KI; Thu, 14 Aug 2003 20:37:46 -0400 Date: Fri, 15 Aug 2003 00:37:00 -0000 From: Daniel Jacobowitz To: ???? ?? Cc: gdb@sources.redhat.com Subject: Re: I have some problem on gdbserver Message-ID: <20030815003746.GA8819@nevyn.them.org> Mail-Followup-To: ???? ?? , gdb@sources.redhat.com References: <20030814151640.GA5362@nevyn.them.org> <20030815001914.15371.qmail@web15311.mail.bjs.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030815001914.15371.qmail@web15311.mail.bjs.yahoo.com> User-Agent: Mutt/1.5.1i X-SW-Source: 2003-08/txt/msg00155.txt.bz2 On Fri, Aug 15, 2003 at 08:19:14AM +0800, ???? ?? wrote: > --- Daniel Jacobowitz ????????> On > Thu, Aug 14, 2003 at 11:13:33PM +0800, ???? ?? > > wrote: > > > Iwant to build cross-compile to my target, then I > > > build > > > gdbserver this way. for example: > > > $ export CC=my-cross-compiler(arm-linu-gcc) > > > $ path-to-gdbserver-sources/configure > > > your-target-name(arm-linux) > > > $ make > > > But when I run gdbserver: > > > $ arm-linux-gcc -g -o filename filename.c > > > $ ./gdbserver host:1234 filename > > > error: > > > bash:./gdbserver:cannot execute binary file. > > > Who can tell this is why? > > > > It looks like you are running gdbserver on the host. > > It's supposed to > > be run on the target. > > > > > Thank you very much.It is true,I run the cross-gdb > and gdbsever on the same host,but they cannot run on > the same host in the remote way?Does gdb support > communicating with target in TCP way on the same host? > > (I know cross gdb can debug programs in "target sim" > way on the same host machine.) > If I make gdbserver run on the target,must the > target be the machine with arm cpu ,or can it be cross > environment? > regards! Gdbserver the way you built it is an arm-linux binary. Run it on an arm-linux machine. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer