From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19255 invoked by alias); 14 Aug 2003 15:16:52 -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 19219 invoked from network); 14 Aug 2003 15:16:51 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sources.redhat.com with SMTP; 14 Aug 2003 15:16:51 -0000 Received: from drow by nevyn.them.org with local (Exim 4.20 #1 (Debian)) id 19nJqC-0001P0-Tn; Thu, 14 Aug 2003 11:16:40 -0400 Date: Thu, 14 Aug 2003 15:16:00 -0000 From: Daniel Jacobowitz To: ???? ?? Cc: gdb@sources.redhat.com Subject: Re: I have some problem on gdbserver Message-ID: <20030814151640.GA5362@nevyn.them.org> Mail-Followup-To: ???? ?? , gdb@sources.redhat.com References: <20030814151333.52605.qmail@web15306.mail.bjs.yahoo.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030814151333.52605.qmail@web15306.mail.bjs.yahoo.com> User-Agent: Mutt/1.5.1i X-SW-Source: 2003-08/txt/msg00152.txt.bz2 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. -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer