coypu%sdf.org@localhost a écrit :
sysctl -w ddb.onpanic=1
I have rebuilt an up to date -8 to be sure that netbsd.gdb and running
kernel are built from the same sources.
/etc/rc.d/xdm onestart and my PWS500au panics.
# gdb /netbsd.gdb
GNU gdb (GDB) 7.12
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
<http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law. Type "show copying"
and "show warranty" for details.
This GDB was configured as "alpha--netbsd".
Type "show configuration" for configuration details.
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>.
Find the GDB manual and other documentation resources online at:
<http://www.gnu.org/software/gdb/documentation/>.
For help, type "help".
Type "apropos word" to search for commands related to "word"...
Reading symbols from /netbsd.gdb...done.
(gdb) target kvm netbsd.17.core
PC not available
<unavailable> in ?? ()
(gdb) bt
#-1 <unavailable> in ?? ()
(gdb) up
Initial frame selected; you cannot go up.
(gdb)
I have tried to set ddb.onpanic=1. Systems also panics but I don't see
any usable information. Console seems to be locked or ddb is not
running. I haven't tested with a serial adapter. But after reboot, no
new files in /var/crash are written.
And I can confirm that shutdown -r now stops my PWS but it doesn't
reboot ;-)
Regards,
JKB