]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* defs.h (exec_set_section_offsets): Remove prototype.
authorThiago Jung Bauermann <bauerman@br.ibm.com>
Sat, 19 Apr 2008 02:07:19 +0000 (02:07 +0000)
committerThiago Jung Bauermann <bauerman@br.ibm.com>
Sat, 19 Apr 2008 02:07:19 +0000 (02:07 +0000)
* exec.c (exec_set_section_offsets): Remove function.

gdb/ChangeLog
gdb/defs.h
gdb/exec.c

index 7207d2005e6c181d58aa0f357133e00b08f548fe..5d371ef4c44b0afe2ae2297b560fdb7a2178db79 100644 (file)
@@ -1,3 +1,8 @@
+2008-04-18  Thiago Jung Bauermann  <bauerman@br.ibm.com>
+
+       * defs.h (exec_set_section_offsets): Remove prototype.
+       * exec.c (exec_set_section_offsets): Remove function.
+
 2008-04-18  Joel Brobecker  <brobecker@adacore.com>
 
        * stabsread.c (cleanup_undefined_types_1): Add instance flags check
index e4344a72a699ee402cbad78aaad97cc84f345c39..2ec9199aac294ea74b67597a7c06a463676fdf40 100644 (file)
@@ -603,10 +603,6 @@ extern void init_last_source_visited (void);
 
 /* From exec.c */
 
-extern void exec_set_section_offsets (bfd_signed_vma text_off,
-                                     bfd_signed_vma data_off,
-                                     bfd_signed_vma bss_off);
-
 /* Take over the 'find_mapped_memory' vector from exec.c. */
 extern void exec_set_find_memory_regions (int (*) (int (*) (CORE_ADDR, 
                                                            unsigned long, 
index a230db29b864ae0be0c1dee5d3e46918b2fa2154..ea57fcd67cdd3563924771c5f05e71d826fdb4ba 100644 (file)
@@ -598,42 +598,6 @@ exec_files_info (struct target_ops *t)
     }
 }
 
-/* msnyder 5/21/99:
-   exec_set_section_offsets sets the offsets of all the sections
-   in the exec objfile.  */
-
-void
-exec_set_section_offsets (bfd_signed_vma text_off, bfd_signed_vma data_off,
-                         bfd_signed_vma bss_off)
-{
-  struct section_table *sect;
-
-  for (sect = exec_ops.to_sections;
-       sect < exec_ops.to_sections_end;
-       sect++)
-    {
-      flagword flags;
-
-      flags = bfd_get_section_flags (exec_bfd, sect->the_bfd_section);
-
-      if (flags & SEC_CODE)
-       {
-         sect->addr += text_off;
-         sect->endaddr += text_off;
-       }
-      else if (flags & (SEC_DATA | SEC_LOAD))
-       {
-         sect->addr += data_off;
-         sect->endaddr += data_off;
-       }
-      else if (flags & SEC_ALLOC)
-       {
-         sect->addr += bss_off;
-         sect->endaddr += bss_off;
-       }
-    }
-}
-
 static void
 set_section_command (char *args, int from_tty)
 {