From 69b2e108bb19fd01a0d37b8dd55e88a0be070e8a Mon Sep 17 00:00:00 2001 From: thorpej Date: Sat, 3 May 2003 17:29:27 +0000 Subject: [PATCH] Remove the non-ELF case in db_machine_init(). --- sys/arch/arm/arm32/db_interface.c | 25 +------------------------ 1 file changed, 1 insertion(+), 24 deletions(-) diff --git a/sys/arch/arm/arm32/db_interface.c b/sys/arch/arm/arm32/db_interface.c index b408dd2ff842..3b9bf97a2b19 100644 --- a/sys/arch/arm/arm32/db_interface.c +++ b/sys/arch/arm/arm32/db_interface.c @@ -1,4 +1,4 @@ -/* $NetBSD: db_interface.c,v 1.25 2003/04/29 13:27:21 scw Exp $ */ +/* $NetBSD: db_interface.c,v 1.26 2003/05/03 17:29:27 thorpej Exp $ */ /* * Copyright (c) 1996 Scott K. Stevens @@ -378,29 +378,6 @@ static struct undefined_handler db_uh; void db_machine_init(void) { -#ifndef __ELF__ - struct exec *kernexec = (struct exec *)KERNEL_TEXT_BASE; - int len; - - /* - * The boot loader currently loads the kernel with the a.out - * header still attached. - */ - - if (kernexec->a_syms == 0) { - printf("ddb: No symbol table\n"); - } else { - /* cover the symbols themselves (what is the int for?? XXX) */ - esym = (int)&end + kernexec->a_syms + sizeof(int); - - /* - * and the string table. (int containing size of string - * table is included in string table size). - */ - len = *((u_int *)esym); - esym += (len + (sizeof(u_int) - 1)) & ~(sizeof(u_int) - 1); - } -#endif /* * We get called before malloc() is available, so supply a static