diff options
author | 2017-08-14 19:50:31 +0000 | |
---|---|---|
committer | 2017-08-14 19:50:31 +0000 | |
commit | bfdbe9fb83ffd0bd2ef8604bcd2b46add10b3cc6 (patch) | |
tree | d121f536a3aaa539be2590aeec0992a0a1bb5144 | |
parent | whitespace and fix a comment typo (diff) | |
download | wireguard-openbsd-bfdbe9fb83ffd0bd2ef8604bcd2b46add10b3cc6.tar.xz wireguard-openbsd-bfdbe9fb83ffd0bd2ef8604bcd2b46add10b3cc6.zip |
Load CTF debug symbols before mountroot
This is obviously useful in order to investigate a failure to mount an NFS
or other root device.
ok mpi
-rw-r--r-- | sys/kern/init_main.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/sys/kern/init_main.c b/sys/kern/init_main.c index d53b5e34b96..835a062b4d4 100644 --- a/sys/kern/init_main.c +++ b/sys/kern/init_main.c @@ -1,4 +1,4 @@ -/* $OpenBSD: init_main.c,v 1.270 2017/08/11 20:50:15 mpi Exp $ */ +/* $OpenBSD: init_main.c,v 1.271 2017/08/14 19:50:31 uwe Exp $ */ /* $NetBSD: init_main.c,v 1.84.4.1 1996/06/02 09:08:06 mrg Exp $ */ /* @@ -477,6 +477,11 @@ main(void *framep) /* Configure root/swap devices */ diskconf(); +#ifdef DDB + /* Make debug symbols available in ddb. */ + db_ctf_init(); +#endif + if (mountroot == NULL || ((*mountroot)() != 0)) panic("cannot mount root"); @@ -548,10 +553,6 @@ main(void *framep) config_process_deferred_mountroot(); -#ifdef DDB - db_ctf_init(); -#endif - /* * Okay, now we can let init(8) exec! It's off to userland! */ |