From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 4901 invoked by alias); 22 Nov 2009 17:17:25 -0000 Received: (qmail 4893 invoked by uid 22791); 22 Nov 2009 17:17:25 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00 X-Spam-Check-By: sourceware.org Received: from psionic.psi5.com (HELO psionic8.psi5.com) (212.112.229.180) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sun, 22 Nov 2009 17:16:21 +0000 Received: from localhost (port-212-202-168-87.dynamic.qsc.de [212.202.168.87]) (using TLSv1 with cipher DHE-RSA-AES128-SHA (128/128 bits)) (Client CN "Simon Richter", Issuer "CA Cert Signing Authority" (verified OK)) by psionic8.psi5.com (Postfix) with ESMTPS id 41F00F2C046; Sun, 22 Nov 2009 18:16:16 +0100 (CET) Date: Mon, 23 Nov 2009 12:43:00 -0000 From: Simon Richter To: loody Cc: gdb@sourceware.org Subject: Re: how to source level debug if I cannot see source embedded in elf file Message-ID: <20091122171617.GL18195@honey.hogyros.de> References: <3a665c760911220903y352e7062m2acfd5fb27a1b169@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3a665c760911220903y352e7062m2acfd5fb27a1b169@mail.gmail.com> User-Agent: Mutt/1.5.20 (2009-06-14) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2009-11/txt/msg00173.txt.bz2 Hi, On Mon, Nov 23, 2009 at 01:03:36AM +0800, loody wrote: > If my tool chain cannot generate elf file without source embedded even > I compile them with "-g", can I do the source level debugging? That assembler dump appears to be from a fully linked file, so I'd suspect the debug info is stripped at link time. Have you passed the -g option to the link step as well? Simon