os/.gdbinit

26 lines
420 B
Plaintext
Raw Normal View History

set pagination off
target remote localhost:1234
symbol-file kernel/kernel.elf
2019-08-03 15:50:23 -05:00
add-symbol-file vfs/vfs
2019-08-25 17:06:19 -05:00
b kernel/cpu/i386/tasking.c:132
b kernel/cpu/i386/tasking.c:143
commands 1 2
silent
2019-08-03 15:50:23 -05:00
disable breakpoints
symbol-file kernel/kernel.elf
p task->pid
if task->pid==2
add-symbol-file vfs/vfs
enable breakpoints
else
2019-08-03 15:50:23 -05:00
enable breakpoints 1
c
end
c
end
2019-08-03 15:50:23 -05:00
b main
commands
2019-08-03 15:50:23 -05:00
disable breakpoints 1
end