From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29219 invoked by alias); 29 Feb 2008 13:41:50 -0000 Received: (qmail 29206 invoked by uid 22791); 29 Feb 2008 13:41:48 -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; Fri, 29 Feb 2008 13:41:27 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id 60C76983A1; Fri, 29 Feb 2008 13:41: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 4BE6E9831E; Fri, 29 Feb 2008 13:41:26 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1JV5UL-0000km-Im; Fri, 29 Feb 2008 08:41:25 -0500 Date: Fri, 29 Feb 2008 18:19:00 -0000 From: Daniel Jacobowitz To: luca regini Cc: gdb@sourceware.org Subject: Re: Beginner question regarding gdb symbol files Message-ID: <20080229134125.GB2573@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> <20080228161244.GA31641@caradoc.them.org> <64077c280802280852j67689f54g6e6fefc8f6ba1ba4@mail.gmail.com> <20080228165941.GA1954@caradoc.them.org> <1204227347.19253.456.camel@localhost.localdomain> <64077c280802290313j71685717q225403479ed99c63@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <64077c280802290313j71685717q225403479ed99c63@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/msg00258.txt.bz2 On Fri, Feb 29, 2008 at 12:13:13PM +0100, luca regini wrote: > The server is an openldap server. The binary comes directly from the > fedora package for it. My plugin is a custom openldap backend that is > loaded into the server using a libtool facility: lt_dlopenext. > This is the output that i get when i try run gdb slapd immediatly: > > gdb slapd > (gdb) start > Breakpoint 1 at 0x14bc7: file ../../../servers/slapd/main.c, line 304. > Starting program: /opt/six/sbin/slapd > Warning: > Cannot insert breakpoint 1. > Error accessing memory address 0x14bc7: Input/output error. This probably means that Fedora builds slapd as a PIE (position-independent executable). GDB doesn't support those. -- Daniel Jacobowitz CodeSourcery