Lines Matching refs:gdb
14 import gdb
41 class LxModule(gdb.Function):
56 raise gdb.GdbError("Unable to find MODULE " + mod_name)
62 class LxLsmod(gdb.Command):
68 super(LxLsmod, self).__init__("lx-lsmod", gdb.COMMAND_DATA)
71 gdb.write(
83 gdb.write("{address} {name:<19} {size:>8} {ref}".format(
93 gdb.write("{separator}{name}".format(
98 gdb.write("\n")
105 gdb.write("Unrecognized command\n")
106 raise gdb.GdbError(t)
108 class LxFindTextAddrinMod(gdb.Command):
112 super(LxFindTextAddrinMod, self).__init__('lx-getmod-by-textaddr', gdb.COMMAND_SUPPORT)
115 args = gdb.string_to_argv(arg)
120 addr = gdb.Value(int(args[0], 16)).cast(utils.get_ulong_type())
127 gdb.write(s)
129 gdb.write("0x%x is not in any module text section\n" % addr)