Lines Matching defs:gdb
36 import gdb
62 t_u32 = gdb.lookup_type('unsigned int')
63 t_u64 = gdb.lookup_type('unsigned long long')
138 gdb.pretty_printers.append(v8_pretty_printers)
151 v = gdb.parse_and_eval(vstring)
155 class V8PrintObject(gdb.Command):
158 super(V8PrintObject, self).__init__("v8print", gdb.COMMAND_DATA)
162 gdb.execute('call __gdb_print_v8_object(%d)' % v)
168 class FindAnywhere(gdb.Command):
174 super(FindAnywhere, self).__init__("find-anywhere", gdb.COMMAND_DATA)
178 result = gdb.execute("find 0x%s, 0x%s, %s" % (startAddr, endAddr, value),
186 for l in gdb.execute("maint info sections", to_string=True).split('\n'):
191 for l in gdb.execute("info proc mappings", to_string=True).split('\n'):
201 class Redirect(gdb.Command):
213 super(Redirect, self).__init__("redirect", gdb.COMMAND_USER)
216 old_stdout = gdb.execute("p (int)dup(1)",
224 gdb.execute('p (int)dup2((int)open("%s", 1), 1)' % file,
227 result = gdb.execute(subcommand, from_tty=False, to_string=True)
240 gdb.execute("p (int)dup2(%s, 1)" % old_stdout, to_string=True)
245 gdb.execute("p (int)close(%s)" % old_stdout, to_string=True)