From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23648 invoked by alias); 12 Aug 2002 11:18:25 -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 23634 invoked from network); 12 Aug 2002 11:18:22 -0000 Received: from unknown (HELO smtp-2.hut.fi) (130.233.228.92) by sources.redhat.com with SMTP; 12 Aug 2002 11:18:22 -0000 Received: from james.hut.fi (james.hut.fi [130.233.173.1]) by smtp-2.hut.fi (8.12.3/8.12.3) with ESMTP id g7CBIFJN003409; Mon, 12 Aug 2002 14:18:15 +0300 Received: (from jorma@localhost) by james.hut.fi (SGI-8.9.3/8.9.3) id OAA16985; Mon, 12 Aug 2002 14:18:15 +0300 (EEST) To: Daniel Jacobowitz Cc: Kevin Buettner , gdb-gnats@sources.redhat.com, gdb@sources.redhat.com Subject: Re: gdb/633: fully qualified pathnames in solib_map_sections() and remote debugging References: <20020806100634.11483.qmail@sources.redhat.com> <20020806132047.GA16450@nevyn.them.org> <1020809231206.ZM11775@localhost.localdomain> <20020812032527.GA3838@nevyn.them.org> From: Jorma Laaksonen Organization: Helsinki University of Technology X-Home-Page: http://www.cis.hut.fi/jorma/ X-Face: +BUj?(:0%w8uoHDG-8R4F[."7YyYY66G:ZR:R@h^aQPez`e^wW0oKeudTTQz[fU*LWv V%=%9hZ&s:BJi1?y5OouuIXcRT|K$]tg^Gn|~2xjO(zH^5~oI6^KIM!qnuC#+!9 Date: Mon, 12 Aug 2002 04:18:00 -0000 In-Reply-To: <20020812032527.GA3838@nevyn.them.org> Message-ID: User-Agent: Gnus/5.0808 (Gnus v5.8.8) XEmacs/21.4 (Honest Recruiter) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2002-08/txt/msg00091.txt.bz2 Daniel Jacobowitz writes: > > > Global variable SOLIB_ABSOLUTE_PREFIX is used as a prefix directory > > > to search for shared libraries if they have an absolute path. > > > > > > Global variable SOLIB_SEARCH_PATH is used as a prefix directory > > > (or set of directories, as in LD_LIBRARY_PATH) to search for all > > > shared libraries if not found in SOLIB_ABSOLUTE_PREFIX. > > > > > > Search order: > > > * If path is absolute, look in SOLIB_ABSOLUTE_PREFIX. > > > * If path is absolute or relative, look for it literally (unmodified). > > > * Look in SOLIB_SEARCH_PATH. > > > * Look in inferior's $PATH. > > > * Look in inferior's $LD_LIBRARY_PATH. > > > > > ... Thank you very much for giving thoughs to this issue. I have two additional points to add: 1) It would be most useful if gdb could check that the remote and local solibs are equal, eg. that their versions, checksums or other identifiers or the memory mapping locations such as reported by ldd are the same. Otherwise, the host cannot know what really is going on in the target. 2) The texinfo documentation should be updated to include these vaariables. In the first place, I was reading info pages and therefore concluded that the problem had not been addressed before. Only after your reply I checked "help show" within gdb. Yours, Jorma Laaksonen -- Jorma Laaksonen email: jorma.laaksonen@hut.fi Dr. of Science in Technology, Docent http://www.cis.hut.fi/jorma/ Laboratory of Computer and Information Science tel. +358-9-4513269 Helsinki University of Technology fax. +358-9-4513277 P.O.Box 5400, Fin-02015 HUT, Finland mob. +358-50-3058719