From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6976 invoked by alias); 12 Dec 2002 18:30:35 -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 6209 invoked from network); 12 Dec 2002 18:29:35 -0000 Received: from unknown (HELO crack.them.org) (65.125.64.184) by sources.redhat.com with SMTP; 12 Dec 2002 18:29:35 -0000 Received: from nevyn.them.org ([66.93.61.169] ident=mail) by crack.them.org with asmtp (Exim 3.12 #1 (Debian)) id 18MZxz-000143-00; Thu, 12 Dec 2002 14:29:55 -0600 Received: from drow by nevyn.them.org with local (Exim 3.36 #1 (Debian)) id 18MY6M-0000ON-00; Thu, 12 Dec 2002 13:30:26 -0500 Date: Thu, 12 Dec 2002 10:30:00 -0000 From: Daniel Jacobowitz To: Tim Cc: gdb@sources.redhat.com Subject: Re: Remote Debugging Message-ID: <20021212183026.GA1310@nevyn.them.org> Mail-Followup-To: Tim , gdb@sources.redhat.com References: <1039714196.1418.20.camel@TIM.DCS> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1039714196.1418.20.camel@TIM.DCS> User-Agent: Mutt/1.5.1i X-SW-Source: 2002-12/txt/msg00191.txt.bz2 On Thu, Dec 12, 2002 at 09:29:56AM -0800, Tim wrote: > I running gdb 5.2-2 and gdbserver. Remotely I'm running kernel 2.4-19. > I compiled gdbserver against uClibc. My app is statically compiled > against glibc 6. > > My remote device is an x86 board. > > My app is compiled with -ggdb and is not stripped on either the remote > or the host. > > I start gdbserver 192.168.0.1:2345 myapp -options on the remote device. > I start gdb on the host and give it the command target remote > 192.168.0.2:2345 > > the remote device shows a connection from my host. > > then I give it the command load myapp. Try skipping this step. You should not use load with gdbserver. > After all this I cannot view any source. The 'l' command returns the > error 'no symbol table loaded' and instructs me to use file. > > What am I doing wrong? Also be sure to give GDB the executable before connecting, i.e. "gdb myapp". -- Daniel Jacobowitz MontaVista Software Debian GNU/Linux Developer