Lines Matching refs:gdb
20 import gdb
22 class sd_dump_hashmaps(gdb.Command):
26 super(sd_dump_hashmaps, self).__init__("sd_dump_hashmaps", gdb.COMMAND_DATA, gdb.COMPLETE_NONE)
29 d = gdb.parse_and_eval("hashmap_debug_list")
30 all_entry_sizes = gdb.parse_and_eval("all_entry_sizes")
31 all_direct_buckets = gdb.parse_and_eval("all_direct_buckets")
32 hashmap_base_t = gdb.lookup_type("HashmapBase")
33 uchar_t = gdb.lookup_type("unsigned char")
34 ulong_t = gdb.lookup_type("unsigned long")
35 debug_offset = gdb.parse_and_eval("(unsigned long)&((HashmapBase*)0)->debug")
39 h = gdb.parse_and_eval("(HashmapBase*)((char*)%d - %d)" % (int(d.cast(ulong_t)), debug_offset))