From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 32074 invoked by alias); 19 Feb 2003 19:04:21 -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 32062 invoked from network); 19 Feb 2003 19:04:19 -0000 Received: from unknown (HELO hub.ott.qnx.com) (209.226.137.76) by 172.16.49.205 with SMTP; 19 Feb 2003 19:04:19 -0000 Received: from smtp.ott.qnx.com (smtp.ott.qnx.com [10.0.2.158]) by hub.ott.qnx.com (8.9.3/8.9.3) with ESMTP id NAA22642 for ; Wed, 19 Feb 2003 13:52:40 -0500 Received: from catdog ([10.4.2.2]) by smtp.ott.qnx.com (8.8.8/8.6.12) with SMTP id OAA00802 for ; Wed, 19 Feb 2003 14:04:19 -0500 Message-ID: <0a0b01c2d849$b1bcfc40$0202040a@catdog> From: "Kris Warkentin" To: Subject: solib-search-path not honoured after program start Date: Wed, 19 Feb 2003 19:04:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-SW-Source: 2003-02/txt/msg00368.txt.bz2 Here's the problem: Run a program under gdb and break at main. If gdb can't find all the shared libs, it complains about it like so: Error while mapping shared library sections: libtestLib_g.so.1: No such file or directory. So, at main, if I 'info shared', I see something like this: >From To Syms Read Shared Object Library No libtestLib_g.so.1 0xb0312504 0xb0349b06 Yes /t/x86/lib/libc.so.2 If I now go and set solib-search-path such that it can find libtestLib_g.so.1, and type 'shared', it still doesn't find it. If I restart the program, there is no problem. For whatever reason, after the process has started, gdb never tries to find the shlibs again. I spent some time tracing around but didn't see exactly where this might be fixable. Looks like solib_open does the searching but isn't called later on. The shared command calls solib_add which doesn't seem to do any searching on solib_search_path. Can/should this be fixed? cheers, Kris