vmlinux-gdb.py 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  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 <[email protected]>
  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(os.path.abspath(__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.constants
  23. if linux.constants.LX_CONFIG_DEBUG_INFO_REDUCED:
  24. raise gdb.GdbError("Reduced debug information will prevent GDB "
  25. "from having complete types.\n")
  26. import linux.utils
  27. import linux.symbols
  28. import linux.modules
  29. import linux.dmesg
  30. import linux.tasks
  31. import linux.config
  32. import linux.cpus
  33. import linux.lists
  34. import linux.rbtree
  35. import linux.proc
  36. import linux.timerlist
  37. import linux.clk
  38. import linux.genpd
  39. import linux.device