From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23455 invoked by alias); 17 Dec 2006 00:42:51 -0000 Received: (qmail 23444 invoked by uid 22791); 17 Dec 2006 00:42:50 -0000 X-Spam-Check-By: sourceware.org Received: from tmpnat1.honeywell.com (HELO AZ18CN849.global.ds.honeywell.com) (199.64.0.252) by sourceware.org (qpsmtpd/0.31) with ESMTP; Sun, 17 Dec 2006 00:42:40 +0000 Received: from AZ18EV808.global.ds.honeywell.com ([131.127.167.102]) by AZ18CN849.global.ds.honeywell.com with Microsoft SMTPSVC(6.0.3790.1830); Sat, 16 Dec 2006 17:42:39 -0700 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Subject: RE: GDB solib interface Date: Sun, 17 Dec 2006 00:42:00 -0000 Message-ID: In-Reply-To: <20061208211922.GA28061@nevyn.them.org> From: "Smith, Stephen \(SWCOE\)" To: "Daniel Jacobowitz" , "General GDB Mailing List" 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: 2006-12/txt/msg00151.txt.bz2 The function solib_target_relocate_section_addresses() refers to functions and datamembers that no longer exist. I believe that borrowing code from the svr4 code is the correct thing to do. Can anyone confirm that that is the right thing? -----Original Message----- From: Daniel Jacobowitz [mailto:drow@false.org]=20 Sent: Friday, December 08, 2006 2:19 PM To: Smith, Stephen (SWCOE); General GDB Mailing List Subject: Re: GDB solib interface +static void +solib_target_free_so (struct so_list *so) +{ + xfree (so->lm_info); +} + +static void +solib_target_relocate_section_addresses (struct so_list *so, + struct section_table *sec) +{ + int flags =3D bfd_get_section_flags (sec->bfd, sec->the_bfd_section); + CORE_ADDR offset; + + offset =3D symfile_section_offset_from_segment (sec->bfd, sec->the_bfd_section, + so->lm_info->textSeg, + so->lm_info->dataSeg); +