Lines Matching refs:gdb
9 import gdb
20 gdb.write("Unrecognized command\n")
21 raise gdb.GdbError(t)
27 stack_depot_disabled = gdb.parse_and_eval('stack_depot_disabled')
30 raise gdb.GdbError("stack_depot_disabled\n")
32 handle_parts_t = gdb.lookup_type("union handle_parts")
35 pools_num = gdb.parse_and_eval('pools_num')
38 raise gdb.GdbError("handle is 0\n")
42 …gdb.write("pool index %d out of bounds (%d) for stack id 0x%08x\n" % (parts['pool_index'], pools_n…
43 return gdb.Value(0), 0
45 stack_pools = gdb.parse_and_eval('stack_pools')
49 …stack = (pool + gdb.Value(offset).cast(utils.get_size_t_type())).cast(stack_record_type.get_type()…
53 gdb.write("%s\n" % e)
54 return gdb.Value(0), 0
58 raise gdb.GdbError("CONFIG_STACKDEPOT is not enabled")
64 gdb.execute("x /i 0x%x" % (int(entries[i])))
66 gdb.write("%s\n" % e)
68 class StackDepotLookup(gdb.Command):
73 super(StackDepotLookup, self).__init__("lx-stack_depot_lookup", gdb.COMMAND_SUPPORT)
77 raise gdb.GdbError('CONFIG_STACKDEPOT is not set')
79 argv = gdb.string_to_argv(args)
82 stack_depot_print(gdb.Value(handle).cast(utils.get_uint_type()))