From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22413 invoked by alias); 27 Jul 2005 18:10:51 -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 22402 invoked by uid 22791); 27 Jul 2005 18:10:48 -0000 Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Wed, 27 Jul 2005 18:10:48 +0000 Received: from drow by nevyn.them.org with local (Exim 4.52) id 1DxqMg-0003iA-LS; Wed, 27 Jul 2005 14:10:46 -0400 Date: Wed, 27 Jul 2005 18:10:00 -0000 From: Daniel Jacobowitz To: Yi Sun Cc: gdb@sources.redhat.com Subject: Re: -ffunction-sections and gdb Message-ID: <20050727181046.GB14088@nevyn.them.org> Mail-Followup-To: Yi Sun , 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-SW-Source: 2005-07/txt/msg00248.txt.bz2 On Wed, Jul 27, 2005 at 11:05:22AM -0700, Yi Sun wrote: > Hi, > > I have some code built with -ffunction-sections and running on a mip64 > embedded platform. My code can be booted and ran. But when I'm using > list command in gdb with my image, gdb complains "no source file for > address". I'm using gdb 5.0 and it configured as > "--host=sparc-sun-solaris2.6 --target=mips". My gcc is "gcc version > 2.9-gnupro-99r1". > > Gcc manual said that if you use -ffunction-sections, gdb may not work. > > My question is: > > Is there a fix or workaround for this problem? Sorry, but that version of GDB is so old that we can't help you with it. You may want to try a more recent version of GDB. -- Daniel Jacobowitz CodeSourcery, LLC