vmlinux-gdb.py 672 B

12345678910111213141516171819202122232425262728293031
  1. #
  2. # gdb helper commands and functions for Linux kernel debugging
  3. #
  4. # loader module
  5. #
  6. # Copyright (c) Siemens AG, 2012, 2013
  7. #
  8. # Authors:
  9. # Jan Kiszka <jan.kiszka@siemens.com>
  10. #
  11. # This work is licensed under the terms of the GNU GPL version 2.
  12. #
  13. import os
  14. sys.path.insert(0, os.path.dirname(__file__) + "/scripts/gdb")
  15. try:
  16. gdb.parse_and_eval("0")
  17. gdb.execute("", to_string=True)
  18. except:
  19. gdb.write("NOTE: gdb 7.2 or later required for Linux helper scripts to "
  20. "work.\n")
  21. else:
  22. import linux.utils
  23. import linux.symbols
  24. import linux.modules
  25. import linux.dmesg
  26. import linux.tasks
  27. import linux.cpus
  28. import linux.lists