kdb_cmds 769 B

12345678910111213141516171819202122232425262728293031
  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. # Standard debugging information for first level support, just type archkdb
  7. # or archkdbcpu or archkdbshort at the kdb prompt.
  8. defcmd dumpcommon "" "Common kdb debugging"
  9. set BTAPROMPT 0
  10. set LINES 10000
  11. -summary
  12. -cpu
  13. -ps
  14. -dmesg 600
  15. -bt
  16. endefcmd
  17. defcmd dumpall "" "First line debugging"
  18. pid R
  19. -dumpcommon
  20. -bta
  21. endefcmd
  22. defcmd dumpcpu "" "Same as dumpall but only tasks on cpus"
  23. pid R
  24. -dumpcommon
  25. -btc
  26. endefcmd