From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 2525 invoked by alias); 2 Oct 2003 23:18:48 -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 2518 invoked from network); 2 Oct 2003 23:18:47 -0000 Received: from unknown (HELO mx1.redhat.com) (66.187.233.31) by sources.redhat.com with SMTP; 2 Oct 2003 23:18:47 -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 h92NIl122215 for ; Thu, 2 Oct 2003 19:18:47 -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 h92NIlc12175; Thu, 2 Oct 2003 19:18:47 -0400 Received: from localhost.localdomain (vpn50-46.rdu.redhat.com [172.16.50.46]) by pobox.corp.redhat.com (8.12.8/8.12.8) with ESMTP id h92NIkbe020072; Thu, 2 Oct 2003 19:18:46 -0400 Received: (from kev@localhost) by localhost.localdomain (8.11.6/8.11.6) id h92NIfr21725; Thu, 2 Oct 2003 16:18:41 -0700 Date: Thu, 02 Oct 2003 23:18:00 -0000 From: Kevin Buettner Message-Id: <1031002231840.ZM21724@localhost.localdomain> In-Reply-To: "Stephen P. Smith" "Re: Shared libraries and the solib interface" (Oct 2, 1:50pm) References: <3F7BA58F.9050803@cox.net> <1031002054312.ZM15015@localhost.localdomain> <3F7BC5AD.9020706@cox.net> <1031002191528.ZM18319@localhost.localdomain> <3F7C8FA1.7000403@cox.net> To: "Stephen P. Smith" , Kevin Buettner Subject: Re: Shared libraries and the solib interface Cc: gdb MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2003-10/txt/msg00068.txt.bz2 On Oct 2, 1:50pm, Stephen P. Smith wrote: > Kevin Buettner wrote: > > >>And a second question is how does a > >>generic stub inform the GDB (workstation side) app which shared library > >>got loaded and where or is this not necessary? > > > >For svr4- and sunos-like shared library support, this information is > >available by examining the target's memory. > > > It is available. I guess I didn't explain well enough. Oh! > Given that I know where/what is loaded on the target machine which is > running gdbserver, how do I communicate to the workstation running gdb > to load the symbol file and the addresses of the various sections? That's already handled by the existing (generic) shared library code. See solib.c. Kevin