summaryrefslogtreecommitdiffstats
path: root/sys/ddb
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>2002-05-07 10:59:52 +0000
committerbde <bde@FreeBSD.org>2002-05-07 10:59:52 +0000
commit24769891328f49474ffe5ca9fba12b55fce4a46b (patch)
treeca233dc469b33623a8604708293c1d87a1dc3fd2 /sys/ddb
parent051cc9f6f7bff4d2d1b611fce1ece2b58978af6f (diff)
downloadFreeBSD-src-24769891328f49474ffe5ca9fba12b55fce4a46b.zip
FreeBSD-src-24769891328f49474ffe5ca9fba12b55fce4a46b.tar.gz
Reconnect db_elf.c to the build (now under "options DDB_NOKLDSYM"). It
doesn't actually build yet.
Diffstat (limited to 'sys/ddb')
-rw-r--r--sys/ddb/db_elf.c8
-rw-r--r--sys/ddb/db_kld.c6
2 files changed, 12 insertions, 2 deletions
diff --git a/sys/ddb/db_elf.c b/sys/ddb/db_elf.c
index b4fd53d..97e97ca 100644
--- a/sys/ddb/db_elf.c
+++ b/sys/ddb/db_elf.c
@@ -38,10 +38,12 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
-#if defined(__ELF__) && defined(__alpha__)
+#ifdef __ELF__
#include "opt_ddb.h"
+#ifdef DDB_NOKLDSYM
+
#include <sys/types.h>
#include <sys/param.h>
#include <sys/systm.h>
@@ -378,4 +380,6 @@ kdb_init(void)
X_db_sym_init(ksym_start, ksym_end, "kernel");
}
-#endif
+#endif /* DDB_NOKLDSYM */
+
+#endif /* __ELF__ */
diff --git a/sys/ddb/db_kld.c b/sys/ddb/db_kld.c
index 9599299..903a589 100644
--- a/sys/ddb/db_kld.c
+++ b/sys/ddb/db_kld.c
@@ -35,6 +35,10 @@
* Symbol table routines for kld maintained kernels.
*/
+#include "opt_ddb.h"
+
+#ifndef DDB_NOKLDSYM
+
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/linker.h>
@@ -124,3 +128,5 @@ kdb_init()
{
db_add_symbol_table(0, 0, "kernel", 0);
}
+
+#endif /* !DDB_NOKLDSYM */
OpenPOWER on IntegriCloud