Lines Matching full:gdb
7 import gdb
11 class pcpu(gdb.Function):
26 cpuid = tdfind(gdb.selected_thread().ptid[2])['td_oncpu']
28 raise gdb.error("Currently selected thread is off-CPU")
30 raise gdb.error(f"Currently selected on invalid CPU {cpuid}")
35 for f in gdb.lookup_type("struct pcpu").fields():
40 return val.cast(gdb.lookup_type("uintptr_t"))
49 block = gdb.block_for_pc(lf['ops']['cls']['methods'][0]['func'])
50 elf_file_t = gdb.lookup_type("elf_file_t", block).target()
72 raise gdb.error(f"{path} has unexpected linker file type {file_type}")
75 obj = gdb.Value(pcpu_base + pcpu_entry_addr - start + base)
79 # Register with gdb.