[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PULL 2/8] docs: document breakpoint and watchpoint support
|
From: |
Alex Bennée |
|
Subject: |
[PULL 2/8] docs: document breakpoint and watchpoint support |
|
Date: |
Wed, 10 May 2023 16:06:52 +0100 |
This varies by accelerator. Also mention the modern bear trap that is
ASLR.
Message-Id: <20230503091244.1450613-4-alex.bennee@linaro.org>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Signed-off-by: Alex Bennée <alex.bennee@linaro.org>
diff --git a/docs/system/gdb.rst b/docs/system/gdb.rst
index 453eb73f6c..7d3718deef 100644
--- a/docs/system/gdb.rst
+++ b/docs/system/gdb.rst
@@ -46,6 +46,28 @@ 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.
+Breakpoint and Watchpoint support
+=================================
+
+While GDB can always fall back to inserting breakpoints into memory
+(if writable) other features are very much dependent on support of the
+accelerator. For TCG system emulation we advertise an infinite number
+of hardware assisted breakpoints and watchpoints. For other
+accelerators it will depend on if support has been added (see
+supports_guest_debug and related hooks in AccelOpsClass).
+
+As TCG cannot track all memory accesses in user-mode there is no
+support for watchpoints.
+
+Relocating code
+---------------
+
+On modern kernels confusion can be caused by code being relocated by
+features such as address space layout randomisation. To avoid
+confusion when debugging such things you either need to update gdb's
+view of where things are in memory or perhaps more trivially disable
+ASLR when booting the system.
+
Debugging multicore machines
============================
--
2.39.2
- [PULL 0/8] testing and misc (docker, docs, ci scripts, gitlab, avocado, Kconfig), Alex Bennée, 2023/05/10
- [PULL 1/8] tests/docker: bump the xtensa base to debian:11-slim, Alex Bennée, 2023/05/10
- [PULL 2/8] docs: document breakpoint and watchpoint support,
Alex Bennée <=
- [PULL 4/8] scripts/ci: clean-up the 20.04/22.04 confusion in ansible, Alex Bennée, 2023/05/10
- [PULL 6/8] gitlab: enable minimal device profile for aarch64 --disable-tcg, Alex Bennée, 2023/05/10
- [PULL 7/8] tests/avocado: use http for mipsdistros.mips.com, Alex Bennée, 2023/05/10
- [PULL 3/8] scripts/ci: add gitlab-runner to kvm group, Alex Bennée, 2023/05/10
- [PULL 8/8] hw/arm: Select XLNX_USB_SUBSYS for xlnx-zcu102 machine, Alex Bennée, 2023/05/10
- [PULL 5/8] gitlab: add ubuntu-22.04-aarch64-without-defaults, Alex Bennée, 2023/05/10
- Re: [PULL 0/8] testing and misc (docker, docs, ci scripts, gitlab, avocado, Kconfig), Richard Henderson, 2023/05/10