From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11069 invoked by alias); 25 Oct 2005 13:55:08 -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 10976 invoked by uid 22791); 25 Oct 2005 13:55:03 -0000 Received: from fra-del-01.spheriq.net (HELO fra-del-01.spheriq.net) (195.46.51.97) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Tue, 25 Oct 2005 13:55:03 +0000 Received: from fra-out-02.spheriq.net (fra-out-02.spheriq.net [195.46.51.130]) by fra-del-01.spheriq.net with ESMTP id j9PDt0lZ024147 for ; Tue, 25 Oct 2005 13:55:00 GMT Received: from fra-cus-01.spheriq.net (fra-cus-01.spheriq.net [195.46.51.37]) by fra-out-02.spheriq.net with ESMTP id j9PDsqN8023096 for ; Tue, 25 Oct 2005 13:54:57 GMT Received: from beta.dmz-eu.st.com (beta.dmz-eu.st.com [164.129.1.35]) by fra-cus-01.spheriq.net with ESMTP id j9PDsj6a007972 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=OK); Tue, 25 Oct 2005 13:54:49 GMT Received: from zeta.dmz-eu.st.com (ns2.st.com [164.129.230.9]) by beta.dmz-eu.st.com (STMicroelectronics) with ESMTP id E4E10DA4F; Tue, 25 Oct 2005 13:54:44 +0000 (GMT) Received: by zeta.dmz-eu.st.com (STMicroelectronics, from userid 60012) id 99AF7473D9; Tue, 25 Oct 2005 13:57:33 +0000 (GMT) Received: from zeta.dmz-eu.st.com (localhost [127.0.0.1]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id 56FB675999; Tue, 25 Oct 2005 13:57:33 +0000 (UTC) Received: from mail2.gnb.st.com (mail2.gnb.st.com [164.129.119.59]) by zeta.dmz-eu.st.com (STMicroelectronics) with ESMTP id E14F8473E2; Tue, 25 Oct 2005 13:57:32 +0000 (GMT) Received: from st.com (gnx2364.gnb.st.com [164.129.122.218]) by mail2.gnb.st.com (MOS 3.4.4-GR) with ESMTP id CCS06241 (AUTH lyon); Tue, 25 Oct 2005 15:54:43 +0200 (CEST) Message-ID: <435E3922.3060506@st.com> Date: Tue, 25 Oct 2005 13:55:00 -0000 From: Christophe LYON User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4.3) Gecko/20040924 MIME-Version: 1.0 To: Roberto Brunelli Cc: gdb@sources.redhat.com Subject: Re: Debugging with linked shared libraries .... References: <1130247165.27815.ezmlm@sources.redhat.com> <435E3748.5000901@itc.it> In-Reply-To: <435E3748.5000901@itc.it> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-O-Spoofed: Not Scanned X-O-General-Status: No X-O-Spam1-Status: Not Scanned X-O-Spam2-Status: Not Scanned X-O-URL-Status: Not Scanned X-O-Virus1-Status: No X-O-Virus2-Status: Not Scanned X-O-Virus3-Status: No X-O-Virus4-Status: No X-O-Virus5-Status: Not Scanned X-O-Image-Status: Not Scanned X-O-Attach-Status: Not Scanned X-SpheriQ-Ver: 4.1.07 X-SW-Source: 2005-10/txt/msg00134.txt.bz2 > 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.