summaryrefslogtreecommitdiffstats
path: root/contrib/gdb
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1997-12-19 21:09:20 +0000
committerbde <bde@FreeBSD.org>1997-12-19 21:09:20 +0000
commit93f1da9dce6622d530408064f4376eed1e7c5bc5 (patch)
tree97f617a97cb05d2e5ae1a45c12e06778ae8dc922 /contrib/gdb
parent98ed8d085c9f70df6cb3cd8001ae788daaae3b41 (diff)
downloadFreeBSD-src-93f1da9dce6622d530408064f4376eed1e7c5bc5.zip
FreeBSD-src-93f1da9dce6622d530408064f4376eed1e7c5bc5.tar.gz
Backed out all FreeBSD changes. They are unnecessary now that bfd
understands kernels. Reviewed by: jdp
Diffstat (limited to 'contrib/gdb')
-rw-r--r--contrib/gdb/gdb/objfiles.c7
1 files changed, 0 insertions, 7 deletions
diff --git a/contrib/gdb/gdb/objfiles.c b/contrib/gdb/gdb/objfiles.c
index 1d2260f..97b05dc 100644
--- a/contrib/gdb/gdb/objfiles.c
+++ b/contrib/gdb/gdb/objfiles.c
@@ -83,13 +83,6 @@ add_to_objfile_sections (abfd, asect, objfile_p_char)
section.objfile = objfile;
section.the_bfd_section = asect;
section.addr = bfd_section_vma (abfd, asect);
-#ifdef __FreeBSD__
- /* XXX perhaps this should be in bfd_section_vma (), but it wouldn't
- even compile there, since a bfd pointer isn't actually passed in
- all invocations of bfd_section_vma (). */
- if (kernel_debugging)
- section.addr += bfd_get_start_address (abfd);
-#endif
section.endaddr = section.addr + bfd_section_size (abfd, asect);
obstack_grow (&objfile->psymbol_obstack, (char *) &section, sizeof(section));
objfile->sections_end = (struct obj_section *) (((unsigned long) objfile->sections_end) + 1);
OpenPOWER on IntegriCloud