From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 13336 invoked by alias); 25 Oct 2005 14:46:24 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 13319 invoked by uid 22791); 25 Oct 2005 14:46:21 -0000 Received: from qnxmail.qnx.com (HELO nimbus.ott.qnx.com) (209.226.137.76) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Tue, 25 Oct 2005 14:46:21 +0000 Received: by nimbus.ott.qnx.com with Internet Mail Service (5.5.2653.19) id ; Tue, 25 Oct 2005 10:46:15 -0400 Message-ID: <3518719F06577C4F85DA618E3C37AB9101CFC85F@nimbus.ott.qnx.com> From: Kris Warkentin To: 'Christophe LYON' , Roberto Brunelli Cc: gdb@sources.redhat.com Subject: RE: Debugging with linked shared libraries .... Date: Tue, 25 Oct 2005 14:46:00 -0000 MIME-Version: 1.0 Content-Type: text/plain X-SW-Source: 2005-10/txt/msg00135.txt.bz2 Best to 'set solib-search-path ' in gdb. Try putting it in your .gdbinit. cheers, Kris > -----Original Message----- > From: gdb-owner@sources.redhat.com > [mailto:gdb-owner@sources.redhat.com] On Behalf Of Christophe LYON > Sent: Tuesday, October 25, 2005 9:55 AM > To: Roberto Brunelli > Cc: gdb@sources.redhat.com > Subject: Re: Debugging with linked shared libraries .... > > > > I would like to debug a c++ program that links shared libraries > > (files) in non standard places: > > > > 1. I set the LD_LIBRARY_PATH so that the program runs fine from my > > (c)sh > > > > 2. I execute > > > > gdb myProg > > > > 3. but when I 'run' > > > > Presumably your .cshrc resets your LD_LIBRARY_PATH. > 'run' starts a new shell, and thus sources your .cshrc. > > You have to set your LD_LIBRARY_PATH in your .cshrc > > Christophe. >