diff options
author | edgar_igl <edgar_igl@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-05-09 08:25:14 +0000 |
---|---|---|
committer | edgar_igl <edgar_igl@c046a42c-6fe2-441c-8c8c-71466251a162> | 2008-05-09 08:25:14 +0000 |
commit | 60897d369f10b464720d8a6de4553c47943ea927 (patch) | |
tree | 776af7d1e6636104314a1ef179ddd63ab89095fc /qemu-doc.texi | |
parent | Add x86_64 gdb stub for qemu (Jason Wessel). (diff) | |
download | qemu-kvm-60897d369f10b464720d8a6de4553c47943ea927.tar.gz qemu-kvm-60897d369f10b464720d8a6de4553c47943ea927.tar.bz2 qemu-kvm-60897d369f10b464720d8a6de4553c47943ea927.zip |
Debugger single step without interrupts (Jason Wessel).
This patch allows the qemu backend debugger to single step an
instruction without running the hardware interrupts.
git-svn-id: svn://svn.savannah.nongnu.org/qemu/trunk@4391 c046a42c-6fe2-441c-8c8c-71466251a162
Diffstat (limited to 'qemu-doc.texi')
-rw-r--r-- | qemu-doc.texi | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/qemu-doc.texi b/qemu-doc.texi index 4a48f43e2..8f611be73 100644 --- a/qemu-doc.texi +++ b/qemu-doc.texi @@ -1948,6 +1948,36 @@ Use @code{set architecture i8086} to dump 16 bit code. Then use @code{x/10i $cs*16+$eip} to dump the code at the PC position. @end enumerate +Advanced debugging options: + +The default single stepping behavior is step with the IRQs and timer service routines off. It is set this way because when gdb executes a single step it expects to advance beyond the current instruction. With the IRQs and and timer service routines on, a single step might jump into the one of the interrupt or exception vectors instead of executing the current instruction. This means you may hit the same breakpoint a number of times before executing the instruction gdb wants to have executed. Because there are rare circumstances where you want to single step into an interrupt vector the behavior can be controlled from GDB. There are three commands you can query and set the single step behavior: +@enumerate @code +@item maintenance packet qqemu.sstepbits + +This will display the MASK bits used to control the single stepping IE: +@example +(gdb) maintenance packet qqemu.sstepbits +sending: "qqemu.sstepbits" +received: "ENABLE=1,NOIRQ=2,NOTIMER=4" +@end example +@item maintenance packet qqemu.sstep + +This will display the current value of the mask used when single stepping IE: +@example +(gdb) maintenance packet qqemu.sstep +sending: "qqemu.sstep" +received: "0x7" +@end example +@item maintenance packet Qqemu.sstep=HEX_VALUE + +This will change the single step mask, so if wanted to enable IRQs on the single step, but not timers, you would use: +@example +(gdb) maintenance packet Qqemu.sstep=0x5 +sending: "qemu.sstep=0x5" +received: "OK" +@end example +@end enumerate + @node pcsys_os_specific @section Target OS specific information |