From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 26835 invoked by alias); 23 Apr 2012 17:58:25 -0000 Received: (qmail 26825 invoked by uid 22791); 23 Apr 2012 17:58:23 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=AWL,BAYES_00,KHOP_THREADED X-Spam-Check-By: sourceware.org Received: from shell4.bayarea.net (HELO shell4.bayarea.net) (209.128.82.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Mon, 23 Apr 2012 17:58:10 +0000 Received: (qmail 11210 invoked from network); 23 Apr 2012 10:58:10 -0700 Received: from c-76-102-3-160.hsd1.ca.comcast.net (HELO redwood.eagercon.com) (76.102.3.160) by shell4.bayarea.net with SMTP; 23 Apr 2012 10:58:09 -0700 Message-ID: <4F959830.8070206@eagerm.com> Date: Mon, 23 Apr 2012 17:58:00 -0000 From: Michael Eager User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:11.0) Gecko/20120329 Thunderbird/11.0.1 MIME-Version: 1.0 To: Daniel Jacobowitz CC: gdb@sourceware.org Subject: Re: GDB shared library tests with remote target References: <4F944677.2030504@eagerm.com> In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2012-04/txt/msg00185.txt.bz2 On 04/23/2012 10:39 AM, Daniel Jacobowitz wrote: > On Sun, Apr 22, 2012 at 1:57 PM, Michael Eager wrote: >> When run on a remote system, the test fails to load the shared >> library because the loader has an absolute path to the shared >> library and does not search for it. > >> Q. Did this ever work? If yes, how and how do I make it work now? > > I always run GDB tests with the same path on local and remote systems, > usually using NFS. Then it works. There's nothing fundamental about > this - you could teach all the affected tests to use a search path or > set sysroot or something - but this was easy at the time :-) Yes, that seems to be the only way that this can work. Not easy in the environment I'm working with. BTW, it might be nice if the test suite contained tests using sysroot. Fixing this doesn't require modifying all of the tests, only gdb.exp:gdb_compile where the test is compiled. -- Michael Eager eager@eagercon.com 1960 Park Blvd., Palo Alto, CA 94306 650-325-8077