From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11736 invoked by alias); 3 Aug 2005 19:19:44 -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 11723 invoked by uid 22791); 3 Aug 2005 19:19:40 -0000 Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.30-dev) with ESMTP; Wed, 03 Aug 2005 19:19:40 +0000 Received: from drow by nevyn.them.org with local (Exim 4.52) id 1E0Om8-0004PU-AO; Wed, 03 Aug 2005 15:19:36 -0400 Date: Wed, 03 Aug 2005 19:19:00 -0000 From: Daniel Jacobowitz To: Mark Kettenis Cc: pkoning@equallogic.com, gdb@sources.redhat.com Subject: Re: solib search algorithm for cross-gdb Message-ID: <20050803191936.GA16880@nevyn.them.org> Mail-Followup-To: Mark Kettenis , pkoning@equallogic.com, gdb@sources.redhat.com References: <17136.51402.673936.895045@gargle.gargle.HOWL> <20050803170618.GA12169@nevyn.them.org> <200508031915.j73JF4Oc008117@elgar.sibelius.xs4all.nl> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200508031915.j73JF4Oc008117@elgar.sibelius.xs4all.nl> User-Agent: Mutt/1.5.8i X-SW-Source: 2005-08/txt/msg00020.txt.bz2 On Wed, Aug 03, 2005 at 09:15:04PM +0200, Mark Kettenis wrote: > Indeed. What's important to really that even a native gdb can be used > for cross-debugging. Therefore, it's probably a better idea to > determine "nativeness" at run time, by comparing the architecture and > OS/ABI to the system gdb is running on. I don't see how that helps? Nativeness is not the most important factor here. In fact, it's not even particularly important; a MIPS64 GDB doesn't have to care which ABI it was compiled for or which architecture the debuggee was compiled for (well, except for thread_db). > (child, remote, core) and nativeness. Obviously for native child and > core the root would be /. For remote we should probably default to > whatever was specified using --with-sysroot when gdb was configured. No, --with-sysroot should be honored no matter what the target is. It should definitely be honored for core. It should be honored for native, too - you can be debugging in a chroot relative to GDB. > I don't know if that's worth implementing. I'm inclined to say that > your suggestion is progress, at least. > > Hmm. I get the feeling we have been tweaking things too much already > in the past. I'd really prefer someone making a well though-out > design and implementing things properly. Since no one has ever come up with such a design, I'm keeping my hopes in check... -- Daniel Jacobowitz CodeSourcery, LLC