From b9eb0f79c6e2d41658be29a69459c546327085c1 Mon Sep 17 00:00:00 2001 From: Martin Pieuchot Date: Mon, 25 Jan 2016 14:50:14 +0000 Subject: Kill "#if 0" version of ddb_init(). --- sys/ddb/db_sym.c | 35 +---------------------------------- 1 file changed, 1 insertion(+), 34 deletions(-) (limited to 'sys/ddb/db_sym.c') diff --git a/sys/ddb/db_sym.c b/sys/ddb/db_sym.c index c9876cbb132..a461f73e7da 100644 --- a/sys/ddb/db_sym.c +++ b/sys/ddb/db_sym.c @@ -1,4 +1,4 @@ -/* $OpenBSD: db_sym.c,v 1.40 2016/01/25 14:30:30 mpi Exp $ */ +/* $OpenBSD: db_sym.c,v 1.41 2016/01/25 14:50:13 mpi Exp $ */ /* $NetBSD: db_sym.c,v 1.24 2000/08/11 22:50:47 tv Exp $ */ /* @@ -82,38 +82,6 @@ int X_db_sym_numargs(db_symtab_t *, db_sym_t, int *, * table. Note that if initializing the master symbol table fails, * no other symbol tables can be loaded. */ -#if 0 -void -ddb_init(int symsize, void *vss, void *vse) -{ - const db_symformat_t **symf; - const char *name = "bsd"; - - if (symsize <= 0) { - printf(" [ no symbols available ]\n"); - return; - } - - /* - * Do this check now for the master symbol table to avoid printing - * the message N times. - */ - if (ALIGNED_POINTER(vss, long) == 0) { - printf("[ %s symbol table has bad start address %p ]\n", - name, vss); - return; - } - - for (symf = db_symformats; *symf != NULL; symf++) { - db_symformat = *symf; - if (X_db_sym_init(symsize, vss, vse, name) == TRUE) - return; - } - - db_symformat = NULL; - printf("[ no symbol table formats found ]\n"); -} -#else void ddb_init(void) { @@ -154,7 +122,6 @@ ddb_init(void) db_symformat = NULL; printf("[ no symbol table formats found ]\n"); } -#endif /* * Add symbol table, with given name, to list of symbol tables. -- cgit v1.2.3