From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6344 invoked by alias); 30 Jan 2008 18:45:13 -0000 Received: (qmail 6335 invoked by uid 22791); 30 Jan 2008 18:45:13 -0000 X-Spam-Check-By: sourceware.org Received: from shell4.BAYAREA.NET (HELO shell4.bayarea.net) (209.128.82.1) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 30 Jan 2008 18:44:52 +0000 Received: (qmail 30094 invoked from network); 30 Jan 2008 10:44:50 -0800 Received: from 209-128-106-254.bayarea.net (HELO ?192.168.20.7?) (209.128.106.254) by shell4.bayarea.net with SMTP; 30 Jan 2008 10:44:50 -0800 Message-ID: <47A0C5A1.7090608@eagercon.com> Date: Wed, 30 Jan 2008 18:45:00 -0000 From: Michael Eager User-Agent: Thunderbird 1.5.0.9 (X11/20070102) MIME-Version: 1.0 To: Mark Kettenis CC: gdb@sourceware.org Subject: Re: Finding ld.so dynamic loader References: <47A0A8D8.7090508@eagercon.com> <200801301827.m0UIRbv7029099@brahms.sibelius.xs4all.nl> In-Reply-To: <200801301827.m0UIRbv7029099@brahms.sibelius.xs4all.nl> 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: 2008-01/txt/msg00345.txt.bz2 Mark Kettenis wrote: >> Can someone explain to me how gdb is supposed to find the correct >> ld.so or why I'm looking at this incorrectly? > > Oh that's an easy one. GDB got corrupted by the embedded crowd who > can't settle on a single way to build and install a cross toolchain. I'll plead nolo contendere. All the variations in building a cross toolchain are as confusing to toolchain developers as debugger developers. > GDB tries to please them all, and still tries to cover the case of a > native debugger too. It still seems that searching the host file system should be the last choice, not the first. This makes setting the solib search path or using a target-dependent search function moot, unless the user also sets the solib search prefix to a bogus value. > Oh, by the way, you're looking at an old GDB version; we also have > GDB_SYSROOT now. Yes, I'm using gdb-6.5. -- Michael Eager eager@eagercon.com 1960 Park Blvd., Palo Alto, CA 94306 650-325-8077