summaryrefslogtreecommitdiffstats
path: root/sys/ddb
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2002-09-15 22:28:39 +0000
committerbde <bde@FreeBSD.org>2002-09-15 22:28:39 +0000
commit139e8aac2e1589ae5a59fe75ef9fe42b334232e8 (patch)
tree7c16f74c196fec5bcc97e4c39e019d4fbdf38a38 /sys/ddb
parent0e886780a8e6981392676902da17eb238e5e660a (diff)
downloadFreeBSD-src-139e8aac2e1589ae5a59fe75ef9fe42b334232e8.zip
FreeBSD-src-139e8aac2e1589ae5a59fe75ef9fe42b334232e8.tar.gz
Garbage-collected __ELF__ ifdefs.
Fixed some style bugs (mainly unused includes).
Diffstat (limited to 'sys/ddb')
-rw-r--r--sys/ddb/db_elf.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/sys/ddb/db_elf.c b/sys/ddb/db_elf.c
index 92e9212..70376bb 100644
--- a/sys/ddb/db_elf.c
+++ b/sys/ddb/db_elf.c
@@ -38,25 +38,19 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
-#ifdef __ELF__
-
#include "opt_ddb.h"
#ifdef DDB_NOKLDSYM
-#include <sys/types.h>
#include <sys/param.h>
-#include <sys/systm.h>
-#include <sys/proc.h>
+#include <sys/systm.h>
#ifdef __i386__
#include <machine/bootinfo.h>
#endif
-#include <machine/db_machdep.h>
#include <ddb/ddb.h>
#include <ddb/db_sym.h>
-#include <ddb/db_output.h>
#include <machine/elf.h>
@@ -153,7 +147,7 @@ X_db_sym_init(symtab, esymtab, name)
strtab_end = (char *)symtab + shp[i].sh_offset +
shp[i].sh_size;
break;
-
+
case SHT_SYMTAB:
if (symtab_start != NULL)
goto multiple_symtab;
@@ -419,5 +413,3 @@ kdb_init(void)
}
#endif /* DDB_NOKLDSYM */
-
-#endif /* __ELF__ */
OpenPOWER on IntegriCloud