tech-kern archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: setting DDB_COMMANDONENTER="bt" by default




On 02/15/18 12:00, Sevan Janiyan wrote:
> 
> 
>> On 14 Feb 2018, at 20:35, matthew green <mrg%eterna.com.au@localhost> wrote:
>>
>> i think we should actually make ddb default to this with a
>> new sysctl, and remove interpretting onpanic = 2 differently.
>> eg, make it look like, with new "dumpstack" sysctl, defaults
>> to value of 1:
>>
>>   if (dumpstack > 0)
>>      do current dumpstack method
>>   if (onpanic > 0)
>>      enter ddb
>>   reboot
>>
>> (this idea came from jmcneill@.)
> 
> I'll take a look.

Like so? (haven't dealt with documentation yet)
https://www.netbsd.org/~sevan/patch-netbsd-ddb-dumpstack.txt

Haven't dealt with documentation yet nor other suggestions which have
come up later in the thread, yet.



Sevan


Home | Main Index | Thread Index | Old Index