On 1/10/24 10:05, Ilya Leoshkevich wrote:
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.

Signed-off-by: Ilya Leoshkevich <i...@linux.ibm.com>

Reviewed-by: Richard Henderson <richard.hender...@linaro.org>


r~

Reply via email to