Lines Matching refs:gdb
14 import gdb
22 if hasattr(gdb, 'Breakpoint'):
23 class LoadModuleBreakpoint(gdb.Breakpoint):
30 module = gdb.parse_and_eval("mod")
40 show_pagination = gdb.execute("show pagination", to_string=True)
42 gdb.execute("set pagination off")
45 gdb.write("refreshing all symbols to reload module "
52 gdb.execute("set pagination %s" % ("on" if pagination else "off"))
57 class LxSymbols(gdb.Command):
72 super(LxSymbols, self).__init__("lx-symbols", gdb.COMMAND_FILES,
73 gdb.COMPLETE_FILENAME)
78 gdb.write("scanning for modules in {0}\n".format(path))
96 except gdb.error:
120 gdb.write("loading @{addr}: {filename}\n".format(
126 gdb.execute(cmdline, to_string=True)
130 gdb.write("no module object found for '{0}'\n".format(module_name))
133 gdb.write("loading vmlinux\n")
138 if hasattr(gdb, 'breakpoints') and not gdb.breakpoints() is None:
139 for bp in gdb.breakpoints():
143 gdb.execute("symbol-file", to_string=True)
144 gdb.execute("symbol-file vmlinux")
149 gdb.write("no modules found\n")
166 if hasattr(gdb, 'Breakpoint'):
173 gdb.write("Note: symbol update on module loading not supported "