xref: /openbmc/linux/kernel/debug/kdb/kdb_cmds (revision 2f164822)
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
10defcmd dumpcommon "" "Common kdb debugging"
11  set BTAPROMPT 0
12  set LINES 10000
13  -summary
14  -cpu
15  -ps
16  -dmesg 600
17  -bt
18endefcmd
19
20defcmd dumpall "" "First line debugging"
21  pid R
22  -dumpcommon
23  -bta
24endefcmd
25
26defcmd dumpcpu "" "Same as dumpall but only tasks on cpus"
27  pid R
28  -dumpcommon
29  -btc
30endefcmd
31
32