From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13516 invoked by alias); 27 Jul 2005 18:05:36 -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 13464 invoked by uid 22791); 27 Jul 2005 18:05:27 -0000 Received: from borg.juniper.net (HELO borg.juniper.net) (207.17.137.119) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Wed, 27 Jul 2005 18:05:27 +0000 Received: from unknown (HELO alpha.jnpr.net) (172.24.18.126) by borg.juniper.net with ESMTP; 27 Jul 2005 11:05:26 -0700 X-BrightmailFiltered: true X-IronPort-AV: i="3.95,146,1120460400"; d="scan'208"; a="460267754:sNHT19923656" Received: from hadron.jnpr.net ([172.24.15.25]) by alpha.jnpr.net with Microsoft SMTPSVC(6.0.3790.211); Wed, 27 Jul 2005 11:05:22 -0700 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: -ffunction-sections and gdb Date: Wed, 27 Jul 2005 18:05:00 -0000 Message-ID: From: "Yi Sun" To: X-SW-Source: 2005-07/txt/msg00246.txt.bz2 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=3Dsparc-sun-solaris2.6 --target=3Dmips". 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? Thanks Yi