aboutsummaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
authorPeter Maydell <peter.maydell@linaro.org>2021-04-01 11:25:27 +0100
committerAlex Bennée <alex.bennee@linaro.org>2021-04-06 15:04:49 +0100
commitacb0a27eb85ccf5de6052bf7407531e76fb13a5d (patch)
tree309c079b1812372f153edfbaf33733805c7aa8b3 /docs
parent1cb8d12f79a6d063455eb43ddf3f2855932b5384 (diff)
downloadqemu-acb0a27eb85ccf5de6052bf7407531e76fb13a5d.zip
qemu-acb0a27eb85ccf5de6052bf7407531e76fb13a5d.tar.gz
qemu-acb0a27eb85ccf5de6052bf7407531e76fb13a5d.tar.bz2
docs/system/gdb.rst: Add some more heading structure
We're about to add a new section to gdb.rst. In preparation, add some more headings so it isn't just one huge run-on section. Signed-off-by: Peter Maydell <peter.maydell@linaro.org> Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <f4bug@amsat.org> Message-Id: <20210325175023.13838-2-peter.maydell@linaro.org> Message-Id: <20210401102530.12030-9-alex.bennee@linaro.org>
Diffstat (limited to 'docs')
-rw-r--r--docs/system/gdb.rst8
1 files changed, 7 insertions, 1 deletions
diff --git a/docs/system/gdb.rst b/docs/system/gdb.rst
index 72b1e68..0bb1bed 100644
--- a/docs/system/gdb.rst
+++ b/docs/system/gdb.rst
@@ -45,7 +45,11 @@ Here are some useful tips in order to use gdb on system code:
3. Use ``set architecture i8086`` to dump 16 bit code. Then use
``x/10i $cs*16+$eip`` to dump the code at the PC position.
-Advanced debugging options:
+Advanced debugging options
+==========================
+
+Changing single-stepping behaviour
+^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
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
@@ -88,6 +92,8 @@ three commands you can query and set the single step behavior:
sending: "qemu.sstep=0x5"
received: "OK"
+Examining physical memory
+^^^^^^^^^^^^^^^^^^^^^^^^^
Another feature that QEMU gdbstub provides is to toggle the memory GDB
works with, by default GDB will show the current process memory respecting