This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
RE: GDB solib interface
- From: "Smith, Stephen \(SWCOE\)" <Stephen dot Smith at honeywell dot com>
- To: "Daniel Jacobowitz" <drow at false dot org>, "General GDB Mailing List" <gdb at sourceware dot org>
- Date: Sat, 16 Dec 2006 17:42:39 -0700
- Subject: RE: GDB solib interface
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]
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 = bfd_get_section_flags (sec->bfd, sec->the_bfd_section);
+ CORE_ADDR offset;
+
+ offset = symfile_section_offset_from_segment (sec->bfd,
sec->the_bfd_section,
+ so->lm_info->textSeg,
+ so->lm_info->dataSeg);
+