Lines Matching refs:gdb
14 import gdb
21 if hasattr(gdb, 'Breakpoint'):
22 class LoadModuleBreakpoint(gdb.Breakpoint):
29 module = gdb.parse_and_eval("mod")
39 show_pagination = gdb.execute("show pagination", to_string=True)
41 gdb.execute("set pagination off")
44 gdb.write("refreshing all symbols to reload module "
51 gdb.execute("set pagination %s" % ("on" if pagination else "off"))
56 class LxSymbols(gdb.Command):
71 super(LxSymbols, self).__init__("lx-symbols", gdb.COMMAND_FILES,
72 gdb.COMPLETE_FILENAME)
77 gdb.write("scanning for modules in {0}\n".format(path))
95 except gdb.error:
126 gdb.write("loading @{addr}: {filename}\n".format(
132 gdb.execute(cmdline, to_string=True)
136 gdb.write("no module object found for '{0}'\n".format(module_name))
139 gdb.write("loading vmlinux\n")
144 if hasattr(gdb, 'breakpoints') and not gdb.breakpoints() is None:
145 for bp in gdb.breakpoints():
150 for obj in gdb.objfiles():
154 gdb.execute("symbol-file", to_string=True)
155 gdb.execute("symbol-file {0}".format(orig_vmlinux))
160 gdb.write("no modules found\n")
178 if hasattr(gdb, 'Breakpoint'):
185 gdb.write("Note: symbol update on module loading not supported "