From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32094 invoked by alias); 28 Feb 2008 15:57:27 -0000 Received: (qmail 32080 invoked by uid 22791); 28 Feb 2008 15:57:27 -0000 X-Spam-Check-By: sourceware.org Received: from an-out-0708.google.com (HELO an-out-0708.google.com) (209.85.132.240) by sourceware.org (qpsmtpd/0.31) with ESMTP; Thu, 28 Feb 2008 15:57:04 +0000 Received: by an-out-0708.google.com with SMTP id c23so1082061anc.42 for ; Thu, 28 Feb 2008 07:57:03 -0800 (PST) Received: by 10.100.136.15 with SMTP id j15mr15956616and.80.1204214222642; Thu, 28 Feb 2008 07:57:02 -0800 (PST) Received: by 10.100.207.14 with HTTP; Thu, 28 Feb 2008 07:57:02 -0800 (PST) Message-ID: <64077c280802280757n76d94f5ckd839cca266437296@mail.gmail.com> Date: Thu, 28 Feb 2008 16:13:00 -0000 From: "luca regini" To: "luca regini" , gdb@sourceware.org Subject: Re: Beginner question regarding gdb symbol files In-Reply-To: <20080221134725.GA6642@caradoc.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <64077c280802210543r163ce60aje62c2d6fc4632554@mail.gmail.com> <20080221134725.GA6642@caradoc.them.org> 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/msg00245.txt.bz2 I have another question regarding gdb and debugging. I would like to debug a plug-in written for a server application. This plugin is compiled as a shared library that includes symbols. The server application doesn't come with symbols neither source code. I have problems debugging my plugin code in these conditions. I tried to use the --add-gnu-debuglink option to link in the server's symbols but i am still unable to debug my module. Do i need both the server symbols and source files? Is it possibile to debug the pluging using only it's symbols and sources? Thanks in advance. Luca How does gdb behaves when it doesn't see all the source files of a process? I have this situation On Thu, Feb 21, 2008 at 2:47 PM, Daniel Jacobowitz wrote: > 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 >