From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32709 invoked by alias); 21 Feb 2008 13:47:55 -0000 Received: (qmail 32698 invoked by uid 22791); 21 Feb 2008 13:47:54 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 21 Feb 2008 13:47:28 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 81205981FC; Thu, 21 Feb 2008 13:47:26 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 664C39810C; Thu, 21 Feb 2008 13:47:26 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1JSBll-0001lU-J0; Thu, 21 Feb 2008 08:47:25 -0500 Date: Thu, 21 Feb 2008 16:53:00 -0000 From: Daniel Jacobowitz To: luca regini Cc: gdb@sourceware.org Subject: Re: Beginner question regarding gdb symbol files Message-ID: <20080221134725.GA6642@caradoc.them.org> Mail-Followup-To: luca regini , gdb@sourceware.org References: <64077c280802210543r163ce60aje62c2d6fc4632554@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <64077c280802210543r163ce60aje62c2d6fc4632554@mail.gmail.com> User-Agent: Mutt/1.5.17 (2007-12-11) 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: 2008-02/txt/msg00166.txt.bz2 On Thu, Feb 21, 2008 at 02:43:58PM +0100, luca regini wrote: > I have a project that is organized like the Makefile that follows. I > have an executable that links two shared objects. I separate debug > symbols from shared libraries and executable files. I would like to > debug the stripped executable using the stripped symbols. Sadly i am > not able to view any debug information. I tryed to use both the > symbol-file and add-symbol-file to read the stripped symbols. > Any help is very appreciated. If you use --only-keep-debug, also use objcopy --add-gnu-debuglink to create the final executable. GDB needs that pointer from your program to the debug file. -- Daniel Jacobowitz CodeSourcery