From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 14605 invoked by alias); 30 Jan 2008 19:04:45 -0000 Received: (qmail 14596 invoked by uid 22791); 30 Jan 2008 19:04:44 -0000 X-Spam-Check-By: sourceware.org Received: from aussmtpmrkps320.us.dell.com (HELO aussmtpmrkps320.us.dell.com) (143.166.224.254) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 30 Jan 2008 19:04:19 +0000 X-IronPort-AV: E=Sophos;i="4.25,278,1199685600"; d="scan'208";a="339984600" Received: from unknown (HELO M31.equallogic.com) ([12.110.134.31]) by aussmtpmrkps320.us.dell.com with SMTP; 30 Jan 2008 13:04:17 -0600 MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Message-ID: <18336.51719.355382.325696@pkoning-laptop.equallogic.com> Date: Wed, 30 Jan 2008 19:04:00 -0000 From: Paul Koning To: eager@eagercon.com Cc: mark.kettenis@xs4all.nl, gdb@sourceware.org Subject: Re: Finding ld.so dynamic loader References: <47A0A8D8.7090508@eagercon.com> <200801301827.m0UIRbv7029099@brahms.sibelius.xs4all.nl> <47A0C5A1.7090608@eagercon.com> X-Mailer: VM 7.17 under 21.4 (patch 19) "Constant Variable" XEmacs Lucid 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/msg00346.txt.bz2 >>>>> "Michael" == Michael Eager writes: Michael> Mark Kettenis wrote: >> GDB tries to please them all, and still tries to cover the case of >> a native debugger too. Michael> It still seems that searching the host file system should be Michael> the last choice, not the first. It should either be the last choice, or not be done at all. An example where it should not be done at all is when host and target are different architectures. Looking up a symbol in an x86 library when you're debugging a MIPS target cannot ever be correct -- but that's what can happen today. (This is also an example of something that can easily be checked by the solib code without worrying about the "remote" vs. "local" distinction -- if host != target then by definition the host libraries are wrong.) paul