From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 18522 invoked by alias); 3 Oct 2002 03:24:57 -0000 Mailing-List: contact gdb-patches-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sources.redhat.com Received: (qmail 18512 invoked from network); 3 Oct 2002 03:24:56 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 3 Oct 2002 03:24:56 -0000 Received: from int-mx1.corp.redhat.com (int-mx1.corp.redhat.com [172.16.52.254]) by mx1.redhat.com (8.11.6/8.11.6) with ESMTP id g9335x009331 for ; Wed, 2 Oct 2002 23:05:59 -0400 Received: from pobox.corp.redhat.com (pobox.corp.redhat.com [172.16.52.156]) by int-mx1.corp.redhat.com (8.11.6/8.11.6) with ESMTP id g933Otf29438 for ; Wed, 2 Oct 2002 23:24:55 -0400 Received: from localhost.localdomain (vpn50-3.rdu.redhat.com [172.16.50.3]) by pobox.corp.redhat.com (8.11.6/8.11.6) with ESMTP id g933Os917253; Wed, 2 Oct 2002 23:24:54 -0400 Received: (from kev@localhost) by localhost.localdomain (8.11.6/8.11.6) id g933Oe805912; Wed, 2 Oct 2002 20:24:40 -0700 Date: Wed, 02 Oct 2002 20:24:00 -0000 From: Kevin Buettner Message-Id: <1021003032440.ZM5911@localhost.localdomain> In-Reply-To: Elena Zannoni "Re: [RFA] solib-svr4.c fetch link map address" (Oct 2, 9:42pm) References: <15770.22961.366656.980373@localhost.redhat.com> <1021002172805.ZM23452@localhost.localdomain> <15771.41115.509338.609647@localhost.redhat.com> To: Elena Zannoni Subject: Re: [RFA] solib-svr4.c fetch link map address Cc: gdb-patches@sources.redhat.com MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2002-10/txt/msg00102.txt.bz2 On Oct 2, 9:42pm, Elena Zannoni wrote: > +/* Get the address of the link_map for a given OBJFILE. Loop through > + the link maps, and return the address of the one corresponding to > + the given objfile. Note that this function takes into account that > + objfile can be the main executable, not just a shared library. The > + main executable has always an empty name field in the linkmap. */ Since this is all sort of experimental at the moment, your patch is okay. I think we should revisit it at a later time so that we (re)use the information that's already being fetched by solib-svr4.c. (We'll need to allocate some space for the link map address though.) With regard to the main executable, it can either be saved separately, or put on the so_list chain. BTW, have you answered Daniel's question about how a gdbserver (or some other debug agent) should fetch the link map address? I.e, is something like the qSymbol packet going to be needed? Kevin