vmlinux-gdb.py 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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(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
  40. import linux.vfs
  41. import linux.pgtable
  42. import linux.radixtree
  43. import linux.interrupts
  44. import linux.mm
  45. import linux.stackdepot
  46. import linux.page_owner
  47. import linux.slab
  48. import linux.vmalloc
  49. import linux.kasan