From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21809 invoked by alias); 9 Dec 2005 21:49:52 -0000 Received: (qmail 21800 invoked by uid 22791); 9 Dec 2005 21:49:51 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Fri, 09 Dec 2005 21:49:51 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1Ekq7g-0006K3-Gq; Fri, 09 Dec 2005 16:49:48 -0500 Date: Fri, 09 Dec 2005 21:49:00 -0000 From: Daniel Jacobowitz To: Grazia Russo-Lassner Cc: gdb@sources.redhat.com Subject: Re: No symbol table is loaded. Use the "file" command. --- new to gdb: please help ! Message-ID: <20051209214948.GA24287@nevyn.them.org> Mail-Followup-To: Grazia Russo-Lassner , gdb@sources.redhat.com References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.8i 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-12/txt/msg00107.txt.bz2 On Fri, Dec 09, 2005 at 04:48:13PM -0500, Grazia Russo-Lassner wrote: > > hello, > > I am trying to debug a program, but when I enter a breakpoint I get > No symbol table is loaded. Use the "file" command. > > This is what I do: > gdb filename-of-executable > break 48 #to break at line 48 > > then I get: > No symbol table is loaded. Use the "file" command. > > Could someone help ? Probably your binary does not contain debug information. Try recompiling with -g. -- Daniel Jacobowitz CodeSourcery, LLC