From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16555 invoked by alias); 28 Feb 2008 16:13:08 -0000 Received: (qmail 16543 invoked by uid 22791); 28 Feb 2008 16:13:08 -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, 28 Feb 2008 16:12:48 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 88624983A1; Thu, 28 Feb 2008 16:12:46 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id 924D998140; Thu, 28 Feb 2008 16:12:45 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1JUlNE-0008Eg-Ov; Thu, 28 Feb 2008 11:12:44 -0500 Date: Thu, 28 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: <20080228161244.GA31641@caradoc.them.org> Mail-Followup-To: luca regini , gdb@sourceware.org References: <64077c280802210543r163ce60aje62c2d6fc4632554@mail.gmail.com> <20080221134725.GA6642@caradoc.them.org> <64077c280802280757n76d94f5ckd839cca266437296@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <64077c280802280757n76d94f5ckd839cca266437296@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/msg00246.txt.bz2 On Thu, Feb 28, 2008 at 04:57:02PM +0100, luca regini wrote: > 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? --add-gnu-debuglink is not related to this situation. GDB should automatically load symbols for your plugin when the application loads it. What doesn't work? -- Daniel Jacobowitz CodeSourcery