From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 17716 invoked by alias); 27 Jul 2005 22:29:28 -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 17686 invoked by uid 22791); 27 Jul 2005 22:29:22 -0000 Received: from kremlin.juniper.net (HELO kremlin.juniper.net) (207.17.137.120) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Wed, 27 Jul 2005 22:29:22 +0000 Received: from unknown (HELO gamma.jnpr.net) (172.24.245.25) by kremlin.juniper.net with ESMTP; 27 Jul 2005 15:29:21 -0700 X-BrightmailFiltered: true X-IronPort-AV: i="3.95,146,1120460400"; d="scan'208"; a="446107801:sNHT30729040" Received: from hadron.jnpr.net ([172.24.15.25]) by gamma.jnpr.net with Microsoft SMTPSVC(6.0.3790.211); Wed, 27 Jul 2005 15:29:20 -0700 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: -ffunction-sections and gdb Date: Wed, 27 Jul 2005 22:29:00 -0000 Message-ID: From: "Yi Sun" To: "Daniel Jacobowitz" Cc: X-SW-Source: 2005-07/txt/msg00256.txt.bz2 Hi Daniel, I've tried it on the latest gdb (6.3), however it is still not working. ~> ~/gdb-6.3/gdb/gdb *.elf GNU gdb 6.3 Copyright 2004 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 "--host=3Dsparc-sun-solaris2.9 --target=3Dmips"... (gdb) list *syn_cookie_ager No source file for address 0x18e33d8. (gdb) Do you have any suggestions? As long as -ffunction-sections is removed from my cflags everthing will be ok. Yi =20 =20 -----Original Message----- From: Daniel Jacobowitz [mailto:drow@false.org]=20 Sent: Wednesday, July 27, 2005 11:11 AM To: Yi Sun Cc: gdb@sources.redhat.com Subject: Re: -ffunction-sections and gdb On Wed, Jul 27, 2005 at 11:05:22AM -0700, Yi Sun wrote: > Hi, >=20 > 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=20 > list command in gdb with my image, gdb complains "no source file for=20 > address". I'm using gdb 5.0 and it configured as=20 > "--host=3Dsparc-sun-solaris2.6 --target=3Dmips". My gcc is "gcc version=20 > 2.9-gnupro-99r1". >=20 > Gcc manual said that if you use -ffunction-sections, gdb may not work. >=20 > My question is: >=20 > 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. --=20 Daniel Jacobowitz CodeSourcery, LLC