diff options
author | Uwe Stuehler <uwe@cvs.openbsd.org> | 2017-08-14 19:50:32 +0000 |
---|---|---|
committer | Uwe Stuehler <uwe@cvs.openbsd.org> | 2017-08-14 19:50:32 +0000 |
commit | 65e984471af21b29942e64b2acbff090c7383eb1 (patch) | |
tree | 9b29eafe66c7006c0382661bdbc7e51a31cceeda /sys/kern | |
parent | dab21e8ebe3c85b87a35aea350caf2a09942049d (diff) |
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
Diffstat (limited to 'sys/kern')
-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! */ |