Commit 6c9bf8936a14e8b460cfd074e1a78251a0d85da0
1 parent
bb551faa
update
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@576 c046a42c-6fe2-441c-8c8c-71466251a162
Showing
1 changed file
with
2 additions
and
2 deletions
qemu-doc.texi
| @@ -730,7 +730,7 @@ QEMU has a primitive support to work with gdb, so that you can do | @@ -730,7 +730,7 @@ QEMU has a primitive support to work with gdb, so that you can do | ||
| 730 | In order to use gdb, launch qemu with the '-s' option. It will wait for a | 730 | In order to use gdb, launch qemu with the '-s' option. It will wait for a |
| 731 | gdb connection: | 731 | gdb connection: |
| 732 | @example | 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 | Connected to host network interface: tun0 | 734 | Connected to host network interface: tun0 |
| 735 | Waiting gdb connection on port 1234 | 735 | Waiting gdb connection on port 1234 |
| 736 | @end example | 736 | @end example |
| @@ -742,7 +742,7 @@ Then launch gdb on the 'vmlinux' executable: | @@ -742,7 +742,7 @@ Then launch gdb on the 'vmlinux' executable: | ||
| 742 | 742 | ||
| 743 | In gdb, connect to QEMU: | 743 | In gdb, connect to QEMU: |
| 744 | @example | 744 | @example |
| 745 | -(gdb) target remote locahost:1234 | 745 | +(gdb) target remote localhost:1234 |
| 746 | @end example | 746 | @end example |
| 747 | 747 | ||
| 748 | Then you can use gdb normally. For example, type 'c' to launch the kernel: | 748 | Then you can use gdb normally. For example, type 'c' to launch the kernel: |