Lines Matching refs:gdb
3 Debugging kernel and modules via gdb
8 using gdb. Gdb comes with a powerful scripting interface for python. The
12 be transferred to the other gdb stubs as well.
18 - gdb 7.2+ (recommended: 7.4+) with python support enabled (typically true
42 - Build the gdb scripts (required on kernels v5.1 and above)::
46 - Enable the gdb stub of QEMU/KVM, either
57 - Start gdb: gdb vmlinux
59 Note: Some distros may restrict auto-loading of gdb scripts to known safe
60 directories. In case gdb reports to refuse loading vmlinux-gdb.py, add::
64 to ~/.gdbinit. See gdb help for more details.
68 (gdb) target remote :1234
71 Examples of using the Linux-provided gdb helpers
76 (gdb) lx-symbols
89 (gdb) b btrfs_init_sysfs
96 (gdb) c
111 (gdb) lx-dmesg
123 (gdb) p $lx_current().pid
125 (gdb) p $lx_current().comm
130 (gdb) p $lx_per_cpu("runqueues").nr_running
132 (gdb) p $lx_per_cpu("runqueues", 2).nr_running
137 (gdb) set $next = $lx_per_cpu("hrtimer_bases").clock_base[0].active.next
138 (gdb) p *$container_of($next, "struct hrtimer", "node")
168 (gdb) apropos lx