20 lines
640 B
Plaintext
20 lines
640 B
Plaintext
# This is the gdbscript used to debug a kernel image compiled using
|
|
# the I386 profile. Note that it requires the kernel image to have
|
|
# been compiled first, in order to have access to the symbol table.
|
|
# It will work if QEMU is launched using the `make qemu-gdb` target.
|
|
|
|
# Load useful gdbscripts
|
|
source tools/gdbscripts/devices.gdb
|
|
source tools/gdbscripts/heap.gdb
|
|
source tools/gdbscripts/vfs.gdb
|
|
|
|
target remote localhost:1234
|
|
|
|
file compile/I386/kernel
|
|
|
|
# Set a breakpoint in kernel_main to debug the main function. At this
|
|
# stage of kernel development, this is probably the most interesting
|
|
# thing to catch.
|
|
break kernel_main
|
|
continue
|