| 1 |
# Initial commands for kdb, alter to suit your needs. |
| 2 |
# These commands are executed in kdb_init() context, no SMP, no |
| 3 |
# processes. Commands that require process data (including stack or |
| 4 |
# registers) are not reliable this early. set and bp commands should |
| 5 |
# be safe. Global breakpoint commands affect each cpu as it is booted. |
| 6 |
|
| 7 |
# Standard debugging information for first level support, just type archkdb |
| 8 |
# or archkdbcpu or archkdbshort at the kdb prompt. |
| 9 |
|
| 10 |
defcmd dumpcommon "" "Common kdb debugging" |
| 11 |
set BTAPROMPT 0 |
| 12 |
set LINES 10000 |
| 13 |
-summary |
| 14 |
-cpu |
| 15 |
-ps |
| 16 |
-dmesg 600 |
| 17 |
-bt |
| 18 |
endefcmd |
| 19 |
|
| 20 |
defcmd dumpall "" "First line debugging" |
| 21 |
pid R |
| 22 |
-dumpcommon |
| 23 |
-bta |
| 24 |
endefcmd |
| 25 |
|
| 26 |
defcmd dumpcpu "" "Same as dumpall but only tasks on cpus" |
| 27 |
pid R |
| 28 |
-dumpcommon |
| 29 |
-btc |
| 30 |
endefcmd |
| 31 |
|