From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16933 invoked by alias); 4 Dec 2008 16:01:57 -0000 Received: (qmail 16743 invoked by uid 22791); 4 Dec 2008 16:01:55 -0000 X-Spam-Check-By: sourceware.org Received: from mel.act-europe.fr (HELO mel.act-europe.fr) (212.99.106.210) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Thu, 04 Dec 2008 16:01:04 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id 81424290047; Thu, 4 Dec 2008 17:01:01 +0100 (CET) Received: from mel.act-europe.fr ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id g6ViEE0Zy-rf; Thu, 4 Dec 2008 17:01:00 +0100 (CET) Received: from province.act-europe.fr (province.act-europe.fr [10.10.0.214]) by mel.act-europe.fr (Postfix) with ESMTP id B1EED290004; Thu, 4 Dec 2008 17:01:00 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by filtered-province.act-europe.fr (Postfix) with ESMTP id 7606D165B7D; Thu, 4 Dec 2008 17:01:00 +0100 (CET) Received: from province.act-europe.fr ([127.0.0.1]) by localhost (province.act-europe.fr [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZNSgae3lKAxb; Thu, 4 Dec 2008 17:01:00 +0100 (CET) Received: from [IPv6:::1] (province.act-europe.fr [10.10.0.214]) (using TLSv1 with cipher AES128-SHA (128/128 bits)) (No client certificate requested) by province.act-europe.fr (Postfix) with ESMTPSA id 07B5A165B6C; Thu, 4 Dec 2008 17:00:59 +0100 (CET) Cc: gdb-patches@sourceware.org Message-Id: <02D4698D-539F-4A69-A72A-50941F3F0C99@adacore.com> From: Tristan Gingold To: Ulrich Weigand In-Reply-To: <200812041538.mB4FcQsB007133@d12av02.megacenter.de.ibm.com> Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit Mime-Version: 1.0 (Apple Message framework v929.2) Subject: Re: [RFC] solib for darwin Date: Thu, 04 Dec 2008 16:01:00 -0000 References: <200812041538.mB4FcQsB007133@d12av02.megacenter.de.ibm.com> X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-12/txt/msg00071.txt.bz2 On Dec 4, 2008, at 4:38 PM, Ulrich Weigand wrote: > Interesting; I've been running into the same problem with supporting > SPU contexts as libraries in the context of the multi-architecture > Cell debugger. Fun! We have common interest to improve the multi-arch support in gdb. > However, instead of just overriding the bfd_check_format call (which > b.t.w. does a lot more than just checking the format, no matter its > name :-/), I've allowed the solib implementation to override the > whole solib_bfd_open call; this seems to provide more options for > future changes ... Right, your approach is more generic that mine. However with your approach, we need to also create a more generic version of solib_bfd_open so that the overriders don't have to duplicate all the features of the current solib_bfd_open (handling remotes, pathes...) I think that with your patch I don't need anymore to change non-Darwin files. > I've been wondering about the two bfds as well; note that solib simply > mirrors what is being done for the main executable file (where we have > one bfd for the exec file and one for the symbol file). With my > patch I've kept two bfds, but call the solib override implementation > to open each of them. My concern was speed and memory resources as the number of shared libraries might be large and access to them are slower (search path, ...) Anyway, this can be addressed later. > Maybe you can have a look at my patch: > http://sourceware.org/ml/gdb-patches/2008-09/msg00136.html > and see whether this would solve your problem as well (or if we can > come up with a joint approach to solve both problems). I think it does. Do you plan to commit it ? Thanks, Tristan.