Kernel Debugging: Difference between revisions

Jump to navigation Jump to search
[unchecked revision][unchecked revision]
Content deleted Content added
Line 152: Line 152:
...will setup QEMU to listen on port 1234 and wait for a GDB connection to it. Then, from a remote or local shell:
...will setup QEMU to listen on port 1234 and wait for a GDB connection to it. Then, from a remote or local shell:


lldb
lldb kernel.elf
(lldb) target create "kernel.elf"
Current executable set to '/home/user/osdev/kernel.elf' (x86_64).
(lldb) gdb-remote localhost:1234
(lldb) gdb-remote localhost:1234
Process 1 stopped
Process 1 stopped