0001 # Initial commands for kdb, alter to suit your needs.
0002 # These commands are executed in kdb_init() context, no SMP, no
0003 # processes. Commands that require process data (including stack or
0004 # registers) are not reliable this early. set and bp commands should
0005 # be safe. Global breakpoint commands affect each cpu as it is booted.
0006
0007 # Standard debugging information for first level support, just type archkdb
0008 # or archkdbcpu or archkdbshort at the kdb prompt.
0009
0010 defcmd dumpcommon "" "Common kdb debugging"
0011 set BTAPROMPT 0
0012 set LINES 10000
0013 -summary
0014 -cpu
0015 -ps
0016 -dmesg 600
0017 -bt
0018 endefcmd
0019
0020 defcmd dumpall "" "First line debugging"
0021 pid R
0022 -dumpcommon
0023 -bta
0024 endefcmd
0025
0026 defcmd dumpcpu "" "Same as dumpall but only tasks on cpus"
0027 pid R
0028 -dumpcommon
0029 -btc
0030 endefcmd
0031