diff options
author | Ilya Leoshkevich <iii@linux.ibm.com> | 2024-01-29 10:32:14 +0100 |
---|---|---|
committer | Richard Henderson <richard.henderson@linaro.org> | 2024-01-29 20:48:49 +1000 |
commit | 87ab270429618c13a6bf6dfc90d5edf6a3fa99b9 (patch) | |
tree | 15511588c261ce025f2bdcb3ce60f2788bfb8d4a /stats | |
parent | fd3f7d24d48d3a70afe30af60bdbacdb993af945 (diff) | |
download | qemu-87ab270429618c13a6bf6dfc90d5edf6a3fa99b9.zip qemu-87ab270429618c13a6bf6dfc90d5edf6a3fa99b9.tar.gz qemu-87ab270429618c13a6bf6dfc90d5edf6a3fa99b9.tar.bz2 |
linux-user: Allow gdbstub to ignore page protection
gdbserver ignores page protection by virtue of using /proc/$pid/mem.
Teach qemu gdbstub to do this too. This will not work if /proc is not
mounted; accept this limitation.
One alternative is to temporarily grant the missing PROT_* bit, but
this is inherently racy. Another alternative is self-debugging with
ptrace(POKE), which will break if QEMU itself is being debugged - a
much more severe limitation.
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Signed-off-by: Ilya Leoshkevich <iii@linux.ibm.com>
Message-Id: <20240129093410.3151-2-iii@linux.ibm.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
Diffstat (limited to 'stats')
0 files changed, 0 insertions, 0 deletions