From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4139 invoked by alias); 25 Mar 2005 16:33:59 -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 4117 invoked from network); 25 Mar 2005 16:33:55 -0000 Received: from unknown (HELO nevyn.them.org) (66.93.172.17) by sourceware.org with SMTP; 25 Mar 2005 16:33:55 -0000 Received: from drow by nevyn.them.org with local (Exim 4.50 #1 (Debian)) id 1DErlW-0004YS-Hb; Fri, 25 Mar 2005 11:34:30 -0500 Date: Fri, 25 Mar 2005 16:33:00 -0000 From: Daniel Jacobowitz To: james osburn Cc: gdb@sources.redhat.com Subject: Re: gdbserver question Message-ID: <20050325163430.GA17421@nevyn.them.org> Mail-Followup-To: james osburn , gdb@sources.redhat.com References: <20050325161239.GA12231@white> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.6+20040907i X-SW-Source: 2005-03/txt/msg00235.txt.bz2 On Fri, Mar 25, 2005 at 04:25:17PM +0000, james osburn wrote: > I am trying to remote debug a program using gdb server and i am > having the following problems. Please don't reply to unrelated messages to post to the list; just send mail directly. > first i have started my program on the remote target as follows: > > gdbserver 192.168.0.10:1234 ./stubs > > (the name of the executeable is "stubs") > > i then start gdb on the host side as follows: > $> gdb > GNU gdb 5.3 > Copyright 2002 Free Software Foundation, Inc. > GDB is free software, covered by the GNU General Public License, and you are > welcome to change it and/or distribute copies of it under certain > conditions. > Type "show copying" to see the conditions. > There is absolutely no warranty for GDB. Type "show warranty" for details. > This GDB was configured as "i686-pc-linux-gnu". > (gdb) target extended-remote 192.168.0.10:1234 > Remote debugging using 192.168.0.10:1234 > 0x400009c0 in ?? () > (gdb) break main > No symbol table is loaded. Use the "file" command. > > what do i need to do? Have you read the error message, and tried what it suggested? Use the file command, before connecting to your remote target. You may want to read the GDB manual; there's documentation of the "file" command, and also examples for GDB and gdbserver. -- Daniel Jacobowitz CodeSourcery, LLC