aboutsummaryrefslogtreecommitdiff
path: root/gdb/exec.c
diff options
context:
space:
mode:
authorThiago Jung Bauermann <bauerman@br.ibm.com>2008-04-19 02:07:19 +0000
committerThiago Jung Bauermann <bauerman@br.ibm.com>2008-04-19 02:07:19 +0000
commita03b3a978574778b7aee965e23a1f60968b0fcb2 (patch)
tree436fc05eec91e9a5f60113e4dff9810c58074649 /gdb/exec.c
parent9c1137add5cd5f2141ed9b645625e49c5dff2664 (diff)
downloadgdb-a03b3a978574778b7aee965e23a1f60968b0fcb2.zip
gdb-a03b3a978574778b7aee965e23a1f60968b0fcb2.tar.gz
gdb-a03b3a978574778b7aee965e23a1f60968b0fcb2.tar.bz2
* defs.h (exec_set_section_offsets): Remove prototype.
* exec.c (exec_set_section_offsets): Remove function.
Diffstat (limited to 'gdb/exec.c')
-rw-r--r--gdb/exec.c36
1 files changed, 0 insertions, 36 deletions
diff --git a/gdb/exec.c b/gdb/exec.c
index a230db2..ea57fcd 100644
--- a/gdb/exec.c
+++ b/gdb/exec.c
@@ -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)
{