GDB solib interface
Smith, Stephen (SWCOE)
Stephen.Smith@honeywell.com
Sun Dec 17 00:42:00 GMT 2006
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);
+
More information about the Gdb
mailing list