summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2003-06-27 18:50:50 +0000
committerbellard <bellard@c046a42c-6fe2-441c-8c8c-71466251a162>2003-06-27 18:50:50 +0000
commitda415d54bfea85f6321f5b03c953b48cbbd5d217 (patch)
treee0c9af5cee9fe526b809505a7824c9354151fed3
parentb4608c0455a410994b31888b458a552d640b9765 (diff)
gdb usage information
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@289 c046a42c-6fe2-441c-8c8c-71466251a162
-rw-r--r--qemu-doc.texi33
1 files changed, 33 insertions, 0 deletions
diff --git a/qemu-doc.texi b/qemu-doc.texi
index 3242c6bd8a..0c062f5faa 100644
--- a/qemu-doc.texi
+++ b/qemu-doc.texi
@@ -402,6 +402,9 @@ by
# define HZ 100 /* Internal kernel timer frequency */
@end example
+If you have problems running your kernel, verify that neither the SMP nor
+HIGHMEM configuration options are activated.
+
@section PC Emulation
QEMU emulates the following PC peripherials:
@@ -421,6 +424,36 @@ NE2000 network adapter (port=0x300, irq=9)
Dumb VGA (to print the @code{Uncompressing Linux} message)
@end itemize
+@section GDB usage
+
+QEMU has a primitive support to work with gdb, so that you can do
+'Ctrl-C' while the kernel is running and inspect its state.
+
+In order to use gdb, launch vl with the '-s' option. It will wait for a
+gdb connection:
+@example
+> vl -s arch/i386/boot/bzImage initrd-2.4.20.img root=/dev/ram0 ramdisk_size=6144
+Connected to host network interface: tun0
+Waiting gdb connection on port 1234
+@end example
+
+Then launch gdb on the 'vmlinux' executable:
+@example
+> gdb vmlinux
+@end example
+
+In gdb, connect to QEMU:
+@example
+(gdb) target remote locahost:1234
+@end example
+
+Then you can use gdb normally. For example, type 'c' to launch the kernel:
+@example
+(gdb) c
+@end example
+
+WARNING: breakpoints and single stepping are not yet supported.
+
@chapter QEMU Internals
@section QEMU compared to other emulators