From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26331 invoked by alias); 13 Jul 2006 17:05:39 -0000 Received: (qmail 26315 invoked by uid 22791); 13 Jul 2006 17:05:37 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Thu, 13 Jul 2006 17:05:32 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1G14d0-0007aW-Ag; Thu, 13 Jul 2006 13:05:30 -0400 Date: Thu, 13 Jul 2006 17:05:00 -0000 From: Daniel Jacobowitz To: Thomas Ackermann Cc: gdb@sourceware.org Subject: Re: Help with debugging LD_PRELOADed shared C libraries Message-ID: <20060713170530.GB28970@nevyn.them.org> Mail-Followup-To: Thomas Ackermann , gdb@sourceware.org References: <6780801.1152809218081.OPEN-XCHANGE.WebMail.wwwrun@eu.main.anykey> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <6780801.1152809218081.OPEN-XCHANGE.WebMail.wwwrun@eu.main.anykey> User-Agent: Mutt/1.5.11+cvs20060403 X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-07/txt/msg00063.txt.bz2 On Thu, Jul 13, 2006 at 06:46:58PM +0200, Thomas Ackermann wrote: > I tried "export LD_PRELOAD=/.../mylib.so" and then started "gdb mybin > core" or tried to set it within gdb: "set environment > LD_PRELOAD /.../mylib.so" and then continue with "file mybin" and "core > core", but: If you're using a core file, the environment doesn't matter. The libraries should be loaded automatically. Does info shared show something reasonable-looking? Are you sure that core dumps work on this system? -- Daniel Jacobowitz CodeSourcery