Revision 6c9bf893

b/qemu-doc.texi
730 730
In order to use gdb, launch qemu with the '-s' option. It will wait for a
731 731
gdb connection:
732 732
@example
733
> qemu -s arch/i386/boot/bzImage -hda root-2.4.20.img root=/dev/hda
733
> qemu -s -kernel arch/i386/boot/bzImage -hda root-2.4.20.img -append "root=/dev/hda"
734 734
Connected to host network interface: tun0
735 735
Waiting gdb connection on port 1234
736 736
@end example
......
742 742

  
743 743
In gdb, connect to QEMU:
744 744
@example
745
(gdb) target remote locahost:1234
745
(gdb) target remote localhost:1234
746 746
@end example
747 747

  
748 748
Then you can use gdb normally. For example, type 'c' to launch the kernel:

Also available in: Unified diff