From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 27156 invoked by alias); 26 Jan 2008 23:52:37 -0000 Received: (qmail 27147 invoked by uid 22791); 26 Jan 2008 23:52:37 -0000 X-Spam-Check-By: sourceware.org Received: from mail-out3.apple.com (HELO mail-out3.apple.com) (17.254.13.22) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sat, 26 Jan 2008 23:52:16 +0000 Received: from relay14.apple.com (relay14.apple.com [17.128.113.52]) by mail-out3.apple.com (Postfix) with ESMTP id 15C261F48244; Sat, 26 Jan 2008 15:52:15 -0800 (PST) Received: from relay14.apple.com (unknown [127.0.0.1]) by relay14.apple.com (Symantec Mail Security) with ESMTP id F0B1D28089; Sat, 26 Jan 2008 15:52:14 -0800 (PST) X-AuditID: 11807134-a58edbb0000008b9-7c-479bc7aefeb2 Received: from gdbrulez.apple.com (gdbrulez.apple.com [17.201.22.244]) by relay14.apple.com (Apple SCV relay) with ESMTP id CD67628088; Sat, 26 Jan 2008 15:52:14 -0800 (PST) Cc: gdb@sourceware.org Message-Id: <6537BA63-0B22-4984-85EA-3B1B341EE848@apple.com> From: Jim Ingham To: Srinath Avadhanula In-Reply-To: Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Mailer: Apple Mail (2.915) Mime-Version: 1.0 (Apple Message framework v915) Subject: Re: How to load only selected libraries? Date: Sat, 26 Jan 2008 23:52:00 -0000 References: <20080121031636.GB12135@caradoc.them.org> <3E22A5C5-689C-4E63-817F-5884D11D8838@apple.com> 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/msg00273.txt.bz2 For historical reasons the Apple shared library handling code doesn't share the mechanisms that Linux/etc. use. So the majority of the code would have to be ported over from the macosx/*dyld* code, where it lives in our gdb, to the solib code in FSF gdb. I don't have any experience with the Linux solib code in gdb, so I'm not likely to tackle this. I was offering this more as an interesting design point. Jim On Jan 26, 2008, at 6:52 AM, Srinath Avadhanula wrote: > Hi Jim, > > On Jan 21, 2008 1:55 PM, Jim Ingham wrote: >> We did this at Apple a while back. We have a command "set >> sharedlibrary load-rules" that works like: >> > [snip interesting explanation of this feature] > > This sounds incredibly useful. Any idea if this will be incorporated > back into gdb itself? > > Thanks, > Srinath