From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 19357 invoked by alias); 9 Jan 2007 13:41:25 -0000 Received: (qmail 19321 invoked by uid 22791); 9 Jan 2007 13:41:24 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Tue, 09 Jan 2007 13:41:16 +0000 Received: from drow by nevyn.them.org with local (Exim 4.63) (envelope-from ) id 1H4HE2-0004Ja-JJ; Tue, 09 Jan 2007 08:41:14 -0500 Date: Tue, 09 Jan 2007 13:41:00 -0000 From: Daniel Jacobowitz To: Mathieu Lacage Cc: gdb@sourceware.org Subject: Re: gdb and dynamic loader namespaces Message-ID: <20070109134113.GA16313@nevyn.them.org> Mail-Followup-To: Mathieu Lacage , gdb@sourceware.org References: <1168268998.21818.44.camel@garfield.inria.fr> <20070108151510.GA14359@nevyn.them.org> <1168329428.21818.61.camel@garfield.inria.fr> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1168329428.21818.61.camel@garfield.inria.fr> User-Agent: Mutt/1.5.13 (2006-08-11) 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: 2007-01/txt/msg00138.txt.bz2 On Tue, Jan 09, 2007 at 08:57:08AM +0100, Mathieu Lacage wrote: > The question then is how can we get access to the link_map of each > namespace from the parent process ? We could perform a lookup for the > rtld_global data structure and then, use an offset from there to get the > required data. I suspect you won't be thrilled by that though. Do you > have any better idea ? Maybe I should ask this question on a glibc ML: I > would be surprised if no one had ever planned debugger support for this > feature. It may require updating the public members of struct r_debug (and its version number). I would recommend not digging around in rtld_global, at least not without talking to the glibc developers first; it's prone to changing layout between versions. You could see what Solaris does, if it's in their documentation. -- Daniel Jacobowitz CodeSourcery